cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
408
Views
0
Helpful
3
Replies

How to create translation rule ?

mflak
Level 1
Level 1

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 3

adignan
Level 8
Level 8

!

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

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

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#