[Asterisk-Users] AGI Errors

Mike Roberts manipura at gmail.com
Mon Nov 8 09:50:50 MST 2004


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 at 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 at transit  agi-bin]# ll
> > > -rwxr-xr-x    1 root     root         1020 Nov  8 01:17 php-agi.agi
> > > [root at 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 at 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 at basesys.com>
> > > >
> > > >
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at 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
> >
> >
>



More information about the asterisk-users mailing list