12-28-2022 01:50 PM
I have two dial-peers for outgoing. I want to be able to make dial-peer 1 the priority and when it is unavailable I want it to use dial-peer 2.
The issue I am having is Dial-Peer 2 is always taking precedence over dial-peer 1. Is there a way to make one of the dial-peers as a preferred dial-peer? Do I need to use the same voice class?
Sample dialing 92135551234. Dial peer 1 strips the 9 as it should, but dial-peer 2 I need it to keep the 9 until it reaches my other voice gateway.
Voice class e164-pattern-map 2
e164 91[2-9]..[2-9]......
e164 9[2-9]......
dial-peer voice 1 voip
description Primary SIP
translation-profile outgoing 7DIGITS
preference 1
destination-pattern ^9[2-9]......
session protocol sipv2
session server-group 40
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0/0
voice-class sip bind media source-interface GigabitEthernet0/0/0
dtmf-relay rtp-nte sip-notify
fax rate 14400 bytes 48
ip qos dscp cs3 signaling
no vad
!
Dial-peer voice 2 voip
Description Failover SIP
Destination e164-pattern-map 2
Session protocol sipv2
Session target ipv4:2.2.2.2
Preference 2
Voice-class codec 1
fax rate 14400 bytes 48
dtmf-reay rtp-nte sip-notify
ip qos dscp cs3 signaling
No vad
Solved! Go to Solution.
12-28-2022 02:04 PM - edited 12-28-2022 02:05 PM
You need to have the exact same match statement on both dial peers for the preference to be a factor. Otherwise it will use the best match dial peer. You can alter this behaviour with the dial-peer hunt command. For details on this see this spectacular document. In Depth Explanation of Cisco IOS and IOS-XE Call Routing
12-28-2022 02:04 PM - edited 12-28-2022 02:05 PM
You need to have the exact same match statement on both dial peers for the preference to be a factor. Otherwise it will use the best match dial peer. You can alter this behaviour with the dial-peer hunt command. For details on this see this spectacular document. In Depth Explanation of Cisco IOS and IOS-XE Call Routing
12-28-2022 02:28 PM
Thank you. I will do that.
12-28-2022 02:35 PM
that document is very helpful. thank you
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