[Asterisk-Users] pbx_extension_helper: No application 'agi'

John Millican john at millican.us
Tue Jun 28 06:23:13 MST 2005


On Tuesday June 28 2005 4:56 am, Tom Fielding wrote:
> Hi all,
>
> Sorry for this elementary question (I'm a newbie).
>
> I'm trying to write an agi script (test.agi) and run it when I call
> in.  However, I'm getting an error that says application agi isn't
> being found. I've put test.agi into agi-bin with permissions 755.
>
> Do I have to compile agi support into Asterisk, or is it built in?  My
> test.agi script is php, but not using anything fancy (just sending me
> an email) so I didn't install PHP AGI.  Do I have to?
>
> Thanks,
> Tom
>
> DEBUG:
> Connected to Asterisk 1.0.7 currently running on dev1 (pid = 26799)
> Verbosity is at least 10
>     -- Executing Goto("SIP/4.68.250.152-08129478",
> "validatenumber|s|1") in new stack
>     -- Goto (validatenumber,s,1)
> Jun 28 01:01:02 WARNING[26800]: pbx.c:1291 pbx_extension_helper: No
> application 'agi' for extension (validatenumber, s, 1)
>   == Spawn extension (validatenumber, s, 1) exited non-zero on
> 'SIP/4.68.250.152-08129478'
>
> EXTENSIONS.CONF:
> [validatenumber]
> exten => s,1,agi(test.agi)
> exten => s,2,HangUp

exten => s,1,agi(test.agi) 
should be
exten => s,1,agi,test.agi
If there any arguments to send the script use
exten => s,1,agi,test.agi|args_to_pass

John M



More information about the asterisk-users mailing list