Hello - I'm using ATA-186 devices, with RFC2833 DTMF encoding. I am having problems with routines that input long strings of numbers, in that I am getting more than a small number of double digit entries. As an example, I have a section that asks for the user to enter a call forwarding number, and then puts that number into a database. Almost always, there are double digits when the user only intended to type a single digit, no matter how carefully they entered their string. Can anyone comment on how they may have solved this issue with Cisco devices? The units in question are running 2.16. JT <snippet of code where I'm inputting the number - line has already been Answered> [class4.6] exten => change,1,ResponseTimeout(5) exten => change,2,Playback(special/edting-spd-dial-number) exten => change,3,SayDigits(${SPEEDDIAL}) exten => change,4,Background(silence/1) exten => change,5,Background(special/entr-nmbr-fr-spddial-entry) exten => change,6,Background(special/and-prs-pound-whn-finished) exten => change,7,Background(silence/3) exten => change,8,Goto(5) ; strip off any extra pound or * symbols, and then set the variable exten => _X.,1,GotoIf($[$[${EXTEN:-1:1} = #] | $[${EXTEN:-1:1} = *]]?2:4) exten => _X.,2,StripLSD(1) exten => _X.,3,Goto(1) exten => _X.,4,DBput(${MYNUMBER}/FEAT/SPEED/${SPEEDDIAL}=${EXTEN}) exten => _X.,5,Goto(class4.5,verify,1) exten => t,1,Goto(change,5)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 20 November 2003 04:38, John Todd wrote:> I'm using ATA-186 devices, with RFC2833 DTMF encoding. I am > having problems with routines that input long strings of numbers, in > that I am getting more than a small number of double digit entries. > As an example, I have a section that asks for the user to enter a > call forwarding number, and then puts that number into a database. > Almost always, there are double digits when the user only intended to > type a single digit, no matter how carefully they entered their > string.Sounds very much like the problem we're having when using RFC2833. We're not using an ATA device however. Theory: If the endpoint doesn't properly remove the tone sound from the stream and sends the RFC2833 equivalent tone event, Asterisk might parse both the inband tone and the RFC2833 tone, which will result in two tones. - -- Regards, Tais M. Hansen ComX Networks Tel: +45-70257474 Fax: +45-70257374 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/vNa12TEAILET3McRAv/nAKCFrJcOpp8TsPpHUZrcOxL8LILoRACgj0tz fOJ6graDyHUFc5vap0KO2Dk=NCu5 -----END PGP SIGNATURE-----
I can't afford Cisco phones, but I'll tell ya what I see with GS phones. They seem to be bouncy as hell. I'll hit a key and see 4 - 6 rtp dtmf event messages. I am going to try and just debounce this in * and see what happens. John Todd wrote:> > Hello - > I'm using ATA-186 devices, with RFC2833 DTMF encoding. I am having > problems with routines that input long strings of numbers, in that I > am getting more than a small number of double digit entries. As an > example, I have a section that asks for the user to enter a call > forwarding number, and then puts that number into a database. Almost > always, there are double digits when the user only intended to type a > single digit, no matter how carefully they entered their string. > > Can anyone comment on how they may have solved this issue with Cisco > devices? The units in question are running 2.16. > > JT > > > <snippet of code where I'm inputting the number - line has already > been Answered> > > [class4.6] > exten => change,1,ResponseTimeout(5) > exten => change,2,Playback(special/edting-spd-dial-number) > exten => change,3,SayDigits(${SPEEDDIAL}) > exten => change,4,Background(silence/1) > exten => change,5,Background(special/entr-nmbr-fr-spddial-entry) > exten => change,6,Background(special/and-prs-pound-whn-finished) > exten => change,7,Background(silence/3) > exten => change,8,Goto(5) > > ; strip off any extra pound or * symbols, and then set the variable > exten => _X.,1,GotoIf($[$[${EXTEN:-1:1} = #] | $[${EXTEN:-1:1} = *]]?2:4) > exten => _X.,2,StripLSD(1) > exten => _X.,3,Goto(1) > exten => _X.,4,DBput(${MYNUMBER}/FEAT/SPEED/${SPEEDDIAL}=${EXTEN}) > exten => _X.,5,Goto(class4.5,verify,1) > > exten => t,1,Goto(change,5) > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Bob Knight [-w] the work option bk@minusw.com 925-449-9163