cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
396
Views
0
Helpful
5
Replies

A more complex translation rule

godzilla0
Level 1
Level 1

Hi, I'm looking to do a complex rule translation on an AS5400 but I can't get to it. My aim is the following: I type 5... via SIP. The call reach the AS. Then I want the 5 stripped and a destination-pattern to send the call. So 5... to .... and send it to the right place. Thank you !

1 Accepted Solution

Accepted Solutions

No sweat. Your DP 5 above is an example of incoming and outgoing collapsed into one.

Remember to rate useful posts!

View solution in original post

5 Replies 5

paolo bevilacqua
Hall of Fame
Hall of Fame

voice translation-profile strip5

translate called 5

voice translation-rule 5

rule 1 /^5/ //

dial-peer voice 5 voip

incoming called-number 5....

translation-profile incoming strip5

That's it.

Hello p.bevilacqua ! Glad to hear from you every time I have a doubt, you're my god !

I configured the outgoing dialpeer after the configuration above like this:

dial-peer voice 1004 voip

description "one proxy 1"

destination-pattern .T

voice-class codec 1

session protocol sipv2

session target ipv4:192.168.3.172

dtmf-relay rtp-nte

no vad

Is it correct ? I configured it like that cause the range of the numbers after the (5) prefix it's so big that it will be changing every time, it's properly configured ?

Done ! This is the way. I configured the outgoing on the same dial-peer you defined and erased the 1004 one:

dial-peer voice 5 voip

translation-profile incoming strip5

destination-pattern ....

voice-class codec 1

session protocol sipv2

session target ipv4:192.168.3.172

incoming called-number 5....

dtmf-relay rtp-nte

Thank you a lot for your help !

No sweat. Your DP 5 above is an example of incoming and outgoing collapsed into one.

Remember to rate useful posts!

Done ! This is the way. I configured the outgoing on the same dial-peer you defined and erased the 1004 one:

dial-peer voice 5 voip

translation-profile incoming strip5

destination-pattern ....

voice-class codec 1

session protocol sipv2

session target ipv4:192.168.3.172

incoming called-number 5....

dtmf-relay rtp-nte

Thank you a lot for your help !

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: