I'm having troubles with my agi scripts. -- Executing Answer("SIP/asterisk-7f82", "") in new stack -- Executing AGI("SIP/asterisk-7f82", "php-agi.agi") in new stack Failed to execute '/var/lib/asterisk/agi-bin/php-agi.agi': No such file or directory Now that file is there! Thats a fact. The permissions are right (I hope) and I pulled the script off a working server. I had a cvs, I updated to 1.0 (where the script came from) and still nothing. Any ideas?
On Mon, 2004-11-08 at 03:00 -0800, Mike Roberts wrote:> I'm having troubles with my agi scripts. > > -- Executing Answer("SIP/asterisk-7f82", "") in new stack > -- Executing AGI("SIP/asterisk-7f82", "php-agi.agi") in new stack > Failed to execute '/var/lib/asterisk/agi-bin/php-agi.agi': No such > file or directory > > Now that file is there! Thats a fact. The permissions are right (I hope) and I > pulled the script off a working server. > > I had a cvs, I updated to 1.0 (where the script came from) and still nothing. > > Any ideas?Not unless you provide some more details. Why don't you paste in a ls -l of the above quoted file with full path? Also verify the she-bang line. -- Steven Critchfield <critch@basesys.com>
Okay, I found it.. I've never seen php installed in /usr/local/bin/php... But hey there's s first for everything eh? I'll remember this one for sure! Thanks everyone> > On Mon, 08 Nov 2004 07:27:03 -0800, Matthew Asham > <matthewa@bcwireless.net> wrote: > > As Steven asked, what about /usr/bin/php ? > > > > > > > > On Mon, 2004-11-08 at 05:39, Mike Roberts wrote: > > > The Script > > > http://pastebin.ca/1968 > > > > > > The File > > > [root@transit agi-bin]# ll > > > -rwxr-xr-x 1 root root 1020 Nov 8 01:17 php-agi.agi > > > [root@transit agi-bin]# pwd > > > /var/lib/asterisk/agi-bin > > > > > > > > > The Error > > > *CLI> -- Executing Answer("SIP/asterisk-6520", "") in new stack > > > -- Executing AGI("SIP/asterisk-6520", "php-agi.agi") in new stack > > > -- Launched AGI Script /var/lib/asterisk/agi-bin/php-agi.agi > > > Failed to execute '/var/lib/asterisk/agi-bin/php-agi.agi': No such > > > file or directory > > > -- AGI Script php-agi.agi completed, returning 0 > > > -- Executing DigitTimeout("SIP/asterisk-6520", "5") in new stack > > > -- Set Digit Timeout to 5 > > > -- Executing ResponseTimeout("SIP/asterisk-6520", "15") in new stack > > > -- Set Response Timeout to 15 > > > -- Executing Read("SIP/asterisk-6520", > > > "Secret|IVR/en_enter_destination|0") in new stack > > > -- Playing 'IVR/en_enter_destination' (language 'en') > > > > > > ________________________________________________________ > > > > > > Extensions.conf > > > > > > [tf-did] > > > exten => 877XXXXXXX,1,ANSWER > > > exten => 877XXXXXXX,2,agi(php-agi.agi) > > > exten => 877XXXXXXX,3,DigitTimeout,5 > > > exten => 877XXXXXXX,4,ResponseTimeout,15 > > > exten => 877XXXXXXX,5,Read(Secret,IVR/en_enter_destination,0) > > > exten => 877XXXXXXX,6,dial(SIP/${Secret}@123.45.6.789) > > > > > > Hope that helps > > > > > > On Mon, 08 Nov 2004 05:16:24 -0600, Steven Critchfield > > > <critch@basesys.com> wrote: > > > > On Mon, 2004-11-08 at 03:00 -0800, Mike Roberts wrote: > > > > > > > > > > > > > I'm having troubles with my agi scripts. > > > > > > > > > > -- Executing Answer("SIP/asterisk-7f82", "") in new stack > > > > > -- Executing AGI("SIP/asterisk-7f82", "php-agi.agi") in new stack > > > > > Failed to execute '/var/lib/asterisk/agi-bin/php-agi.agi': No such > > > > > file or directory > > > > > > > > > > Now that file is there! Thats a fact. The permissions are right (I hope) and I > > > > > pulled the script off a working server. > > > > > > > > > > I had a cvs, I updated to 1.0 (where the script came from) and still nothing. > > > > > > > > > > Any ideas? > > > > > > > > Not unless you provide some more details. Why don't you paste in a ls -l > > > > of the above quoted file with full path? Also verify the she-bang line. > > > > -- > > > > Steven Critchfield <critch@basesys.com> > > > > > > > > > > > _______________________________________________ > > > 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 > > > > >
We try to work with asterisk-java and FastAGI (for our diploma). We did everything like on asterisk-java tutorial But still 2 errors appear: ...the server starts up correctly and we now make call to the agi-extension... 15.09.2006 17:41:51 net.sf.asterisk.util.impl.JavaLoggingLog error SEVERE: Unable to create AGIScript instance of type HelloAgiScript 15.09.2006 17:41:51 net.sf.asterisk.util.impl.JavaLoggingLog error SEVERE: No script configured for URL 'agi://localhost/hello.agi' (script 'hello.agi') What could that be? One thing on asterisk-java tutorial we are not sure: "...called fastagi-mapping.properties that must be on the classpath..." Which classpath hast o be defined? Thanks for your help
i have all files in the same directory: c:\agi (asterisk-java-0.2.jar, fastagi-mapping.properties, HelloAgiScript.class and HelloAgiScript.java). My slasspath is also c:\agi Did you mean this? But i get still the following errors: if i start it with eclipse: ... INFO: Received connection. 25.09.2006 16:36:30 net.sf.asterisk.util.impl.JavaLoggingLog error Severe: Unable to create AGIScript instance of type HelloAgiScript 25.09.2006 16:36:30 net.sf.asterisk.util.impl.JavaLoggingLog error Severe: No script configured for URL 'agi://localhost.ch/hello.agi' (script 'hello.agi') if i start from the console another error occurs: INFO: Received connection. 25.09.2006 16:42:15 net.sf.asterisk.util.impl.JavaLoggingLog error Severe: Resource bundle 'fastagi-mapping' is missing. 25.09.2006 16:42:15 net.sf.asterisk.util.impl.JavaLoggingLog error Severe: No script configured for URL 'agi://localhost/hello.agi' (scri pt 'hello.agi') What could that be?
1 - Yes we are using the HelloAgiScript from asterisk-java. Therefore the fastagi-mapping.properties looks like: hello.agi = HelloAgiScript 2 - The command line, which is build in WinXP Thx for your help ps: How can i answer without opening a all new thread? 1 - Eclipse situation - What is inside fastagi-mapping.properties ? Are you using the sample HelloAgiScript from asterisk-java ? 2 - Command line situation - what's the command line you are using ? []'s, Edmilson Santana Unitech Tecnologia de Informa??o (http://www.unitech.com.br/) leitstelle at bnet.li wrote:> i have all files in the same directory: c:\agi > (asterisk-java-0.2.jar, fastagi-mapping.properties, HelloAgiScript.class and > HelloAgiScript.java). My slasspath is also c:\agi > Did you mean this? > > But i get still the following errors: > if i start it with eclipse: > ... > INFO: Received connection. > 25.09.2006 16:36:30 net.sf.asterisk.util.impl.JavaLoggingLog error > Severe: Unable to create AGIScript instance of type HelloAgiScript > 25.09.2006 16:36:30 net.sf.asterisk.util.impl.JavaLoggingLog error > Severe: No script configured for URL 'agi://localhost.ch/hello.agi' (script > 'hello.agi') > > if i start from the console another error occurs: > > INFO: Received connection. > 25.09.2006 16:42:15 net.sf.asterisk.util.impl.JavaLoggingLog error > Severe: Resource bundle 'fastagi-mapping' is missing. > 25.09.2006 16:42:15 net.sf.asterisk.util.impl.JavaLoggingLog error > Severe: No script configured for URL 'agi://localhost/hello.agi' (scri > pt 'hello.agi') > > What could that be?