bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bayonne-devel] fast digits


From: Scott K
Subject: [Bayonne-devel] fast digits
Date: Tue, 22 Feb 2005 22:23:36 -0500

Has anyone ever seen this before?    Trying to collect 1 digit with
this code: The digit needs to be 6 or less.

^dtmf
    collect count=1 timeout=5 ignore="*#ABCD"
 
    case %session.digits -eq 1
    case %session.digits -eq 2
    case %session.digits -eq 3
    case %session.digits -eq 4
    case %session.digits -eq 5
    case %session.digits -eq 6
        set %bcount %session.digits
    otherwise
        set %invalid  1
 endcase

  set %ccount $session.digits

Now if you enter the digits normally, everything works fine. After 1
digit the collection terminates and all is good.  However if you enter
the digits fast you can get 2 digits in before the receiver detaches. 
The weird thing is that it will still fall into the case statement and
set bcount to the first digit but then after the case statement,
ccount will be set to both digits.

For example if i enter 34, bcount will be set to 3 and ccount will be
set to 34. Although every once in a while bcount will also be set to
34.   So my question is why is this even possible, why doesnt the
collection just end after the first digit no matter how fast the
digits are entered?

Any ideas?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]