10-05-2004 12:07 AM - edited 03-13-2019 06:34 AM
Hi, I need to use a translation rule on a voip dial-peer on an IOS router to remove the first 2 digits (access code) of the called number. i.e. dialed number is 701234, sent number in H.323 set-up needs to be 1234. Also the sent number is not always 4-digits, its just the 70 access code I need to remove. I've tried using translation rules but failed to make this work. Any help would be appreciated.
10-05-2004 06:40 AM
Can you please post your translation pattern and also where it is applied.
Thanks,
Radhika
10-05-2004 07:55 AM
I do this exact same thing on our gateway. I don't know if this is the best or only way to do this, but it works beatifully for us:
voice translation-rule 1
rule 1 /^../ //
!
voice translation-profile remove_prefix
translate called 1
!
Then you apply this translation profile to either the incoming voice port or the incoming dial peer. The good (or bad, depending on your application) thing about this translation rule is that is doesn't care what the prefix digits are...it'll always just remove the first 2 digits. Now, if the access code you want to remove is always the same (always 70), you could modify the rule to be more specific:
voice translation-rule 1
rule 1 /^70/ //
I hope this helps.
10-05-2004 08:00 AM
Oh sorry...I just noticed on your post that you need the translation to take place on your outbound voip dial peer...that's ok...you could just as easily apply the translation profile to the outbound voip dial peer instead. Should work fine.
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