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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Remove digit - Translation Rule

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
Super Bronze

Remove digit - Translation Rule

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!
2 REPLIES
Super Bronze

Remove digit - Translation Rule

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!
New Member

Remove digit - Translation Rule

Worked, TKS!!

1059
Views
0
Helpful
2
Replies