[Asterisk-Users] wrong numbers message
Michael Stearne
mstearne at gmail.com
Wed Jun 1 20:08:02 MST 2005
On 6/1/05, Luis Diaz <diazluis at gmail.com> 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
More information about the asterisk-users
mailing list