Re: [Asterisk-Users] new2agi -php

2004-03-07 Thread Brancaleoni Matteo
Hi The error message is generated by PHP... If your PHP version is higher that v4.3.0 line 5: $stdout = fopen('php://stdout', 'w'); should be $stdout = fopen(STDOUT, 'w'); Wrong... STDOUT is already open within php cli (4.3.0 and above) so just do fwrite(STDOUT,blah); and you're

[Asterisk-Users] new2agi -php

2004-03-06 Thread Doug Harris
Hi firiends, Sorry for a basic question here. I am trying to write an agi script using php. Nothing fancy just simple script first. I call the php script from the extensions.conf exten = 91234/1001,1,Wait,1exten = 91234/1001,2,AGI,test.agiexten = 91234/1001,3,Hangup php script is ;

Re: [Asterisk-Users] new2agi -php

2004-03-06 Thread James Golovich
On Sat, 6 Mar 2004, Doug Harris wrote: * telles me Error in Argument 1, char 3, option not found. . script can be run from command line. Appreciate some help to get going here. I can't find any error like this in the asterisk source code, perhaps your error is coming from php? James

Re: [Asterisk-Users] new2agi -php

2004-03-06 Thread Derek Bruce
t = fopen('php://stdout', 'w'); should be $stdout = fopen(STDOUT, 'w'); I suspect that is the problem, as everything else looks file. - Original Message - From: Doug Harris To: [EMAIL PROTECTED] Digium. Com Sent: Saturday, March 06, 2004 11:07 AM Subject: [Aste

RE: [Asterisk-Users] new2agi -php

2004-03-06 Thread Florian Overkamp
Hi, -Original Message- I am trying to write an agi script using php. Nothing fancy just simple script first. I call the php script from the extensions.conf exten = 91234/1001,1,Wait,1 exten = 91234/1001,2,AGI,test.agi exten = 91234/1001,3,Hangup Hmm, sure you don't need to