Re: [Asterisk-java-users] FastAGI question
Brought to you by:
srt
From: Peter H. <pe...@li...> - 2005-07-27 10:50:19
|
Another question related to receiving dtmf. I'm trying to emulate "Background" functionality when streaming audio... I'm playing audio, while expecting dtmf input. However, sometimes the dt= mf=20 is not picked up by my implementation of AgiScript. Here's a simplified version of the code: int attempts=3D0; String validResponse=3D"0123456789"; while (attempts<=3D3) { attempts++; char responseCode; responseCode =3D streamFile(channel, "tt-weasels",=20 validResponses); if (responseCode =3D=3D '1') break; responseCode =3D streamFile(channel, "silence/5",=20 validResponses); if (responseCode =3D=3D '1') break; } Any thoughts? Thanks, Peter ----- Original Message -----=20 From: "Peter Hsu" <pe...@li...> To: <ast...@li...> Sent: Wednesday, July 27, 2005 1:29 AM Subject: [Asterisk-java-users] FastAGI question > Thanks Stefan, > > A question about the FastAGI stuff in general. Many of the functions=20 > provided by AbstractAGIScript allow DTMF input to be received from the=20 > 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'.. > > Thanks, > Peter > > ----- Original Message -----=20 > From: "Stefan Reuter" <sr...@re...> > To: <ast...@li...> > Sent: Tuesday, July 26, 2005 6:29 AM > Subject: Re: [Asterisk-java-users] Originate Failure Events > > >> Hi Peter, >> >>> Is there any way to tell what the cause of an originate failure is? >> >> i don't think there currently is an easy one. >> Maybe you can observe the NewStateEvents that of the channel... >> but it is not an attribute that is supported out of the box. >> >> =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 >> > > > > ------------------------------------------------------- > 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 |