Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

tcl v2 collectdigits flush #

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
New Member

Re: tcl v2 collectdigits flush #

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

225
Views
0
Helpful
1
Replies