[Asterisk-Users] AGI Rocks!! (A happy camper)
WipeOut
wipe_out at users.sourceforge.net
Tue Nov 25 14:40:46 MST 2003
costas wrote:
>I was just looking at AGI with PHP myself. I just have a real dumb question. How does Linux know to send $stdout(or echo) to *? What if there are other apps open as well waiting for input. WOn't they get the output?
>
>Also, how does the AGI know to read from $stdin is * input?
>
>Costas
>
>
>
Costas,
Take a look at http://www.voip-info.org/wiki-Asterisk+AGI+php
You need to open stdin and stdout to the PHP script..
$stdin = fopen('php://stdin', 'r');
$stdout = fopen('php://stdout', 'w');
also make sure you start the script with
ob_implicit_flush(false);
set_time_limit(5);
later..
More information about the asterisk-users
mailing list