cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
275
Views
9
Helpful
1
Replies

translation patterns question

blackswans
Level 1
Level 1

Hi,

How can I cut the 1234 from the called id with translation patterns ? Can I add this translation pattern to the dial-peer ?

ex:

dial-peer voice 111 voip

     destination-pattern 1234....

     session target-ipv4:1.1.1.1

I want to cut this 1234. There is no forward-digit 4 in voip dialpeers.

Regards.

1 Reply 1

William Bell
VIP Alumni
VIP Alumni

You could try this:

voice translation-rule 10

rule 1 /^1234/ //

!

voice translation-profile strip1234

translate called 10

!

dial-peer voice 111 voip

     destination-pattern 1234....

     translation-profile outgoing strip1234

      session target-ipv4:1.1.1.1

!

translation rule 10 will strip 1234 from the beginning of the called number.

HTH.


Regards,
Bill

Please remember to rate helpful posts.

HTH -Bill (b) http://ucguerrilla.com (t) @ucguerrilla

Please remember to rate helpful responses and identify