Re: [Asterisk-java-users] Re: Receiving DTMF digits via FastAGI
Brought to you by:
srt
From: Peter H. <pe...@li...> - 2005-08-10 07:01:38
|
I'm getting an error with using sendCommand(GetDataCommand). I'm not sur= e=20 if this is an asterisk problem or if it's a asterisk-java problem or if i= t's=20 a provider problem. Occassionally, when executing the script, dtmf input is recognized, and t= he=20 AGIReply will always list the response as null (timeout). This will then= =20 happen for the duration of the call, even if subsequent Get Data commands= =20 are executed. This put the provider and asterisk at the top of my list. However, I had= n't=20 had that problem with any of my providers prior to switching over to usin= g=20 AGI script. Any ideas what might be causing this? Peter ----- Original Message -----=20 From: "Stefan Reuter" <sr...@re...> To: <ast...@li...> Sent: Wednesday, July 27, 2005 3:11 AM Subject: [Asterisk-java-users] Re: Receiving DTMF digits via FastAGI >> 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=20 >> character? >> 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=20 > digit. > Which - if any - DTMF digits should cause an interruption can be specif= ied > via the escapeDigits parameter of many of AbstractAGIScript's methods. = The > 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 di= git > 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/co= mmand/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 > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=CCk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >=20 |