[Asterisk-Users] First AGI help..

2003-11-05 Thread WipeOut
I am trying to write my first AGI script.. I cant seem to get it to work.. I am trying PHP in preference (I know this is frowned upon) but I can't get it to work with perl either.. I guess I just don't understand it correctly.. All I am trying to do is get the script to make a call using Dial

Re: [Asterisk-Users] First AGI help..

2003-11-05 Thread Paul Liew
Hi ?php // From Kapjod's sample.. ob_implicit_flush(true); set_time_limit(0); $err = fopen(php://stderr,w); $in = fopen(php://stdin,r); $out = fopen(php://stdout,w); //This works.. fputs($out, Verbose \Calling phone\n); // This doesn't fputs($out, exec(Dial(sip/2012)\n); fclose($in);

Re: [Asterisk-Users] First AGI help..

2003-11-05 Thread WipeOut
Paul Liew wrote: Hi ?php // From Kapjod's sample.. ob_implicit_flush(true); set_time_limit(0); $err = fopen(php://stderr,w); $in = fopen(php://stdin,r); $out = fopen(php://stdout,w); //This works.. fputs($out, Verbose \Calling phone\n); // This doesn't fputs($out, exec(Dial(sip/2012)\n);