[Asterisk-java-users] sayalpha doesn't stop if any of the given DTMF number are received on the cha
Brought to you by:
srt
From: Jesus J. <ap...@gm...> - 2007-03-13 22:07:34
|
Hi to all, I have a problem when i use sayalpha metod , i use to read 6 chacter text, when I input a number it don't stop untill finish of read all character and no character is returned. I use asterisk-java-03-m2 and asterisk 1.2.7.1 I have to create a new fuction that call fuction char to char ... public char readID(String ma)throws AgiException{ char[] maAr=ma.toCharArray(); char res=' '; int i=0; while((i<maAr.length)&&(!isNumber(res))){ res=sayAlpha("" + maAr[i],"0123456789"); i++; } return res; } Regards, txus. P.D: Sorry for my English . |