Janine Graves | Greg, I agree that the builtin:dtmf/digits doesn't seem to work anymore. It used to. And according to the documentation, it still should. "The <field> builtin types digits and number accept any nondigit input." -------------------------------------------------- But, until Cisco fixes that, here's a possible workaround. In the Cisco VoiceXML Programming Guide (not the Programming Guide for Studio/Vxml Server, but the Guide for the gateway), it talks about using Regular Expressions for the gateway's DTMF grammar. Search for "Cisco DTMF Grammar". (See below) --------------------------------------------------- It looks like you could probably use the Form and enter this on the DTMF Keypress setting: .... .? .? .? .? .? .? (this seems as it would allow 4 to 10 digits (4 dots followed by space-dot-question mark 6 times). -------------------------------------------------- -------------------------------------------------- . (dot) Matches any single character. For example, Cisco DTMF grammar with a regular expression <grammar type= ¿application/grammar+regex¿>1408.......</grammar> matches a seven digit phone number with the leading area code 1408. ----------------------------------------------- \ (backslash) The quoting character. It removes any special meaning from the following character and treats it as an ordinary character. For example, <grammar type= ¿application/grammar+regex¿>\*</grammar> matches a literal asterisk (star) key, not the asterisk repetition operator. ------------------------------------------------ ? Matches zero or one occurrence of the character or regular expression immediately preceding. For example, <grammar type= ¿application/grammar+regex¿>408?</grammar> matches 40, 4088, 40888, 408123, 4083456. The match occurs for 408, 4088, 40888 and also for 408 followed by other extra digits that occur after 408. ---------------------------------------------- + Matches one or more occurrences of the character or regular expression immediately preceding. For example, <grammar type= ¿application/grammar+regex¿>408+</grammar> matches 408, 4088, 40888, 408123, 408883456. The match occurs not only for 408, 4088, 40888 but also for 408 followed by other extra digits that occur after 408. ------------------------------------------------ * Matches zero or more occurrences of the character immediately preceding. For example, <grammar type= ¿application/grammar+regex¿>408*</grammar> matches 40, 4088, 40888, 408123, 4083456. The match occurs not only for 408, 4088, 40888 but also for 408 followed by other extra digits that occur after 408. ------------------------------------------------ Only the previously listed metacharacters are supported. When an unsupported metacharacter is used, no error will be triggered. However, input recognition will produce unexpected results. In addition to matching the original pattern, the DTMF grammar matches the original pattern followed by extra digits. Matching of extra digits occurs only if the repetition operators are at the end of a pattern. Regular expression for DTMF grammar allows you to use only empty spaces instead of the operator | to join characters. For example: ¿To join \* and .+ use an empty space instead of the operator |. See the following example: <grammar type= ¿application/grammar+regex¿>\* .+</grammar> The <field> builtin types digits and number accept any nondigit input. A nomatch event is not generated. Regards Janine ------------- ------------ ----------- On 10/12/2011 10:50 AM, Cisco Developer Community Forums wrote: Greg Worm has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Is there a way in custom java code to catch the hotlink and set some session variables? Currently it is bypassing my java code and and I get no exitState. FYI I could not use the digit element I had to use the Form element. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4592156> or simply reply to this email. -- Janine Graves |