Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-26 Thread Philipp Kempgen
Leah Newmark schrieb: > I'm running asterisk 1.4.22 on a debian server. > I have php5 installed and it works correctly command line. > When trying to run a php script via AGI, I get messages such as: > GI Tx >> I> > AGI Rx << #!/usr/bin/php5 -q > AGI Tx >> 510 Invalid or unknown command > > The sc

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-25 Thread David Quinton
>planning.customer.c...@west-lindsey.co.ukon Thu, 25 Jun 2009 15:11:04 +0800, >Andrew Furey wrote: >On 25/06/2009, David Quinton wrote: >> May be a total red herring (I'm using an old version of Trixbox) >> but if I edit my PHPs on a Windows machine and upload using FTP, they >> will only ru

[asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-25 Thread Leah Newmark
I think I found the part of my AGI the script is stuck at. The #!/usr/bin/php command was fine. What the agi debug I believe is displaying is the output of this: $in = fopen("php://stdin","r"); Which explains what I thought was "cached" -- the same #!/usr/bin/php5 -q command repeatedly failing

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-25 Thread Leah Newmark
Thanks for the suggestion, but I'm editing directly on the server I've been doing AGIs for, what, 4 years now? I have never been *this* stumped! __ On Wed, 24 Jun 2009 15:43:14 -0400, Leah Newmark http://lists.digium.com/mailman/listinfo/asteris

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-25 Thread Andrew Furey
On 25/06/2009, David Quinton wrote: > May be a total red herring (I'm using an old version of Trixbox) > but if I edit my PHPs on a Windows machine and upload using FTP, they > will only run if I fire up Nano and save the file on the Asterisk box. I haven't used TrixBox, but that sounds a lot

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-25 Thread David Quinton
On Wed, 24 Jun 2009 15:43:14 -0400, Leah Newmark wrote: >I also have noticed odd behavior. When I edit an AGI, the changes aren't >always showing up in the running of the script via asterisk. May be a total red herring (I'm using an old version of Trixbox) but if I edit my PHPs on a Windows ma

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-24 Thread Danny Nicholas
List - Non-Commercial Discussion Subject: Re: [asterisk-users] PHP AGI Not Working and Odd Behavior Try running your script with /usr/bin/php5 script.php to test it Or changing #!/usr/bin/php5 -q to #!/usr/bin/php -q Leah Newmark wrote: Thanks. I didn't change anything in my dialplan

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-24 Thread Juan E. Rodríguez
Try running your script with /usr/bin/php5 script.php to test it Or changing #!/usr/bin/php5 -q to #!/usr/bin/php -q Leah Newmark wrote: Thanks. I didn't change anything in my dialplan. I am aware of reloading configuration :) My AGIs are copied from a working asterisk install -- the sheba

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-24 Thread Leah Newmark
Thanks. I didn't change anything in my dialplan. I am aware of reloading configuration :) My AGIs are copied from a working asterisk install -- the shebang argument is how I've always done it. Either way, I have tried it without the -q as well, and that also didn't succeed. I just tried your t

Re: [asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-24 Thread David Backeberg
On Wed, Jun 24, 2009 at 3:43 PM, Leah Newmark wrote: > Hi, > > I'm running asterisk 1.4.22 on a debian server. > I have php5 installed and it works correctly command line. > When trying to run a php script via AGI, I get messages such as: > GI Tx >> I> > AGI Rx << #!/usr/bin/php5 -q > AGI Tx >> 510

[asterisk-users] PHP AGI Not Working and Odd Behavior

2009-06-24 Thread Leah Newmark
Hi, I'm running asterisk 1.4.22 on a debian server. I have php5 installed and it works correctly command line. When trying to run a php script via AGI, I get messages such as: GI Tx >> I> AGI Rx << #!/usr/bin/php5 -q AGI Tx >> 510 Invalid or unknown command The scripts are completely executable a