05-10-2016 04:45 AM - edited 03-17-2019 06:50 AM
Hello All,
I have 3 dial-peers all set with the preference command. Even though dial-peer voice 8 is the highest number (Preference 9) it's always selected over the other two. My goal of dial-peer 8 was to be used only during SRST mode, which it does work when in SRST mode.
However, once I'm out of SRST Mode, it still takes priority. I'm guessing it has to do with my translation-rule 100. Where I take the incoming number 8425604 and translate to 8421190. This is being done because 8425604 does not exist on a phone. But I'm not sure what to do to correct it.
My goal is when NOT in SRST mode the inbound call 8425604 should hit call manager and see the translation patter and send it to ext 8421199. When in SRST Mode, the same inbound call should go to 8421190 (Shared line)
How do I force the call to 8421199 when NOT in SRST mode?
Here are the Translation rules and dial-peers:
voice translation-rule 2
rule 1 /^404/ /9404/
rule 2 /^678/ /9678/
rule 3 /^770/ /9770/
rule 4 /^470/ /9470/
rule 5 /^\(.*\)/ /91\1/
voice translation-rule 100
rule 1 /^8425604$/ /8421190/
voice translation-profile PREFIX-9-INBOUND
translate calling 2
voice translation-profile SRST-IN
translate called 100
dial-peer voice 6 voip
description Site Code 838
translation-profile outgoing PREFIX-9-INBOUND
preference 1
destination-pattern 8......
session protocol sipv2
session target ipv4:10.176.26.11
incoming called-number .
voice-class codec 1
dtmf-relay rtp-nte
fax rate 14400
fax nsf 000000
ip qos dscp cs3 signaling
no vad
dial-peer voice 7 voip
description Site Code 838
translation-profile outgoing PREFIX-9-INBOUND
preference 2
destination-pattern 8......
session protocol sipv2
session target ipv4:10.25.205.11
incoming called-number .
voice-class codec 1
dtmf-relay rtp-nte
fax rate 14400
fax nsf 000000
ip qos dscp cs3 signaling
no vad
dial-peer voice 8 voip
translation-profile outgoing SRST-IN
preference 9
destination-pattern 8......$
session protocol sipv2
session target ipv4:10.7.53.1
voice-class codec 1
dtmf-relay rtp-nte
no vad
Thanks in advance
05-10-2016 04:59 AM
Hi Michael,
Have you tried configuring "destination-pattern 8......" without the $ in dial-peer 8 as well ? Preference will be taken into account when the destination pattern is the same.
HTH
Rajan
05-10-2016 05:03 AM
For SRST, apply the translation on the telephony-service config instead of dial-peer.
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