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

blackwater dev blackwaterdev at gmail.com
Mon Jan 15 09:53:51 MST 2007


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??

Thanks!

 require('/var/lib/asterisk/agi-bin/phpagi.php');

  $agi = new AGI();
  $agi->answer();
  $agi->swift("Hello there everyone ");


        $agi->swift("Please press 1 for a  search  .");
        $result= $agi->get_data('beep',300000000, 1);
        $zip= $result['result'];

  $agi->swift("That concludes your call.  Thank you, Good bye .");
  $agi->hangup();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070115/a7c63dad/attachment.htm


More information about the asterisk-users mailing list