cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
995
Views
10
Helpful
3
Replies

How to limit UCCX Dial by Extension funciton

Networkgrouppch
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Chris Deren
Hall of Fame
Hall of Fame

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.

View solution in original post

3 Replies 3

Chris Deren
Hall of Fame
Hall of Fame

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.

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!

Deepak Rawat
Cisco Employee
Cisco Employee

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 -