Callmanager Express CME Translation rules

Currently I am studying for the CCIE Collaboration written to re-certify my CCIE. It was a long time since I worked with the translation rules, so here’s some nice stuff with a load of rules.

Basic cme translation rules :

/123/ /456/ = replace 123 with 456

^ = begins with

$ = end of the string

\+ = +

0+ = one or more instances of 0

\(23\) = group

\1 = group 1 of numbers

 

Now I created a rule with a lot of things in it. If you can read it, you understand it. 😉

CUBE-b(cfg-translation-rule)#rule 1 /^\+10+\(23\)45\(67\)$/ /00\1\2/
CUBE-b(cfg-translation-rule)#do test voice translation-rule 2 +1+0234567
+1+0234567 Didn’t match with any of rules
CUBE-b(cfg-translation-rule)#do test voice translation-rule 2 +10234567
Matched with rule 1
Original number: +10234567 Translated number: 002367
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

CUBE-b(cfg-translation-rule)#do test voice translation-rule 2 +1234567
+1234567 Didn’t match with any of rules
CUBE-b(cfg-translation-rule)#do test voice translation-rule 2 +100234567
Matched with rule 1
Original number: +100234567 Translated number: 002367
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

Cisco’s documentation regaring Voice Translation Rules can be found at : http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html

Leave a Reply