I would like to issue a voice translation-rule that can insert the digit number 3 before/after certain digits and also remove the last 3 digits at the same time.
I receive the following Dialed numbers on a voice port for example: 004925147260123 For these numbers I have 3 sets:
- Set 1: 004925147 is always the same; I need to insert the digit number 3 just after 004925, for my example 004925 --> must be 0049253
- Set 2: consists of 3 digits can vary so I want the translation rule to translate these numbers to be the same numbers, for my example 260 --> must be 260
- Set 3: The last 3 digits also they can vary but I would like to remove these last 3 digits from the final translated number
So for my example I would like the voice translation-rule to translate the dialed no# 004925147260123 so that it will be 0049253147260
Appreciate you support,
Sorry, I misread the numbers. There is also a shorter form:
rule 1 /\(......\)...$/ /3\1/
Thanks for the nice rating and good luck!
rule 1 /^\(004925147\)\(...\)...$/ /\13\2/
try with "test voice translation-rule xxx
Hope this helps, please rate post if it does!