cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
93
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: BRAD CLARKE on 07-10-2009 07:31:01 PM
I'd like to be able to use "*" as a valid input with the Digit Element , instead of an abort char.
 
I don't see any way to do this like we can with the termchar vxml property.
 
I need to be able to collect a string of DTMF digits, for example *70, and save them to session / element data.
 
For now I have used a Phone number element , and converted the "-" the Phone Number element creates back to a "*"
 
 

Subject: RE: Using * as valid input with Digit Element
Replied by: Ranjana Narayan on 12-10-2009 10:03:20 AM
Brad,

"*" entered for a Digit element throws a nomatch and this is per the VXML Spec.
You can instead try to use a Form element, and define the dtmfkeypress wit a metacharacter like "\*", this would generate the form vxml grammar as <grammar type= ¿application/grammar+regex¿>\*</grammar> which would match a literal asterisk (star) key.
Else, you can continue to use your workaround, to collect "*" in either Phone (* returned as X) or Number (* returned as . or + or -) and then convert it into "*".

Hope this helps,
Ranjana.
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:

Quick Links