# 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');
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 Thu, 30 Sep 2010 02:22:03 -0700 by phpDocumentor 1.4.2