03-01-2003 07:16 AM - edited 03-12-2019 10:53 PM
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
03-01-2003 03:07 PM
!
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
03-02-2003 07:23 AM
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
03-04-2003 10:56 PM
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#
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