cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Webcast -VXLAN BGP EVPNt
234
Views
5
Helpful
4
Replies
Highlighted

UCCX Scripting "Switch String"

Hi all,

I am newbie to UCCX Scripting and I have already created several scripts such as basic IVR, IVR with queuing, Busineshours check, holiday check and etc. I wanted to create a basec IVR script bu this time with dial by extension features. I have made a search and learned that i can use Switch String which is like "If, then, else". 

Capture.PNG

The problem is Press 1 is not working. I can dial by extension by "Press feature now is not working." When I press 1 i got couple seconds silence, then "Are you still there?" and again prompt.

What is the reason and how can i solve that?

 

PS.: I know that with # symbol call is working for Press 1 of etc. I need solution for this problem without #

Thanks in Advance!

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
VIP Advisor

Re: UCCX Scripting "Switch String"

Your Get Digit String step has a Retry value greater than 0, an input length greater than 1, and you're not pressing the terminating digit (default is #), therefore, the system is like: "You haven't given me enough information.  Try again."

 

How to fix:

  1. Change the Retry value to 0
  2. Add a label at the top of the Success branch called something like Process Input (you can call it whatever you want)
  3. Change your Goto Step in the Timeout Branch to Goto the Process Input label (or whatever you called it)

The reason for the new label and goto change is because, unless you press the terminating key (default #), a single digit entry will result in the Timeout branch.  You want all quantity of digits (to include 0/None) to be processed by your Successful branch.  It is in the successful branch where you will perform your input validation.  I.e., Did the press anything?  If so, was it a single digit?  If so, was it a valid single digit?  If multiple digits, is it a valid destination?  <--- You don't want people to be able to just type in any phone number here, because that can be abused.  Either limit your PT/CSS in CUCM for the ports, or do some stronger validation in the scripting.  Or both!

 

Picture for reference:

uccx-get-digit-string.png


Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
4 REPLIES 4
Collaborator

Re: UCCX Scripting "Switch String"

You will not get dial by extension XXXX and press X to work together in the same menu. You will have to break them up. Like "for dial by extension press X." Then in that submenu expect a 4 digit entry. Honestly, I wouldn't do this in CCX either. I would send the call to a Unity handler for a much better experience than what you will have to recreate in CCX.

 

david

VIP Advisor

Re: UCCX Scripting "Switch String"

trumpwrong.gif

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
VIP Advisor

Re: UCCX Scripting "Switch String"

Your Get Digit String step has a Retry value greater than 0, an input length greater than 1, and you're not pressing the terminating digit (default is #), therefore, the system is like: "You haven't given me enough information.  Try again."

 

How to fix:

  1. Change the Retry value to 0
  2. Add a label at the top of the Success branch called something like Process Input (you can call it whatever you want)
  3. Change your Goto Step in the Timeout Branch to Goto the Process Input label (or whatever you called it)

The reason for the new label and goto change is because, unless you press the terminating key (default #), a single digit entry will result in the Timeout branch.  You want all quantity of digits (to include 0/None) to be processed by your Successful branch.  It is in the successful branch where you will perform your input validation.  I.e., Did the press anything?  If so, was it a single digit?  If so, was it a valid single digit?  If multiple digits, is it a valid destination?  <--- You don't want people to be able to just type in any phone number here, because that can be abused.  Either limit your PT/CSS in CUCM for the ports, or do some stronger validation in the scripting.  Or both!

 

Picture for reference:

uccx-get-digit-string.png


Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

Re: UCCX Scripting "Switch String"

Hi Anthony,

Thank you for you answer and solution. I got i need to do. I will try your solution this mo day i get the answer back. Thanks in advance

CreatePlease to create content

Ask the Expert French- routing protocols