cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
494
Views
5
Helpful
2
Replies

how to read/Decrypt voice-translation rules ?

Ibrahim Jamil
Level 6
Level 6

Hi Freinds

 

 

how to read/Decrypt the below rules ?

 

voice translation-rule 1
rule 1 /\(^001\)\(.*\)/ /\2/


voice translation-rule 2
rule 1 /^159\(.*\)/ /\1/

rule 2 /^1234/ /81&/

rule 3 /^9222/ /\0/

Thanks

Ibrahim

 

#stayhome,StayConnected,staysafe

2 Replies 2

Chris Deren
Hall of Fame
Hall of Fame

Translation rules use Regular Expressions, and there are many Regex interpreters online. Cisco has some good docs too, i.e. https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/64020-number-voice-translation-profiles.html

In addition IOS has built in "test voice translation-rule".

 

voice translation-rule 1
rule 1 /\(^001\)\(.*\)/ /\2/

This one copies second segment in parenthesis and basically strips 001 when number starts with it (^). Anything in parenthesis is saved as a variable and then when you see "\2" it means use the second variable

 

thanks chris