04-02-2020 05:57 AM
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
04-02-2020 06:09 AM - edited 04-02-2020 06:58 AM
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
04-02-2020 08:04 AM
thanks chris
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