01-16-2012 08:00 PM - edited 03-16-2019 09:02 AM
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
Solved! Go to Solution.
01-16-2012 11:32 PM
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
Principal Engineer at Logicalis UK
Please rate helpful posts...
01-16-2012 11:32 PM
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
Principal Engineer at Logicalis UK
Please rate helpful posts...
01-17-2012 07:29 AM
Worked, TKS!!
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