On 6/1/05, Luis Diaz <[EMAIL PROTECTED]> wrote:
> how can i do to display a message to every wrong number ???
I do something like:
$expandedNumbers="";
$result = $agi->get_data('beep', 4000, 6);
$numbersPressed = $result['result'];
for($i=0;$i<strlen($numbersPressed);$i++){
$expandedNumbers=$expandedNumbers."
".substr($numbersPressed,$i,1);
}
$agi->swift("Sorry, we can't find something with numbers
$expandedNumbers. Please try again.");
I put the spaces in there because when using swift the numbers are
read back better if they have spaces in between them.
Michael
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users