cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
641
Views
0
Helpful
5
Replies

translation-rule

m.cucchi
Level 1
Level 1

translation-rule 5

Rule 0 ^023890081 800

Rule 1 ^02389008.. 8

!

I need to revert the inbound call 0238900811 into 811 but the results of my rule displayed above is 8001 , i think should be possible to insert after rule 1 the EOL char $ but i receive this message ...

RBCRVG01(config-translate)#rule 0 ^023890081$ 800

Incorrect format for Translation Match Pattern

regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$

Invalid match pattern string input ^023890081$

RBCRVG01(config-translate)#

Why i receive this error ?

5 Replies 5

Aaron Harrison
VIP Alumni
VIP Alumni

You could change rule 0 to this:

rule 0 ^02389008 8

This would change

0238900811 = 811

or

0238900855 = 855

Is this what you are trying to do?

Aaron

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

unfortunatly i have this problem .... the number 023890081 is a central office and i need to forward this number to 800 in this case the rule match the first rule ( rule 0 ) and for number 023890081 the replace number is 81 ....

023890081=81

if i change the order

rule 0 ^023890081 800

rule 1 ^02389008 8

the problem still present ....

Massimo

Massimo

Sorry - don't quite understand your problem... can you try to explain it again?

You have these numbers coming in:

023890081 want to translate to 800

02389008? want to translate to ???

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

Ok i try to explain better my problem.

My CME has a primary PSTN line with this telephone number 023890081 and every extension present into my CME are 800 801 802 etc .... 825.

800 is the PO number.

I wish to have a possibility to reach every extensions , infact i can call 0238900801 or 0238900802 and so on .... ( DID feature ) but the number present on telephone page is 023890081 .

The problem is that with a translation rule - rule 0 ^02389008 8 and rule 1 ^023890081 800 - when i make a call 023890081 the call should be diverted to the PO but the rule match the rule 0 and the translation is 81.

If i change the position of rule the problem is that when i call 023890081 the translation is 800 but for an extension 815 ( reach by DID feature ) the translation is 8005.

I think should be isert the $ tag to close a EOL, but unfortunatly don't work well.

I hope that my explanation is enough for you and for anyone answer me.

Ah... I see now... what confused me was the fact that the 023890081 number is one digit shorter than the other numbers...

I've never seen that happen here in the UK before, guess I'm lucky eh?

Anyway, I've got a translation that seems to do what you want. I've used the voice translation-rule syntax as this gives you a more flexible method of translation:

voice translation-rule 1

rule 1 /023890081$/ /800/

rule 2 /0238900\(8..\)/ /\1/

You are right about the $ tag, however the normal translation-rule command won't seem to accept it for some reason...

Hope this helps...

Aaron

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