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,1
exten => 91234/1001,2,AGI,test.agi
exten => 91234/1001,3,Hangup
 
php script is ;
 
#!/usr/bin/php -q
<?php
ob_implicit_flush(true);
set_time_limit(6);
$stdout = fopen('php://stdout', 'w');
fwrite($stdout,"STREAM FILE demo-congrats" );
fflush($stdout);
?>
 
* 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.
 
Dough

Reply via email to