cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3047
Views
0
Helpful
2
Replies

Remove digit - Translation Rule

Thiago Cella
Level 1
Level 1

I read the follow instructions, but i didnt understand how can I do this :

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

I have to create a translation-rule with these two examples :

I dial 011 5555 5555 , and the rule removes the 011, this way : 5555 5555

And keep any digit   after 0 , for example if I dial: 012 5555 5555 just remove 0 , this way : 12 5555 5555

Tks

1 Accepted Solution

Accepted Solutions

Aaron Harrison
VIP Alumni
VIP Alumni

Hi

Try this to remove 011 at the start of a string followed by eight digits:

voice translation-rule 1 /^011\(........\)/ /\1/

'\' is an escape character that means the ( and ) is special - they group the eight any-character '.'s together, so you can refer to them in the replacement string as \1 to map them accross.

voice translation-rule 1 /^0\(12........\)/ /\1/

Would keep the 12 and eight other digits.

Regards

Aaron Harrison

Principal Engineer at Logicalis UK

Please rate helpful posts...

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

View solution in original post

2 Replies 2

Aaron Harrison
VIP Alumni
VIP Alumni

Hi

Try this to remove 011 at the start of a string followed by eight digits:

voice translation-rule 1 /^011\(........\)/ /\1/

'\' is an escape character that means the ( and ) is special - they group the eight any-character '.'s together, so you can refer to them in the replacement string as \1 to map them accross.

voice translation-rule 1 /^0\(12........\)/ /\1/

Would keep the 12 and eight other digits.

Regards

Aaron Harrison

Principal Engineer at Logicalis UK

Please rate helpful posts...

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Worked, TKS!!