[Asterisk-java-users] Re: Receiving DTMF digits via FastAGI
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-07-27 10:11:21
|
> A question about the FastAGI stuff in general. Many of the functions > provided by AbstractAGIScript allow DTMF input to be received from the > server. > Is there a way to catch multiple dtmf input instead of a single charact= er? > i.e. I can wait for any digit from 0-9, but I can't wait for '10'.. Most of Asterisk's AGI commands can be interrupted by pressing a DTMF dig= it. Which - if any - DTMF digits should cause an interruption can be specifie= d via the escapeDigits parameter of many of AbstractAGIScript's methods. Th= e singe character that those methods return corresponds to the digit that has been pressed to interrupt the command. There is no way to say "Abort this command only if user presses DTMF digi= t 2 after he pressed DTMF digit 1". If you want to read DTMF digits for further processing, you can use the GetDataCommand. See http://asterisk-java.sourceforge.net/apidocs/net/sf/asterisk/fastagi/comm= and/GetDataCommand.html The corresponding getData() methods are available in Asterisk-Java CVS-HEAD, but you can as well use the GetDataCommand with Asterisk-Java 0.1 vial channel.sendCommand() =3DStefan |