01-30-2014 09:41 AM - edited 03-16-2019 09:31 PM
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
Solved! Go to Solution.
01-30-2014 09:54 AM
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.
01-30-2014 09:50 AM
Hello Luis
what happens when you do Question Mark (?) under voice translation-rule
# rule ?
Br,
Nadeem
Please rate all useful post.
01-30-2014 09:54 AM
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.
01-30-2014 10:14 AM
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
01-30-2014 11:10 AM
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.
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