07-02-2014 04:18 AM - edited 03-16-2019 11:16 PM
Hi There,
I'm seeing the config below and not exactly sure what it is actually doing in "easy to understand" terms. Could someone please help in understanding the rules / profiles below?
Thanks
voice translation-rule 10
rule 1 /\(2..\)/ /5\1/
!
voice translation-rule 20
rule 1 // /9/
!
voice translation-rule 30
rule 1 /^9\(.*\)$/ /\1/
!
!
voice translation-profile incoming-voice
translate calling 20
translate called 10
!
voice translation-profile outgoing-voice
translate called 30
07-02-2014 04:53 AM
Please refer this URL for better understanding on how translation rules & translation profiles work:
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/64020-number-voice-translation-profiles.html
07-02-2014 05:24 AM
In additon to Suresh words, you can always use "test voice translation-rule..." to see what exactly each of these examples do with your digits...
BR,
Dragan
07-02-2014 06:23 AM
Hi Grant,
voice translation-rule 10
rule 1 /\(2..\)/ /5\1/
This rule will be matched for the numbers beginning with 2. This will add 5 to the number.
For eg if the number is 2000, it will make it 52000
voice translation-rule 20
rule 1 // /9/
This rule will add 9 in front of any number.
Eg : If the number is 55, it will translate the same to 955
voice translation-rule 30
rule 1 /^9\(.*\)$/ /\1/
This rule will be applicable for numbers beginning with 9. This rule will strip 9 and the rest will be taken ahead.
Eg : If the number is 9555 the number after translation will be 555.
voice translation-profile incoming-voice
translate calling 20
translate called 10
This profile will translate the calling number as per translation-rule 20 and the called number as per translation-rule 10.
The rules have been explained above.
voice translation-profile outgoing-voice
translate called 30
This profile will translate the called number as per translation-rule 30.
Post the same these profiles have to be applied in incoming or outgoing directions on the port/dial-peer.
According to the directions the calls will be taken care by the rules.
07-02-2014 02:37 PM
Just as a Tip, remember that each translation is delimited by a forward slash (/) and the backward slash (\) indicates a character.
/\(2..\)/ /5\1/
Regards.
Rolando Valenzuela
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