[Asterisk-Users] agi command 'stream file' not working?

Paul Zimm pbzinc at dejazzd.com
Mon Feb 7 13:18:00 MST 2005


I'm running Asterisk CVS-v1-0-12/28/04
I use a short php agi script to get the temperature from an opto22 module.
STREAM FILE temperature does nothing, but SAY NUMBER works fine.
What am I doing wrong?

#!/usr/bin/php -q
<?
  $output = @shell_exec('eiocl 192.168.10.212 2001 10 44 r ap');
  $words = explode(" ", $output);
  echo "STREAM FILE temperature X \n"; 
  fflush( STDOUT ); 
  echo "SAY NUMBER " .intval($words[count($words)-1]) ." X\n"; 
  fflush( STDOUT ); 
?>





More information about the asterisk-users mailing list