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

Manipulating digits on IOS gateway

I ran into an issue where someone was doing digit manipulation with an extremely confusing pattern that looked something like the following. *555(1.)/1\4444/1.\*22\. (This is just from memory, I'm sure it's wrong)

This is on an IOS gateway and I'm not sure what software version. What in the world do these wildcards mean and where can I find some documentation? I searched CCO but only found info on Tranlation rules that did not seem to be the same thing I am looking for.

3 REPLIES
New Member

Re: Manipulating digits on IOS gateway

Hi,

Sounds like their using regular expressions to manipulate a dial plan.

http://aspn.activestate.com/ASPN/docs/Komodo/komodo-doc-regex-intro.html

Example

This is not documented anywhere on CCO that I could find......

voice translation-rule 1 (Hidden command on some releases)

rule 1 /^14\([0123789].\)/ /0399214\1/

voice translation-profile Test1

translate called 1

dial-peer voice 10 pots

translation-profile outgoing Test1

#test voice tr 1 14012

matched with rule 1

Original number: 14012 Translated number: 0399214012

Original number type: none Translated number type: none

Original number plan: none Translated number plan: none

#test voice tr 1 14412

14412 Didn't match with any of the rules

#test voice tr 1 14876

matched with rule 1

Original number: 14876 Translated number: 0399214876

Original number type: none Translated number type: none

Original number plan: none Translated number plan: none

By way of an explanation.......

rule 1 /^14\([0123789].\)/ /0399214\1/

a) this takes any number starting with 14 ^14

b) followed by any single digit in [0123789] followed by any other single digit .

The translated string is made up of

0399214

followed by the remainder of the matched string in a) above.

By way of another (simpler) example:

rule 1 /999/ /888/

This will replace any ocurrence of '999' with '888' in a string.

Up to 15 translation rules can be defined in a translation table. Up to 128 translation tables can be defined per gateway. Up to 1,000 translation profiles can be defined per gateway.

Allan

New Member

Re: Manipulating digits on IOS gateway

Thanks!! That's exactly what I was looking for. I understand now.

Silver

Re: Manipulating digits on IOS gateway

There were translation rule enhancements made starting from 12.2.11T and above.

Here is documentation you can look at :

http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products_command_reference_chapter09186a00800b350e.html#2036716

Taimoor

92
Views
0
Helpful
3
Replies
CreatePlease to create content