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, 25 May 2005 14:29:42 -0600 by phpDocumentor 1.2.3