cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
265
Views
0
Helpful
6
Replies

Voice Translation Rule

Jawad Ahmad
Level 1
Level 1

Dear,

Can any one explain these translation rule in detail especially Voice Translation Rule 2 ,

!
voice translation-rule 1
rule 1 /^0112997\(...\)/ /7\1/
rule 2 /^2997\(...\)/ /7\1/
rule 3 /^40858\([01234].\)/ /58\1/
rule 4 /^01140858\([01234].\)/ /58\1/
rule 5 /^01148483\(..\)/ /83\1/
rule 6 /^48483\(..\)/ /83\1/
rule 7 /^40858\([5-9].\)/ /58\1/
rule 8 /^01140858\([5-9].\)/ /58\1/
!
voice translation-rule 2
rule 1 /^1\(.......\)/ /01\1/
rule 2 /^5\(........\)/ /05\1/
rule 3 /^2\(.......\)/ /02\1/
rule 4 /^4\(.......\)/ /04\1/
rule 5 /^6\(.......\)/ /06\1/
rule 6 /^7\(.......\)/ /07\1/
rule 7 /^3\(.......\)/ /03\1/
rule 8 /^01140858\(..\)/ /58\1/
rule 9 /^40858\(..\)/ /58\1/
!
voice translation-rule 3
rule 1 /^01140858\(....\)/ /\1/
rule 2 /40858\(....\)/ /\1/
!
!
voice translation-profile DID
translate called 3
!
voice translation-profile incoming
translate calling 2
translate called 1
!

6 Replies 6

Vivek Batra
VIP Alumni
VIP Alumni

rule 1 /^1\(.......\)/ /01\1/

This rule will match all 8 digits number starts with 1 and if so, translate to 01 and last 7 digits of matched number.

rule 8 /^01140858\(..\)/ /58\1/

This rule with match 10 digits number starts with 01140858 and if so, translate it to 58 and last 2 digits of matched number.

All other rules for voice translation rule 2 are similar.

- Vivek

Dear,

Can you explain this rule 2

rule 1 /^1\(.......\)/ /01\1/
rule 2 /^5\(........\)/ /05\1/
rule 3 /^2\(.......\)/ /02\1/
rule 4 /^4\(.......\)/ /04\1/
rule 5 /^6\(.......\)/ /06\1/
rule 6 /^7\(.......\)/ /07\1/
rule 7 /^3\(.......\)/ /03\1/

You really need to look at below document in order to understand this yourself:

https://supportforums.cisco.com/document/31816/custom-made-guide-translation-rulesprofiles-and-some-common-uses

rule 2 /^5\(........\)/ /05\1/

Any number starting with 5 followed by 8 digits will be replaced by 05 and last 8 digits of matched number

Regards

Deepak

thank you.

Deepak is right. It will be difficult to under voice translations if you go with specific examples. Follow the link suggested by him and try to get with all wild cards and manipulations techniques and it will be easy to understand the subject then.

- Vivek

Deepak Rawat
Cisco Employee
Cisco Employee

Adding to what Vivek said, you can always run below command on the router to test the output of your rule as well:

test voice translation-rule <RuleNumber> <Number>

Regards

Deepak

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: