02-21-2011 12:34 PM - edited 03-16-2019 03:35 AM
Greetings,
Is it possible to route incoming calls based on the CLID to a specific extension. The reason for this is to route calls from certain states, say AZ 1520...... to the staff that service that region. I have seen a lot of examples how to reject calls from certain CLIDs, but not routing.
Example: Person from AZ with number 520-555-1234 calls in. Route call to Ext 5721.
We're using CM 8
Many thanks,
Pierre
Solved! Go to Solution.
02-21-2011 11:03 PM
Hi Pierre,
If its H.323 gateway then you may try this,
1. Create a voice translation rule and a voice translation profile to translate the called number to 5721.
2. Create an inbound dial-peer for incoming calls with the answer address 5205551234 command. On this inbuond dial-peer use the above translation profile to translate the called number. Hence whenever this dial-peer is matched i.e. whenever an incoming call comes in from 5205551234 , whatever be the called number, it will always be translated to ext. 5721.
3. Create an outbound dial-peer with destination-pattern 5721 on the gateway and route it to the CUCM. If the ext. 5721 is registered to the CUCM, then that particular ext. should ring.
Check out the following doc to help you with configuring voice translation rules and profiles
Hope that helps
Regards
Nitesh
PS:Pl rate helpful posts
02-21-2011 12:52 PM
Not possible, CUCM routes based on called number.
You would need to use something like UCCX or Unity which do provide the ability to perform certain actions based on the ANI.
HTH
java
If this helps, please rate
www.cisco.com/go/pdihelpdesk
02-21-2011 01:11 PM
Hi Pierre,
As far as i understood you want to route the incoming calls from a number say 520-555-1234 to a particular extension say 5721 always. Correct me if i am wrong.
What is the type of gateway that you are using for incoming calls(MGCP, H.323 etc)?
Regards
Nitesh
02-21-2011 01:43 PM
Dear Nitesh,
Your understanding is correct. H.323
Many thanks,
Pierre
02-21-2011 11:03 PM
Hi Pierre,
If its H.323 gateway then you may try this,
1. Create a voice translation rule and a voice translation profile to translate the called number to 5721.
2. Create an inbound dial-peer for incoming calls with the answer address 5205551234 command. On this inbuond dial-peer use the above translation profile to translate the called number. Hence whenever this dial-peer is matched i.e. whenever an incoming call comes in from 5205551234 , whatever be the called number, it will always be translated to ext. 5721.
3. Create an outbound dial-peer with destination-pattern 5721 on the gateway and route it to the CUCM. If the ext. 5721 is registered to the CUCM, then that particular ext. should ring.
Check out the following doc to help you with configuring voice translation rules and profiles
Hope that helps
Regards
Nitesh
PS:Pl rate helpful posts
02-22-2011 03:03 AM
Dear Nitesh,
This actually worked! :-) Thank you very much, I've been strugling for a while to get this sorted out.
Where do I rate the post?
Many thanks,
Pierre
02-22-2011 03:37 AM
Dear Nitesh,
Is it possible to catch a blocked CLID and route that to another extension/AA?
I thought that "answer-address ^$ " should work, but it does not?
Thanks again
Pierre
02-22-2011 06:52 AM
Great to know that it worked.
What exactly do you want to achieve by answer-address ^$ command? What result are you expecting?Which CLID is blocked?
Regards
Nitesh
02-22-2011 04:00 PM
Hi Nitesh,
I can now route calls to different hunt groups based on the calling parties CLID. This already works 100%, thanks to you. Occasionally, the caller ID is blocked, i.e. call from overseas, which I would like to catch as well. I have read that the CLID is NULL, when it does not come through, hence the attempt to use ^$, meaning NULL string. This did not work. answer-address also does not accept letters, such as "Private", which is what appears on the phones. I just thought there may be a way to set the answer-address to something, which will match a blocked/NULL CLID. If this is not possible, it's OK, since we're 99% there.
Many thanks,
Pierre
02-22-2011 11:01 PM
Hi Pierre,
Does the overseas call come in to your network through a PRI? If so do a 'debug isdn q931' and check for the calling party number in the incoming setup message. Check and confirm whether you are getting a null CLID or something else.
If its null, you may try the following
1. Create a voice tranlation rule and a profile to convert null numbers to a known number say 1234
rule 1 /^$/ /1234/
2. On the incoming voice port apply the voice translation profile to convert the incoming null calling numbers to 1234
3. Create an inbound dial-peer with answer address 1234 and continue from there as usual.
I have personally never tried this but would like to know whether this works.
Give it a try and post your results.
Hope that helps
Regards
NItesh
PS:Pl rate helpful posts
02-23-2011 09:53 PM
Dear Nitesh,
I will give it a go, however, I either do not know how to debug, or it's not working for me. When I run debug on the port, nothing appears on the screen when a call is made or received. Do I need follow up command such as show log, etc?
We have been succesful with the setup, we rout by caller ID and what's not caught by those dial-peers, gets routed to the default location, which includes all blocked CLIDs.
In short, we are very happy. Thanks very much once again.
Regards
Pierre
02-23-2011 11:26 PM
do a debug isdn q931 and a term mon. That should work for you. If not, check the log file. It may be capturing all the debugs. Do a show log for viewing the log.
HTH
Regards
Nitesh
PS:Pl rate helpful posts
02-24-2011 07:05 PM
Dear Nitesh,
Thanks for your dedication and help, all good now...
Kind regards
Pierre
02-24-2011 11:17 PM
Hi Pierre,
Thanks. Glad to know that its working fine now.
Regards
Nitesh
02-11-2015 11:48 AM
This is what I have come up with so far can you let me know if I am missing anything or am totally off base?
voice translation-rule 10
rule 1 /856 555 1212/ /5678/
Voice translation-profile Reroute_caller
translate called 10
dial-peer voice 100
Voice translation-profile Reroute_caller
preference 2
destination-pattern 856 555 1212 (ANI)
session target ipv4:172.50.100.30 (CUCM)
voice-class codec 1
dtmf-relay h245-alphanumeric
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