[asterisk-users] php agi - first phrase truncated, all others fine

Trevor Peirce tpeirce at digitalcon.ca
Mon Jan 15 13:40:33 MST 2007


blackwater dev wrote:
> I have the following code.  When I call the extension, it either 
> ignores the first "Hello there everyone", or says "hello" and moves on 
> sometime stoping before it finishes hello.  The rest of the text reads 
> fine.  Anyone else have this issue??
Try adding this...
>
>  require('/var/lib/asterisk/agi-bin/phpagi.php');
>
>   $agi = new AGI();
>   $agi->answer();
sleep(0.5);
>   $agi->swift("Hello there everyone ");

Regards,
Trevor


More information about the asterisk-users mailing list