cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4366
Views
0
Helpful
3
Replies

Translation rule to remove first 2 digits dialled

ccpagel
Level 1
Level 1

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.

3 Replies 3

rnarayana
Level 5
Level 5

Can you please post your translation pattern and also where it is applied.

Thanks,

Radhika

bernie.ramirez
Level 1
Level 1

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.

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.