« Back to CVP - All Versions

inline DTMF Digits grammar

Combination View Flat View Tree View
Threads [ Previous | Next ]
Showing 1 - 20 of 29 results.
of 2
I am looking to use an inline DTMF grammar for variable length digits within a form object.  I am looking for the syntax that would work with Gateway Version 15.1(3)T1 that does not use an ASR.

You can put this into the DTMF Grammar setting of the form element builtin:dtmf/digits On 10/11/2011 3:41 PM, Cisco Developer Community Forums wrote: Greg Worm has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- I am loking to use an inline DTMF grammar for variable length digits within a form object. I am looking for the syntax that would work with Gateway Version 15.1(3)T1 that does not use an ASR. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4590852> or simply reply to this email. -- Janine Graves

Janine,

Do you know what voiceXML Gateway version I need to select to get the grammar tag printed out onto the vxml page.

You should just be able to select Cisco CVP with DTMF Are you having issues with this? On 10/11/2011 4:16 PM, Cisco Developer Community Forums wrote: Greg Worm has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Janine, Do you know what voiceXML Gateway version I need to select to get the grammar tag printed out onto the vxml page. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4590889> or simply reply to this email. -- Janine Graves

I am trying to create a form that accepts 4-10 digits and also accepts a *. Right now the system is only generating the keypress * and not the Grammar builtin:dtmf/digits

Which gateway do you have selected? Is it the Cisco with DTMF? And which version of Studio/VxmlServer do you have? And which version of IOS? For the star key, Cisco with DTMF, requires you to use backslash before the star \* in the Form element DTMF Keypress setting. And I've always used builtin:dtmf/digits for the DTMF Grammar setting. But I will test this again in an hour when I get into the office (I'm on Aussie time right now). ----------------------------------------------------------------------------------------------------------------------------------------- On 10/11/2011 4:35 PM, Cisco Developer Community Forums wrote: Greg Worm has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- I am trying to create a form that accepts 4-10 digits and also accepts a *. Right now the system is only generating the keypress * and not the Grammar builtin:dtmf/digits -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4590907> or simply reply to this email. -- Janine Graves

CVP Version: 8.5(1)
Gateway Version 15.1(3)T1
Cisco-IOS-C3900/15.1

You're right, I just tried it and the gateway gave me a nomatch too. So, try this work-around: Use a Digits element, specify your range of digits. Then in that same Digits element, select the tab LocalHotlinks and do the following: 1.Press the "Add" button 2/3 way down. 2.Highlight the New_Local_Hotlink1 in the window 3.Change the name at the bottom to "Star" 4.Pull down the DTMF menu at the bottom, select Inline 4b.Enter \* in the box next to that. this gives you a new exit state off the Digits element that will be executed if the caller press star. Hope this helps. It's not perfect, as you won't get a 'value' variable if the caller presses the star key, but it'll get you up and running. Janine On 10/11/2011 4:49 PM, Cisco Developer Community Forums wrote: Greg Worm has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- CVP Version: 8.5(1) Gateway Version 15.1(3)T1 Version 15.1(3)T1 -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4590926> or simply reply to this email. -- Janine Graves

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.

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.


Java code cannot typically catch a hotlink. You can use the hotlink to throw a event which calls a java class and there you can set the session variables.

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

The problem with that approch is that is accepts non-digit numbers. .....?.?.? accepts 1*1*1*1*. I only need digits. I got My issue to work woth a Form element and a HotLink. Not the best or right way but it is working.

Thanks for all of your help!

What did you put into the form element and the hotlink to get it to accept 4-10 digits? On 10/12/2011 3:36 PM, Cisco Developer Community Forums wrote: Greg Worm has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- The problem with that approch is that is accepts non-digit numbers. .....?.?.? accepts 1*1*1*1*. I only need digits. I got My issue to work woth a Form element and a HotLink. Not the best or right way but it is working. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4594596> or simply reply to this email. -- Janine Graves

In the form I endered "builtin:dtmf/digits?minlength=4;maxlength=10" in the DTMF Grammar spot and "\*" in the Hotlink

Hi Greg,

But, I thought that 'builtin:dtmf/digits?minlength=4;maxlength=10'
didn't work?

Are you saying that the builtin works so long as you DON"T fill in the
\* as the keypress?



--
Janine Graves

I think my original problem was that i was trying to use the Digits object with the \* using custom code. Then I switched to a Form and tried using the Grammar and Keypress together. Neither of these combos worked and Using a \* in a Hotlink does not work with the Menus or Digits object. I am finding some strange behavior using the Cisco DTMF.

After further review adding a DTMF grammar of builtin:dtmf/digits?minlength=4;maxlength=10 does not work. Infact the grammar is ignored and you can enter any combination of keypresses. The grammar tag is not even pressent in the VXML that CVP generates.

Hey Greg,

Maybe you should try "vxml allow-star-digit"

on your vxml gateway

Thanks,
Corey

Hi Corey,

Does that command have to be part of the gateway CLI? Or can you execute it for one node in the studio app?
I'm wondering if there's a way to allow * with digits grammar only on certain elements in studio? Or is it "all or nothing"?
Do you know how to specify using regex for the gateway to allow 4 to 7 digits (if I didn't want to use the builtin:dtmf/digits?minlength=4;maxlength=7)?
Without allowing the star key? And then also if I wanted to allow the star key?

Thanks, Janine

Showing 1 - 20 of 29 results.
of 2