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. And see here for current known issues.

New Member

How to create translation rule ?

Hello, has anybody idea how to translate any number (for example 7 digits number) to always the same number for example 3001185. I know it's possible by using translation profile (voice translation-rule) but my voice gateway dosn't support IOS with this capability. How to do this in IOS 12.1 and old command like tralnslation-rule.

Any suggestions ?

Maciej

3 REPLIES
Blue

Re: How to create translation rule ?

!

translation-rule 1

translation-rule 1

rule 0 [2-8]...... 3001185

!

voice-port 1/0:23

translate called 1

!

dial-peer voice 100 voip

destination-pattern 30011185

The above config will take any 7 digit number beginning with 2-8 will be translated to 3001185

New Member

Re: How to create translation rule ?

This rule produce the 7+6=13 digits length number beginning with 3001185. For example for input string 2345678 output is 3001185345678. I'm looking for rule that will produce always 3001185 independentlu of input string.

Any different sugestions !!

Maciej

Silver

Re: How to create translation rule ?

The following should work -

translation-rule 1

Rule 0 any 3001185

Rule 1 null 3001185

!

this will catch all numbers. You can test it -

multi-3-3#

multi-3-3#

multi-3-3#test translation-rule 1 123

The replaced number: 3001185

multi-3-3#test translation-rule 1 1122334455

The replaced number: 3001185

multi-3-3#test translation-rule 1 55555555555555555

The replaced number: 3001185

multi-3-3#

211
Views
0
Helpful
3
Replies
CreatePlease login to create content