cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
344
Views
0
Helpful
1
Replies

tcl v2 collectdigits flush #

grace.tan
Level 1
Level 1

Hi,

I am trying the debit card callflow where the user has max 3 tries to enter correct prepaid card number.

Somehow, after the first try, the first prepaid termkey '#' sign gets into the second prepaid first digit.

How to get cisco ivr to flush digit 'cache' after each collectdigit?

Thanks.

Rgds,

Grace

---------

FIRST TRY

//-1//TCL2:HN00A43884:/vtr_ev_dcdigits: DCDIGITS [12345678]

//-1//TCL2:HN00A43884:/tcl_PutsCmd: number = 12345678

//-1//TCL2:HN00A43884:/tcl_PutsCmd: numberLen = 8

//-1//TCL2:HN00A43884:/tcl_PutsCmd: account = 1234

//-1//TCL2:HN00A43884:/tcl_PutsCmd: pin = 5678

-----------

SECOND TRY

//-1//TCL2:HN00A43884:/vtr_ev_dcdigits: DCDIGITS [##876543]

//-1//TCL2:HN00A43884:/tcl_PutsCmd: number = ##876543

//-1//TCL2:HN00A43884:/tcl_PutsCmd: numberLen = 8

//-1//TCL2:HN00A43884:/tcl_PutsCmd: account = ##87

//-1//TCL2:HN00A43884:/tcl_PutsCmd: pin = 6543

--------------------

#For card number

set param2(interruptPrompt) true

set param2(abortKey) *

set param2(terminationKey) #

set param2(ignoreInitialTermKey) true

proc act_GetCard { } {

global cardLen

global accountLen

global pinLen

global count

global param2

global promptFlag

puts "act_getCard"

set cardLen [expr $accountLen + $pinLen]

set param2(maxDigits) $cardLen

leg collectdigits leg_incoming param2

}

1 Reply 1

grace.tan
Level 1
Level 1

Found out that, the pattern setting works and got rid of the extra # during each digit collection.

#For prepaid card number

set param(interruptPrompt) true

set param(abortKey) *

set param(terminationKey) #

set pattern(account) .+

set cardLen [expr $accountLen + $pinLen]

set param(maxDigits) $cardLen

leg collectdigits leg_incoming param pattern

Regards,

Grace

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: