Hi people, I have the following dialplan: [context] exten => s,1,Noop(Start) ... exten => h,1,Noop(Ending) exten => h,n,DEADAGI(finconf.php,${ARG1},${ARG2}) When it is running, the asterisk gives the following error: -- Launched AGI Script /var/lib/asterisk/agi-bin/finconf.php == finconf.php|800|: Failed to execute '/var/lib/asterisk/agi-bin/finconf.php': No such file or directory But the file is there. The command ls -l returns: -rwxrwxrwx 1 root root 140 Sep 17 15:42 finconf.php Why does it return the error? Thanks, Anahi Ludue?a _________________________________________________________________ Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090917/9ed5f8b6/attachment.htm
Either the file is missing something like #!/usr/bin/php or there is an error in what the file is trying to access _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Anahi Ludue?a Sent: Thursday, September 17, 2009 2:58 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] DeadAgi Hi people, I have the following dialplan: [context] exten => s,1,Noop(Start) ... exten => h,1,Noop(Ending) exten => h,n,DEADAGI(finconf.php,${ARG1},${ARG2}) When it is running, the asterisk gives the following error: -- Launched AGI Script /var/lib/asterisk/agi-bin/finconf.php == finconf.php|800|: Failed to execute '/var/lib/asterisk/agi-bin/finconf.php': No such file or directory But the file is there. The command ls -l returns: -rwxrwxrwx 1 root root 140 Sep 17 15:42 finconf.php Why does it return the error? Thanks, _____ Anahi Ludue?a _____ Disfruta antes que nadie del nuevo Windows Live Messenger <http://download.live.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090917/7f51e25e/attachment.htm
1) does the file exist 2) is it chmod'd to 755 (not sure if this matters though) 3) do you have something like #!/usr/bin/php at the start of the php file? Cheers Geraint 2009/9/17 Anahi Ludue?a <a_luduena at hotmail.com>> Hi people, I have the following dialplan: > > [context] > exten => s,1,Noop(Start) > ... > exten => h,1,Noop(Ending) > exten => h,n,DEADAGI(finconf.php,${ARG1},${ARG2}) > > > When it is running, the asterisk gives the following error: > > -- Launched AGI Script /var/lib/asterisk/agi-bin/finconf.php > == finconf.php|800|: Failed to execute > '/var/lib/asterisk/agi-bin/finconf.php': No such file or directory > > But the file is there. The command ls -l returns: > > *-rwxrwxrwx 1 root root 140 Sep 17 15:42 finconf.php* > > Why does it return the error? > > Thanks, > > * > ------------------------------ > * > > *Anahi Ludue?a* > > > > > > ------------------------------ > Disfruta antes que nadie del nuevo Windows Live Messenger<http://download.live.com> > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090917/82e74cd1/attachment.htm