01-18-2012 02:41 AM - edited 03-16-2019 09:03 AM
I have callerID activated from my telco, this enable incoming calls from the PSTN to show the incoming phone numbers.
Currently, for all outgoing calls, we have to dial 9, follow by the phone number that we wish to call.
9XXXX XXXX.
can i configure the CUCM or voice gateway such that my users can automatically dial the phone numbers that they see on the incoming calls lists.
can it be done that the extra 9 for external calls be added to the incoming call phone numbers, so that my users do not have to dial the whole range of phone numbers ??
Solved! Go to Solution.
01-26-2012 12:20 AM
The rule should be as I wrote before
rule 2 /\(^.*\)/ /91516\1/ type international international
01-18-2012 02:52 AM
Hi
Yes in the gateway you can do this with a translation rule.
voice translation-rule 1
rule 1 /\(^.*\)/ /90\1/ type national national
rule 2 /\(^.*\)/ /900\1/ type international international
voice translation-profile incoming
translate calling 1
add this translation profile to your incoming dial-peer
This works if your incoming calls are tagged as national/international and your international prefix is 00
Sometimes you need to tweak these rules depending on how the incoming calls are tagged and if you need to ad an 0 to the area codes or not.
01-18-2012 05:48 PM
i added the translation rule in the voice gateway but i cant dial
i have 2 existing rules
voice translation-rule 1
rule 1 /^8\(2..\)$/ /64166\1/
!
voice translation-rule 2
rule 1 /64166\(...\)$/ /8\1/
!
voice translation-rule 3
rule 1 /\(^.*\)/ /9\1/ type national national
R2911-2#test voice translation-rule 3 92960000 type national
Matched with rule 1
Original number: 92960000 Translated number: 992960000
Original number type: national Translated number type: national
Original number plan: none Translated number plan: none
01-18-2012 02:53 AM
Hi
Yes, this can be done. Exactly how depends on what products / gateway type you have.
Example of configuring on an H.323 IOS gateway connected using ISDN primary rate.
voice translation-rule 2
rule 1 /^\(.*\)/ /9\1/
!
voice translation-profile inbound
translate calling 2
!
!
voice-port 0/0/0:15
translation-profile incoming inbound
!
HTH. Barry
01-18-2012 04:03 AM
i have a cisco 2911 voice gateway router connected to the telco ISDN line.
for local calls, we will just dial 9 while for IDD calls we will dial 91516 follow by the country code, area code and phone numberd
01-18-2012 05:44 AM
It depends a little on how the numbers are sent to you when you receive a call but if the leadeing 0 on the area code is not received on incoming calls you should be able to update the numbers with the following rule.
voice translation-rule 1
rule 1 /\(^.*\)/ /90\1/ type national national
rule 2 /\(^.*\)/ /91516\1/ type international international
01-18-2012 06:38 AM
Since you have CUCM I recommend that you do it on CUCM, there are several ways, my preferred way is to prefix it right on the GW page configuration (bottom of configuration) and then use calling transformation patterns (assuming CUCM 7.1+), to strip the prefix, this way the caller ID on the phone display will not show the prefix (typically desired by users not to see it), yet all call logs show it.
HTH,
Chris
01-18-2012 07:48 PM
i have these existing translation rules added to my PSTN-IN and PSTN-OUT
voice translation-rule 1
rule 1 /^8\(2..\)$/ /64166\1/
!
voice translation-rule 2
rule 1 /64166\(...\)$/ /8\1/
!
voice translation-profile PSTN-IN
translate called 2
!
voice translation-profile PSTN-Out
translate calling 1
where do i add the 3rd translation rules ?
01-18-2012 07:56 PM
You nest them, I dont see your full config so not sure exactly what you are doing where, but you would do somethign like:
voice translation-rule 2
rule 1 /64166\(...\)$/ /8\1/
rule 2 /^\(.*\)/ /9\1/
!
Chris
01-18-2012 10:34 PM
i have added both translation rule in rule 2, but it dont seems to work.
what else do i need to do ?
voice translation-rule 1
rule 1 /^8\(2..\)$/ /64166\1/
!
voice translation-rule 2
rule 1 /64166\(...\)$/ /8\1/
rule 2 /\(^.*\)/ /9\1/ type national national
rule 3 /\(^.*\)/ /91516\1/ type international international
!
!
voice translation-profile PSTN-IN
translate called 2
!
voice translation-profile PSTN-Out
translate calling 1
voice-port 0/0/0:15
translation-profile incoming PSTN-IN
translation-profile outgoing PSTN-Out
cptone SG
bearer-cap Speech
dial-peer voice 2 pots
preference 1
destination-pattern 9T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
port 0/0/0:15
voice translation-rule 1
rule 1 /^8\(2..\)$/ /64166\1/
!
voice-port 0/0/0:15
translation-profile incoming PSTN-IN
translation-profile outgoing PSTN-Out
cptone SG
bearer-cap Speech
dial-peer voice 2 pots
preference 1
destination-pattern 9T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
port 0/0/0:15
btw, how do attach my whole config here ?
01-19-2012 06:15 AM
Is the telco provider tagging the call with isdn plan and type?
Can you post debug voice translation for one of these calls?
Chris
01-20-2012 01:03 AM
not sure whether my telco tagging the call.
I get a error message from my telco when i dial my mobile number from the received calls list as it is not tagging another 9 in front of the number.
noting comes out when i do a debug.
Do I need to configure anything on my CUCM.
My CUCM version is 8.5.1.
01-20-2012 01:22 AM
It looks a little bit wrong in your translation rules
voice translation-rule 2
rule 1 /64166\(...\)$/ /8\1/
rule 2 /\(^.*\)/ /9\1/ type national national
rule 3 /\(^.*\)/ /91516\1/ type international international
!
!
voice translation-profile PSTN-IN
translate called 2
!
voice translation-profile PSTN-Out
translate calling 1
voice-port 0/0/0:15
translation-profile incoming PSTN-IN
translation-profile outgoing PSTN-Out
On yourincoming translation profile you try to match on called. to add the 9 and 91516 you need to match the calling number.
01-20-2012 01:42 AM
how do i go abt changing the translation rules ??
01-20-2012 02:13 AM
Something like this.
voice translation-rule 2
rule 1 /64166\(...\)$/ /8\1/
voice translation-rule 3
rule 1 /\(^.*\)/ /9\1/ type national national
rule 2 /\(^.*\)/ /91516\1/ type international international
voice translation-profile PSTN-IN
translate called 2
translate calling 3
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