05-01-2014 12:05 PM
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!
Solved! Go to Solution.
05-01-2014 02:01 PM
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.
05-01-2014 02:01 PM
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.
05-01-2014 02:12 PM
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.
05-01-2014 02:18 PM
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.
05-01-2014 02:35 PM
Hi,
Do you have the context.xml config to connect VxmlServer to a SQL Server db?
05-01-2014 03:07 PM
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.
05-01-2014 03:09 PM
Hi. I figured out the context.Xml
Thanks, Janine
Sent from my phone. Please excuse typos.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide