12-03-2015 11:13 AM - edited 03-14-2019 03:30 PM
I've created a script for a small department within our enterprise that gives a menu option for callers to press "#" to dial by 4 digit extension. I'm currently using the Get Digit String followed by a Call Redirect step to accomplish this. The problem is, the caller can now dial ANY 4 digit extension in the CUCM. I'm looking for a way to restrict callers to only the 4 extensions that reside within that small department. Any other entry should give the caller a "you've entered an invalid extension" type of message.
Does anyone have advise on the best way to accomplish this? We're running on UCCX 8.5.
Solved! Go to Solution.
12-03-2015 03:45 PM
There is a few ways to handle this, here are some examples:
1. if the extensions are in nice range, after you collect the digits you can check the entered string against the range, for example if the range is 450X, you can parse the string to see if first 3 digits are 453 and if not play the message and re-prompt
2. If the numbers are all over the place but there is only handful of them you can do an if statment such as "if (ext == ???? || ext == ???? || ext == ???? || .....)
3. If the numbers are all over the place and you have a lot of them, then you can perform a lookup against an XML file where you can define the numbers, or if you have CCX premium edition against a database.
12-03-2015 03:45 PM
There is a few ways to handle this, here are some examples:
1. if the extensions are in nice range, after you collect the digits you can check the entered string against the range, for example if the range is 450X, you can parse the string to see if first 3 digits are 453 and if not play the message and re-prompt
2. If the numbers are all over the place but there is only handful of them you can do an if statment such as "if (ext == ???? || ext == ???? || ext == ???? || .....)
3. If the numbers are all over the place and you have a lot of them, then you can perform a lookup against an XML file where you can define the numbers, or if you have CCX premium edition against a database.
12-04-2015 05:51 AM
Thanks Chris and Deepak. The extensions are all over the place, but there's only 4 of them, so I used suggestion #2. It worked like a charm. Thank again!
12-04-2015 12:13 AM
As mentioned by Chris, the key to implment this will lie how your dial plan looks like. If you follow a symmetric dial plan and lests say those four extensions to which you want to restrict the call has the DN as 1234, 1235, 1236 and 1237, then you can also use something like below
if called_number.startsWith("123")
then Redirect the call else prompt to dial again or call back whatever you want there. Please note called_number here is the variable that is storing the value of Get Digit String, in your case it could be something different so choose accordingly.
Regards
Deepak
- Rate Helpful Posts -
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