Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Bronze

Translation Rules Explained

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

 

4 REPLIES

Please refer this URL for

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

 

 

//Suresh Please rate all the useful posts.
Silver

In additon to Suresh words,

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

HTH, Dragan
Cisco Employee

Hi Grant,voice translation

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.

Just as a Tip, remember that

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

118
Views
0
Helpful
4
Replies
CreatePlease to create content