cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
991
Views
14
Helpful
5
Replies

UCCx get digit string to dial a particular ext range

Syed Hussain
Level 4
Level 4

I am currently using combination if Get Digit String step and Switch string step to dial an extension at anytime.
Customer wants the dial by extension option to be set so that it can only dial extensions in the 4XXX range only.
No other range should be dialed.
Thanks.

Sent from Cisco Technical Support iPhone App

5 Replies 5

you can maybe add an IF/else statement in your script saying if ext = 4XXX transfer else play prompt.

Best Regards

+5 to Hermanus Janse

You can simply check the DN range, assume the get digit is a string defined as strDigits, you would do:

if getDigit.length = 4 AND getDigit.substring(0)==4 then

     Route

else

     Do whatever

HTH,

Chris

In my case the extension starts from 6 and it is 4 digit I tried below:

CallerInput.length() == Extension_Length && CallerInput .substring(0) == 6 

,however it doesn't redirect to the caller Input.

The CallerInput .substring(0) == 6  should be CallerInput .substring(0) == "6" 

alternatively you can do "CallerInput.startsWith("6")

 

If it still does not work, perform a reactive debug and see what the CallerInput variable is set to after you enter the digits.

Thanks,It is working now.