Source record · tier 2 current vendor documentation
Understand IOS and IOS XE Call Routing
- Publisher
- Cisco Systems
- URL
- https://www.cisco.com/c/en/us/support/docs/voice/ip-telephony-voice-over-ip-voip/211306-In-Depth-Explanation-of-Cisco-IOS-and-IO.html
- Published
- 2026-04-28
- Updated
- unknown
- Accessed
- 2026-09-24
- HTTP status
- 200
- License
- Cisco copyright; all rights reserved; no-redistribution; short excerpts and locators only
Source notes citing this source
- show dial-peer voice summary, show call active voice brief, debug voip ccapi inout and debug ccsip messages are the commands Cisco gives for checking dial-peer status, active calls and dial-peer matching. in context
- When no inbound dial-peer matches, the gateway uses default dial-peer 0, which has no DTMF relay, advertises all voice codecs, enables VAD and does not support VRF. in context
- For outbound selection the gateway picks the longest (most specific) destination match, and between equal-length matches uses the dial-peer preference, where a lower value is tried first. in context
- A dial peer in busyout state, caused by a keepalive failure, is taken out of service and not used for routing. in context
- When no configured dial peer matches an inbound call, the gateway uses the default dial peer 0. in context
- Default dial peer 0 has no DTMF relay mechanism, so a call that lands on dial peer 0 cannot negotiate DTMF relay such as cisco-rtp. in context
- All dial peers are searched on the first match criterion, and the gateway moves to the next criterion only if no match is found. in context
- The default dial-peer hunt scheme (0) is longest match in phone number, then explicit preference, then random selection; dial-peer hunt accepts values 0 to 7. in context
- If the first selected outbound dial peer fails, the gateway tries the next eligible dial peer unless huntstop is configured. in context
- Because dial peer 0 carries only default capabilities, a call that unexpectedly matches it is likely to show symptoms such as DTMF failure, an unexpected codec or missing per-dial-peer SIP settings, so 'Incoming Dial-peer=0' in debugs is a first check for those symptoms. inferred in context
- On CUBE, a dial peer with a matching incoming uri via is chosen over a different dial peer with a matching incoming called-number, even if the called-number match is longer, because URI criteria are evaluated first and the search stops at the first criterion that matches. inferred in context
- An inbound dial peer only needs to satisfy one of its configured matching conditions; not every attribute needs to be configured or match the call setup. in context
- An outbound VoIP dial peer needs a valid outbound matching mechanism and a valid session target to be operationally up, whereas an inbound dial peer needs only a valid inbound matching mechanism. in context
- Cisco's call-routing technote lists outbound dial-peer search order as dial-peer group (destination dpg), provision-policy URI, ILS route string, URI with carrier-id, called number with carrier-id, URI alone, called number (destination-pattern or e164-pattern-map), then calling number. in context
- On dial peers a lower preference value means higher priority, and the default preference is 0. in context
- For SIP calls the inbound dial-peer preference order is incoming uri via, incoming uri request, incoming uri to, incoming uri from, then called number, calling number, destination-pattern (ANI) and finally carrier-id. in context
- show dial-peer voice summary shows each dial peer's administrative and operational state, preference, session target and keepalive status. in context
- Cisco's call-routing troubleshooting section lists show dial-peer voice summary, debug voip ccapi inout, debug voice translation, debug dialpeer, debug voip uri and test voice translation-rule. in context
- Only 10 hosts, 1 pattern or 1 user-id can be configured per voice class uri; regular expressions are the workaround for broader matching. in context
- When matching a voice class uri, the gateway by default prefers the host portion, then the user portion, then the tel-URI, then an exact match of the full URI; the order can be changed with voice class uri sip preference. in context
- From IOS 15.6(3)M and IOS XE 16.3.1 the gateway can filter eligible inbound dial peers to those matching the VRF ID of the interface the call arrived on. in context
- On an inbound SIP leg, destination-pattern is evaluated against the calling number (ANI), not the called number, and only at preference 7 after URI, called-number and calling-number criteria. in context
- An outbound dial peer that has destination-pattern but no incoming criteria can be selected as the inbound dial peer for a call whose calling number happens to match that pattern, so inbound peers should carry explicit incoming uri or incoming called-number criteria. inferred in context
- When no inbound dial peer matches, the gateway uses default dial-peer 0, which has no DTMF-relay mechanism, advertises all voice codecs for VoIP, has VAD enabled and has direct-inward-dial enabled. in context
- A call that lands on dial-peer 0 is likely to show DTMF or codec-negotiation problems because dial-peer 0 carries no dtmf-relay and offers every codec, so seeing pid:0 on the inbound leg is a first thing to check. inferred in context
- An e164-pattern-map can be configured in the CLI or loaded from a .cfg file, can use the normal dial-peer wildcards, and the .cfg file can hold 5000 entries. in context
- The default dial-peer hunt scheme is 0: longest match in phone number, then explicit preference, then random selection. in context
- The global dial-peer hunt command accepts values 0 through 7; for example 2 is explicit preference then longest match then random, 6 is random selection only and 7 is least recent use only. in context
- When huntstop is configured on a dial peer and that peer fails, the gateway stops dial-peer hunting instead of trying the next matching dial peer. in context
- The gateway searches all dial peers against the first inbound match criterion and only moves to the next criterion if no dial peer matched the previous one. in context
- The Cisco call-routing technote's inbound SIP table ranks eight criteria: URI via, URI request, URI to, URI from, called number (incoming called-number or incoming called e164-pattern-map), calling number (incoming calling e164-pattern-map or answer-address), destination-pattern matched against ANI, then carrier-id source. in context
- The incoming translation applied on the inbound dial peer changes the number that the outbound dial-peer search sees, so outbound destination-pattern must be written against the post-translation number. inferred in context
- A dial peer must be in the UP operational state to be eligible for call routing; an outbound VoIP dial peer needs a valid outbound matching mechanism and a valid session target to be UP. in context
- The guide's six-item outbound list and the technote's eight-item list are consistent once destination dpg and provision policy are treated as mechanisms that bypass the regular outbound search; the guide list describes the regular search only. inferred in context
- The Cisco call-routing technote ranks outbound selection as: dial-peer group (destination dpg), dial-peer provision policy, ILS route string, URI with carrier-id, called number with carrier-id, destination uri, called number (destination-pattern, e164-pattern-map, dnis-map), then calling number (destination calling e164-pattern-map). in context
- Among otherwise equal dial peers, a dial peer with preference 0 is matched before one with preference 1 through 10; lower preference value is tried first. in context
- Useful verification commands for this configuration include show dial-peer voice summary (operational status and keepalive), show voice class uri, show voice class dpg, show voice class server-group and show dialplan incall sip. in context
- Cisco lists translation-profile selection preference as: incoming on voice-port, incoming on trunk group, incoming on inbound dial peer, incoming via voice service pots, incoming via global voip-incoming, then outbound via voice service pots, outbound on outbound dial peer, outbound on trunk group, outbound on voice-port. in context
- In dial-peer number patterns, '.' matches any single 0-9, A-F, *, # or +; 'T' is a variable-length match of up to 32 digits; brackets define a range for one position; a leading '+' is a literal plus; '^' anchors the start of the string. in context
- Binding each CUBE inbound dial-peer to a dial-peer group that excludes the trunk the call arrived on is a way to stop a carrier-to-CUBE call from being routed back out to the same carrier. inferred in context
- On Cisco IOS and IOS XE gateways, dial-peer groups can pin the exact outbound dial-peer according to the inbound dial-peer that matched, which constrains where a call received on a trunk can be sent. in context
- Cisco's IOS/IOS XE call-routing technote uses debug voip ccapi inout and debug ccsip messages to see dial-peer matching and SIP signalling for a call. in context
Cite this source record
APA
WarmTransfer. (2026, April 28). Understand IOS and IOS XE Call Routing. WarmTransfer. https://warmtransfer.net/knowledge/sources/cisco-technote-211306-ios-call-routing
BibTeX
@misc{warmtransfer-cisco-technote-211306-ios-call-routing,
title = {Understand IOS and IOS XE Call Routing},
author = {{WarmTransfer}},
year = {2026},
url = {https://warmtransfer.net/knowledge/sources/cisco-technote-211306-ios-call-routing},
note = {Cisco Systems, accessed 2026-09-24}
}