01-17-2014 03:30 AM - edited 03-16-2019 09:18 PM
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
01-17-2014 03:48 AM
you can maybe add an IF/else statement in your script saying if ext = 4XXX transfer else play prompt.
01-17-2014 06:40 AM
+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
10-10-2018 10:56 AM
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.
10-11-2018 05:44 AM
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.
10-11-2018 06:05 AM
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