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

Translation rule help.

Im probably being very silly but im having murder trying to work out how to get 109340 to translate to 5740, 109341 to 5741 etc

DR-VGW(cfg-translation-rule)#rule 1 /^109\(3.\)/ /57\1/

DR-VGW(cfg-translation-rule)#end

DR-VGW#test voice translation-rule 60 109340

Matched with rule 1

Original number: 109340 Translated number: 57340

Original number type: none Translated number type: none

Original number plan: none Translated number plan: none

Any help would be much appreciated sorry for being lazy in finding out on my own but its driving me nuts :)

2 REPLIES
New Member

Re: Translation rule help.

Try

rule 1 /^1093/ /57/

Silver

Re: Translation rule help.

You are splitting the number into two part

Match on the 109 and group the remaining, number beginning with 3. mark as block 1 so the translation works as so

match any digit beginning with 109 and replace 109 with 57 and prefix this to the block 1 - 3. The final number becomes 57340 as in your email.

need to do is just add the extra digit 3 to your rule /^1093\(..)/ /57\1/ hopefully that should do it

117
Views
0
Helpful
2
Replies
CreatePlease to create content