cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
543
Views
0
Helpful
4
Replies

translation assistance please???

luis.rosello
Level 1
Level 1

Hi,

I'm configuring an h323 gateway that will be receiving 4 digits on a PRI, I have 4 numbers that will be ported, and a new range, that will need to be "massaged".  The 4 ported numbers are straight forward, and translations work, but when I'm trying to add the 5th rule, the gateway does not like it:

RTR(cfg-translation-rule)#rule 5 /0.../ /1.../

                                                        ^

% Invalid input detected at '^' marker.

I've tried a number of diffenent approaches, but it still barks.  What I'm basically trying to do is change the first digit of the received number 0xxx to a one, so it will match our internal scheme 1xxx. 

Here's my current config:

voice translation-rule 1

rule 1 /7327/ /1311/

rule 2 /4220/ /1310/

rule 3 /4326/ /1310/

rule 4 /7420/ /1310/

!

voice translation-profile Inbound_ported_numbers

translate called 1

!

dial-peer voice 100 pots

description ***** INBOUND *****

translation-profile incoming Inbound_ported_numbers

incoming called-number .

direct-inward-dial

port 0/0/1:23

1 Accepted Solution

Accepted Solutions

Tracy Larson
Level 4
Level 4

Try this

rule 5 /^0+/ /1/

Putting ... after the 1 isnt the syntax to use for keeping the digits you previously wanted to keep, thats why the router is barking at you. It doesnt know what to change them to.

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

This link will help you out.

View solution in original post

4 Replies 4

Nadeem Ahmed
Cisco Employee
Cisco Employee

Hello Luis

what happens when you do Question Mark (?) under voice translation-rule

# rule  ?


Br,
Nadeem 

Please rate all useful post.

Br, Nadeem Please rate all useful post.

Tracy Larson
Level 4
Level 4

Try this

rule 5 /^0+/ /1/

Putting ... after the 1 isnt the syntax to use for keeping the digits you previously wanted to keep, thats why the router is barking at you. It doesnt know what to change them to.

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

This link will help you out.

Thanx Tracy, that did it!

RTR#test voice translation-rule 1 0111

Matched with rule 5

Original number: 0111   Translated number: 1111

Original number type: none      Translated number type: none

Original number plan: none      Translated number plan: none

Tracy Larson
Level 4
Level 4

Looking at it a little closer you should remove the + after the zero. If you have a number that starts with two zero's then both of them will be replaced and your result will be a 3 digit number.

example: in your above test if your number was 0011, then the output will end up being 111. Just take out that + sign and everything will still work like you want.