Menu

[r15]: / trunk / examples / input.php  Maximize  Restore  History

Download this file

15 lines (13 with data), 347 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/usr/local/bin/php -q
<?php
set_time_limit(30);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
$cid = $agi->parse_callerid();
$agi->text2wav("Hello, {$cid['name']}. Let's enter some text.");
$text = $agi->text_input('UPPERCASE');
$agi->text2wav("You entered $text");
$agi->text2wav('Goodbye');
$agi->hangup();
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.