We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

problem with long number input in <field>

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
always24x7
Posts: 30
Joined: Tue Apr 18, 2006 3:05 pm
Location: Bedford, TX

problem with long number input in <field>

Post by always24x7 »

I am trying to accept a credit card number into a <field> tag in the following code snipit:

=========================================
<field name="cardNumber" type="digits?length=19" modal="true">
<prompt>
Please enter your nineteen digit Fuel Links card number.
</prompt>

<filled>
<prompt>
You entered
<say-as type="acronym">
<value expr="cardNumber"/>
</say-as>
</prompt>
</filled>

<noinput>
I'm sorry, I did not hear you...
<clear namelist="cardNumber"/>
</noinput>
</field>
============================================

When I try to put the number in via the touch-tone phone, it fails about midway through the 19 digits and hangs up. I know it will hang up if it doesn't have a catchall, but I don't get either of the prompt messages.

I added the modal option on the <field> tag to try to prevent any other interpretations.

I checked the log and it appears to be treating each dtmf key pressed as a completed entry and causing a <nomatch>.

What do I need to do to force the interpreter to wait for all 19 digits?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR code to show 5s interdigititmeout

Post by support »

You should add the IVR tag, <property>, above the field that sets interdigittimeout to a larger value. Given the fact that you're expecting callers to enter a 19 digit number, I'd recommend a 5s interdigittimeout. So you'll add the following line of IVR code:

Code: Select all

....
<property name="interdigittimeout" value="5s"/>
....
If you would like the IVR platform to immediately complete the field after the 19th digit is entered (rather than waiting 5s or expecting the "#" terminator to be entered) you should turn on max digit termination with the following line of IVR code:

Code: Select all

....
<property name="termmaxdigits" value="true"/>
....

Post Reply