Get text input from the user and say it back

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

Documentation generated on Wed, 16 Nov 2005 12:49:24 -0700 by phpDocumentor 1.3.0RC3