cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
376
Views
5
Helpful
3
Replies

Translation rule in VGW

W S H FERNANDO
Level 4
Level 4

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

$

3 Replies 3

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

Manish Prasad
Level 5
Level 5

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.

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.