title: No application 'AGI' for extension
body: <p>I haven’t been developing anything for Asterisk for a long time.</p>
  
  <p>Now, I installed Asterisk 16.5.0 on UBUNTU 16.04.
  I am trying to run an AGI that I had developed a long time ago but always get (see details below):</p>
  
  <pre><code>WARNING: …: No application ‘AGI’ …
  </code></pre>
  
  <p>The extensions.conf looks like this:</p>
  
  <p>[inbound]</p>
  
  <p>exten => 301,1,NoOp()</p>
  
  <p>same => n,Answer()</p>
  
  <p>same => n,AGI( scriptAGI )</p>
  
  <p>same => n,Hangup()</p>
  
  <p>When I disk 301 through xlite I get the following:</p>
  
  <p>[Aug 25 11:13:31] == Using SIP RTP CoS mark 5</p>
  
  <p>[Aug 25 11:13:31] WARNING[6788][C-0000000d]: pbx.c:2922 pbx_extension_helper: No application ‘AGI’ for extension (inbound, 301, 3)</p>
  
  <p>[Aug 25 11:13:31] == Spawn extension (inbound, 301, 3) exited non-zero on ‘SIP/asusXlite-0000000c’</p>
  
  <p>[Aug 25 11:13:45] WARNING[1238]: db.c:348 ast_db_put: Couldn’t execute statement: SQL logic error or missing database</p>
  
  <p>I believe this is a configuration issue. Can someone help me?
  Thank you in advance.</p>
  
  <p>The solution to this issue was that AGI needs to have res_speech loaded. I discovered this thanks to the artheops tip. Thank you.
  Another point is that spaces before and after the AGI name prevent it from working.</p>