Get text input from the user and say it back

  1. #!/usr/local/bin/php -q
  2. <?php
  3.   require('phpagi.php');
  4.  
  5.   $agi new AGI();
  6.   $agi->answer();
  7.   $cid $agi->parse_callerid();
  8.   $agi->text2wav("Hello, {$cid['name']}.  Let's enter some text.");
  9.   $text $agi->text_input('UPPERCASE');
  10.   $agi->text2wav("You entered $text");
  11.   $agi->text2wav('Goodbye');
  12.   $agi->hangup();
  13. ?>

Documentation generated on Thu, 30 Sep 2010 02:22:03 -0700 by phpDocumentor 1.4.2