12-04-2013 03:07 AM - edited 03-16-2019 08:42 PM
Hi
I need to write translation rule for following requirement
original number 28xxx
new number - 09467xxx (replace 28 with 09467, only remove 28 from 5 digit number and add 09467 to it)
Please guide
Regds
$
12-04-2013 03:39 AM
Hello.
The translation-rule is:
rule 1 /^28\(...\)/ /09467\1/ type any network plan any isdn
Apply it to calling/called number,as required.
Testing on Cisco:
test voice translation-rule 8 28333 plan any
Matched with rule 1
Original number: 28333Translated number: 09467333
Original number type: noneTranslated number type: network
Original number plan: anyTranslated number plan: isdn
12-04-2013 04:07 AM
Voice translation-rule 1
rule 1 /^28/ /09467/
You can test this rule also
test voice translation-rule 1 28444
Thanks
Manish
If this help please rate.
12-04-2013 04:33 AM
Just providing a second example of how you can build the RegEx
voice translation-rule 1
rule 1 /^28\(...\)$/ /09467\1/
This differs from Manish's example only in that it will match only five-digit numbers starting with 28 instead of any number which begins with 28. Only you will know whether the additional specificity is necessary in your environment.
Here is a good reference document to keep handy:
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml
Please remember to rate helpful responses and identify helpful or correct answers.
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