[Asterisk-Users] pbx_extension_helper: No application 'agi'
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 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] pbx_extension_helper: No application 'agi'
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 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] pbx_extension_helper: No application 'agi'
That's incorrect, both versions represent valid syntax. To the OP -- show us the contents of test.agi -Original Message- From: John Millican [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 8:23 AM To: Tom Fielding; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] pbx_extension_helper: No application 'agi' 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 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/aster isk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] pbx_extension_helper: No application 'agi'
Hi Jay, It's just the standard test script, agi_test.agi in /var/lib/asterisk/agi-bin (pasted below). So am I to assume therefore that I don't have to do anything special during compilation and installation ('make' and 'make install') to enable agi support? Thanks, Tom [EMAIL PROTECTED] agi-bin]# cat agi-test.agi #!/usr/bin/perl use strict; $|=1; # Setup some variables my %AGI; my $tests = 0; my $fail = 0; my $pass = 0; while(STDIN) { chomp; last unless length($_); if (/^agi_(\w+)\:\s+(.*)$/) { $AGI{$1} = $2; } } print STDERR AGI Environment Dump:\n; foreach my $i (sort keys %AGI) { print STDERR -- $i = $AGI{$i}\n; } sub checkresult { my ($res) = @_; my $retval; $tests++; chomp $res; if ($res =~ /^200/) { $res =~ /result=(-?\d+)/; if (!length($1)) { print STDERR FAIL ($res)\n; $fail++; } else { print STDERR PASS ($1)\n; $pass++; } } else { print STDERR FAIL (unexpected result '$res')\n; $fail++; } } print STDERR 1. Testing 'sendfile'...; print STREAM FILE beep \\\n; my $result = STDIN; checkresult($result); print STDERR 2. Testing 'sendtext'...; print SEND TEXT \hello world\\n; my $result = STDIN; checkresult($result); print STDERR 3. Testing 'sendimage'...; print SEND IMAGE asterisk-image\n; my $result = STDIN; checkresult($result); print STDERR 4. Testing 'saynumber'...; print SAY NUMBER 192837465 \\\n; my $result = STDIN; checkresult($result); print STDERR 5. Testing 'waitdtmf'...; print WAIT FOR DIGIT 1000\n; my $result = STDIN; checkresult($result); print STDERR 6. Testing 'record'...; print RECORD FILE testagi gsm 1234 3000\n; my $result = STDIN; checkresult($result); print STDERR 6a. Testing 'record' playback...; print STREAM FILE testagi \\\n; my $result = STDIN; checkresult($result); print STDERR == Complete ==\n; print STDERR $tests tests completed, $pass passed, $fail failed\n; print STDERR ==\n; On 6/28/05, Jay Milk [EMAIL PROTECTED] wrote: That's incorrect, both versions represent valid syntax. To the OP -- show us the contents of test.agi -Original Message- From: John Millican [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 8:23 AM To: Tom Fielding; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] pbx_extension_helper: No application 'agi' 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 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/aster isk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] pbx_extension_helper: No application 'agi'
i could not follow this message from the beginning, but by the subject i may have an idea of whats going on. does the command 'show applications' in asterisk console shows up AGI in its output? do you have load = res_agi.so in /etc/asterisk/modules.conf ??? best regards On 6/28/05, Jay Milk [EMAIL PROTECTED] wrote: That's incorrect, both versions represent valid syntax. To the OP -- show us the contents of test.agi -Original Message- From: John Millican [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 8:23 AM To: Tom Fielding; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] pbx_extension_helper: No application 'agi' 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 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/aster isk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org; ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] pbx_extension_helper: No application 'agi'
Moises! That fixed it!! Thanks very much! Maybe I'm blind but nowhere in the installation instructions or even on the AGI Wiki did I see reference to loading res_agi.so in modules.conf. Thanks, Tom On 6/28/05, Moises Silva [EMAIL PROTECTED] wrote: i could not follow this message from the beginning, but by the subject i may have an idea of whats going on. does the command 'show applications' in asterisk console shows up AGI in its output? do you have load = res_agi.so in /etc/asterisk/modules.conf ??? best regards On 6/28/05, Jay Milk [EMAIL PROTECTED] wrote: That's incorrect, both versions represent valid syntax. To the OP -- show us the contents of test.agi -Original Message- From: John Millican [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 8:23 AM To: Tom Fielding; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] pbx_extension_helper: No application 'agi' 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 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/aster isk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org; ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users