05-26-2008 03:36 AM - edited 03-15-2019 05:01 AM
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 !
Solved! Go to Solution.
05-26-2008 06:50 AM
No sweat. Your DP 5 above is an example of incoming and outgoing collapsed into one.
Remember to rate useful posts!
05-26-2008 05:01 AM
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.
05-26-2008 06:01 AM
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 ?
05-26-2008 06:42 AM
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 !
05-26-2008 06:50 AM
No sweat. Your DP 5 above is an example of incoming and outgoing collapsed into one.
Remember to rate useful posts!
05-26-2008 06:56 AM
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 !
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: