Hello,
I am trying to end or cancel an input by using star key (*) - I saw the same question from the old forum:
http://cdn.cisco.com/web/cvp/community/-/message_boards/message/22668986
I am trying now to create a custom Digit Input. Im still figuring out from the code how the elements gets the number so we can create a new exit state (Cancel). We dont want to invoke no_match as our no_match would speak out a different audio than cancel.
Am I right in trying to create a custom Digit? Or is it Custom Form element that I should be looking at? And any suggestions on what part of the code I should be looking at?
Thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Creating your own Digits element is not easy.
I'd recommend that you use the Studio Digits element to accept
Min Digits:1
Max Digits: 20 digits (or whatever your max is)
Set MaxNoMatch to 1 in the Settings tab.
This way, the only DTMF that would cause NoMatch is the DTMF-*
If the caller presses * the app will exit out the max_nomatch exit state
immediately - and you can then treat it like 'cancel'
If the caller doesn't enter * then they will continue down the done exit
state.
You can then easily write a StringLength element to determine if you
collected the right number of digits from the caller. If not, play an
audio message 'invalid entry' and connect back to the Digits element.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Janine,
What about using a hotlink for the * ? I would think that would prevent the need for hijacking the MaxNoMatch output on the Digits element.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Oops, nevermind, just read the original post:
There is a way for * to trigger the application to exit an element (using HotLink) - but only if it's the first key entered.
That's kinda silly... I would have hoped that the hotlink would be able to catch the character mid-string.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi,
Do you have the context.xml config to connect VxmlServer to a SQL Server db?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Janine, thanks for the reply! I will be trying that tomorrow.
Yes, I find its hard to create a custom Digit Element. Im trying to trace the code but is progressing very slow.
Is the context.xml question directed at me? I have it yes.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi. I figured out the context.Xml
Thanks, Janine
Sent from my phone. Please excuse typos.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.