06-02-2008 03:16 AM - edited 03-15-2019 11:00 AM
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 :)
06-02-2008 05:12 AM
Try
rule 1 /^1093/ /57/
06-02-2008 05:17 AM
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
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