This document provides an overview of dial plans and call routing in Cisco Collaboration networks. It describes key components of dial plans including dial peers, destination patterns, and digit manipulation. Dial peers establish logical connections between endpoints and define call properties. Destination patterns are used to match dialed numbers and select the appropriate outbound dial peer. The document also covers techniques for inbound and outbound dial peer matching and examples of digit consumption, forwarding, collection, and translation configurations.
5. 555
Dial Peers
Dial Peer is like an end point addressing. For every end point you must create a dial peer. These are
logical connection that are used to establish end to end call.
– They establish logical connections, or call legs, to complete an
end-to-end call.
– You can use dial peers inbound, outbound, or both.
– Dial peers define the properties of the call leg:
•Codec
•QoS markings
•VAD
•Fax rate
– Cisco voice-enabled routers typically use two types of dial peers:
•POTS dial peers—connect to a traditional telephony network such as FXO, FXS, E&M,
BRI, PRI T1/E1, and CAS T1/E1
•VoIP dial peers—connect over an IP network using an IP address
6. 666
Dial Peers (Cont.)
IP Network
Voice-Enabled
Router
Voice-Enabled
Router
Analog
Destination
POTS VoIP
You can create dial peers using the CLI or GUI.
Dial-peer voice 1 pots
destination-pattern 9T
port 0/1/1
Dial-peer voice 2 voip
destination-pattern 3…
session target ipv4: 135.1.1.1
codec g711r8
Default CODEC of Dial Peer in IOS Router is G.729r8
7. 777
Destination Pattern Options
• Common destination pattern wildcards:
–Comma (,)
•Inserts a one-second pause
–Period (.)
•Specifies any one wildcard digit
–Square brackets
•Indicates a range of digits within the brackets
–T
•Indicates a variable-length pattern
–Asterisk (*) and pound sign (#)
•Not valid wildcards; are DTMF tones
8. 888
Direct-Inward-Dial
• Enable the direct inward dialing (DID) call treatment for an
incoming called number
• The incoming call is treated as if the digits were received from
the DID trunk
• The called number is used to select the outgoing dial peer
• No dial tone is presented to the caller
dial peer voice 1 pots
incoming called-number .T
direct-inward-dial
9. 999
Inbound Dial Peer Matching
• incoming called-number (dial peer)
–To specify a digit string that can be matched by an incoming call to
associate the call with a dial peer, use the incoming called-
number command in dial-peer configuration mode
–Use to match a call to a specific dial peer to apply codec or direct-
inward-dial to a call
dial peer voice 1 pots
incoming called-number .T
direct-inward-dial
dial peer voice 3 voip
incoming called-number 3…
codec g711ulaw
Any call arrive with
Extension 3… will match dial
peer 3 so we can apply codec
G.711 to the call
All Other call from PSTN or
T1/E1 will match dial-peer 1
So we can apply direct-
inward-dial to the call
10. 101010
answer-address
• Used to identify the dial peer of an incoming call using Full
E.164 Number
• Identify the origin (or dial peer) of incoming calls from IP
Network
• For calls that come in from a plain old telephone service
(POTS) interface, the answer-address command is not used to
select an incoming dial peer
• The incoming POTS dial peer is selected on the basis of the
port configured for that dial peer
dial-peer voice 10 pots
answer-address +4168391717
11. 111111
Matching Inbound Dial Peers
• Inbound matching behaviors:
1. Look for the incoming called-number command in a dial peer that
matches the called number or DNIS string of the inbound call leg.
2. Look for the answer-address command in a dial peer that matches the
calling number or ANI string of the inbound call leg.
3. Look for the destination-pattern command in a dial peer that matches the
calling number or ANI string of the inbound call leg.
4. Look for the POTS dial peer port command that matches the voice port
associated with the incoming call (POTS dial peers only).
5. If steps 1 through 4 fail to find a match, the system uses the default dial
peer 0 as a last resort.
12. 121212
Dial Plan SOCCER Field
PBX
CME
IP Phone
Analog Phone
CME
SRST
H323
SIP
Num-exp
Voice-port 0/2/0:23
Inbound
Dialpeer
Dial-peer voice 1 pots
direct-inward-dial
incoming called-number .T Outbound
Dial peer
Dial-peer voice 2 voip
Destination-pattern 3…
Session target ipv4:135.1.1.1
Outbound Port
Ephone-dn
Port 0/2/0
Session target ipv4: 135.11.1.1.1
Process
Num-exp 14163013 3…
Inbound call to 14163013001 arrive on voice port 0/2/0:23
1
2
3
4
5
13. 131313
Default Dial Peer 0
–You cannot delete, modify, or change dial peer 0.
–Dial peer 0 does not negotiate services and applications:
•DTMF relay
•DID
•TCL applications
–The dial peer 0 configuration for inbound VoIP calls contains the
following commands:
•any codec
•ip precedence 0
•vad enabled
•no rsvp support
•fax-rate voice
–The dial peer 0 configuration for inbound POTS calls contains the
command no ivr application.
14. 141414
Example—Dial Peer 0
• If this is the only dial peer on R2 the following occurs:
1. Check for incoming called-number command that matches 5001
2. Check for answer-address command that matches 3001
3. Check for destination-pattern command that matches 3001
4. Check for a dial peer with the incoming port (does not apply to VoIP dial peers).
5. dial peer 0 will be used because no other inbound match exists.
FXS
1/0/1
VoIP
RxUK-RTR1 RxUK-RTR2 5001
Phone
3001 dials
5001
RxUK-RTR2(config)#dial-peer voice 30 pots
RxUK-RTR2(config-dialpeer)#destination-pattern 5001
RxUK-RTR2(config-dialpeer)#port 1/1/1
Matches dial
peer 0 inbound
Matches dial
peer 30 outbound
FXS
1/1/1
15. 151515
Matching Outbound Dial Peers
& Preference
– Example 1: Dialed number 742-1234 will match dial peer 4.
– Example 2: Dialed number 742-1235 will match dial peer 3.
– Example 3: Dialed number 742-2000 will match dial peer 2.
– Example 4: Dialed number 551-1234 will match dial peer 1.
Destination pattern is matched based on longest number match.
dial-peer voice 1 voip
destination-pattern .T
session target ipv4:10.1.1.1
dial-peer voice 2 voip
destination-pattern 742[2-3]...
session target ipv4:10.2.2.2
dial-peer voice 3 voip
destination-pattern 7421...
session target ipv4:10.3.3.3
dial-peer voice 4 voip
destination-pattern 7421234
session target ipv4:10.4.4.4
dial-peer voice 5 pots
destination-pattern 7422...
preference 1
port 1/0/0
dial-peer voice 6 voip
destination-pattern 7422...
preference 0
session target ipv4:10.3.3.3
• The preference command defines the order of preference when multiple
dial peers have an equally good destination pattern defined.
• Preference values can be set from 0 to 10.
16. 161616
Preference
dial-peer voice 5 pots
destination-pattern 7422...
preference 1
port 1/0/0
dial-peer voice 6 voip
destination-pattern 7422...
preference 0
session target ipv4:10.3.3.3
–The preference command defines the order of preference when multiple
dial peers have an equally good destination pattern defined.
–Preference values can be set from 0 to 10.
–Lower values are more preferred.
–The default preference on dial peers is 0.
17. 17
PSTN Interface and Voice Dial Peer
Configuration
Understanding Call Setup and
Digit Manipulation
VoIP Fundamentals
18. 181818
Digit Consumption and Forwarding
–By default, digit consumption and forwarding are handled differently for
POTS dial peers and VoIP dial peers.
–POTS dial peers:
•By default, the router strips off the left-justified digits that explicitly
match the destination pattern and forwards wildcard digits.
•Use the no digit-strip command to disable the automatic
digit-stripping function.
–VoIP dial peers:
•By default, the router forwards all digits collected.
Example 1—Dialed digits 7428989
Explicitly matched digits 742
are consumed and digits 1234 are
forwarded.
Example 2—Dialed digits 7428989
Digits 7428989 are forwarded.
dial-peer voice 1 pots
destination-pattern 742....
Port 1/0:1
dial-peer voice 1 pots
destination-pattern 742....
no digit-strip
port 1/0:1
19. 191919
Digit Collection
–The router collects digits, one at a time, until it can match an
outbound dial peer.
–After a match is made, the router immediately places the call, and
no further digits are collected.
Example 1—Dialed digits 7428989
Dial peer 1 will match first.
Only the collected digits of
742 are forwarded.
Example 2—Dialed digits 7428989
Dial peer 2 will match first.
Collected digits of 7428989 are
forwarded.
dial-peer voice 1 voip
destination-pattern 742
session target ipv4:10.18.0.1
dial-peer voice 2 voip
destination-pattern 7428989
session target ipv4:10.18.0.2
dial-peer voice 1 voip
destination-pattern 742....
session target ipv4:10.18.0.1
dial-peer voice 2 voip
destination-pattern 7428989
session target ipv4:10.18.0.2
20. 202020
Digit Manipulation Examples
• dial-peer voice 1 pots
• destination-pattern 742....
• prefix 742
• port 1/0/0
dial-peer voice 1 pots
destination-pattern 742....
forward-digits 7
port 1/0/0
num-expx 2... 7422...
dial-peer voice 1 pots
destination-pattern 7422...
port 1/1/0
prefix example
forward-digits
example
num-exp
example
21. 212121
Configuring Voice Translation
Profiles
• Three steps:
1. Create voice translation rules and associated matching criteria.
2. Create a voice translation profile and add a voice translation rule to the
profile to affect the calling number, called number, or redirect number.
3. Apply the profile to one or more dial peers in either the inbound or
outbound direction.
voice translation-rule 1
rule 1 /444/ /742/
!
voice translation-profile PSTN-HQ
translate called 1
!
dial-peer voice 9 pots
description route-pattern-to-PSTN
translation-profile outgoing PSTN-HQ
destination-pattern 9T
direct-inward-dial
port 0/2:23
Search pattern
Search for 444 in
The number
Replacement Value
Replace with 742
22. 222222
Translation Rule Example 1
voice translation-rule 1
rule 1 /416/ /1416/
Incoming number, search for 416 and replace it with 1416
HQ#test voice translation-rule 1 4168391717
Matched with rule 1
Original number: 4168391717 Translated number: 14168391717
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
Test voice translation-rule # is a test command from IOS
Router
23. 232323
Translation Rule Example 2
voice translation-rule 1
rule 1 /.*/ /9&/
Match any number and Add 9 at the beginning of the
number
HQ#test voice translation-rule 1 4168391717
Matched with rule 1
Original number: 4168391717 Translated number: 94168391717
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
Test voice translation-rule # is a test command from IOS
Router
24. 242424
Configuring Voice Translation
Profiles - Advanced
voice translation-rule 1
rule 1 /.(.)(.)(.)/ /888231/
1 2 3
If user dial 5756 then
Bucket 1 = 7
Bucket 2 = 5
Bucket 3 = 6
Final Result or Output
/888231/
2 = 5
3 = 6
1 = 7
Final = 888567
Bucket Number
25. 252525
Translation Rule Example 3
voice translation-rule 1
rule 1 /.*(4...$)/ /1/
Match any number but only save last 4 digit ($) starting with
4. /1/ means only replace with what was matched in this
case last 4 digit
HQ#test voice translation-rule 1 85224014001
Matched with rule 1
Original number: 85224014001 Translated number: 4001
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
Test voice translation-rule # is a test command from IOS
Router
26. 262626
Translation Rule Example 4
voice translation-rule 1
rule 1 /.*(4...$)/ /24010/
Match any number but only save last 4 digit ($) starting with
4. /1/ means only replace with what was matched in this
case last 4 digit
HQ#test voice translation-rule 1 4001
Matched with rule 1
Original number: 4001 Translated number: 24014001
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
HQ#test voice translation-rule 1 85224014001
Matched with rule 1
Original number: 85224014001 Translated number: 240185224014001
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
27. 272727
Verifying Dial Plans
show dial-peer voice [number | summary]
router#
Displays the configured dial peers and the
properties of the dial peers
Router#show dial-peer voice summary
dial-peer hunt 0
PASS
TAG TYPE ADMIN OPER PREFIX DEST-PATTERN PREF THRU SESS-TARGET PORT
100 pots up up 0
101 voip up up 7420112 0 syst ipv4:135.1.1.1
102 voip up up 7420134 0 syst ipv4:135.1.1.2
99 voip up down 0 syst
33 pots up down 0
28. 282828
Verifying Dial Plans (Cont.)
debug voip dialpeer inout
router#
Displays dial peer information
Router#debug voip dialpeer inout
*May 1 19:32:11.731: //-1/6372E2598012/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_INCOMING_DNIS; Incoming Dial-peer=100
*May 1 19:32:11.731: //-1/6372E2598012/DPM/dpAssociateIncomingPeerCore:
Calling Number=4163013000, Called Number=7600, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*May 1 19:32:11.731: //-1/6372E2598012/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_INCOMING_DNIS; Incoming Dial-peer=100
...
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=27
2: Dial-peer Tag=3000
29. 292929
Verifying Signaling for POTS Call
Legs
show controllers {t1 | e1} slot/port
router#
Displays the T1 or E1 controller status and
function
Router#show controllers t1 1/0
T1 1/0 is up.
Applique type is Channelized T1
Cablelength is short 133
No alarms detected.
Framing is ESF, Line Code is B8ZS, Clock Source is Line Primary.
Data in current interval (6 seconds elapsed):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
30. 303030
Verifying POTS Call Legs
show voice port summary
router#
Displays the port state and signal type
router#show voice port summary
IN OUT ECHO
PORT SIG-TYPE ADMIN OPER IN-STATUS OUT-STATUS CODEC VAD GAIN ATTN CANCEL
1/1 fxs-ls up up on-hook idle 729a n 0 0 y
1/2 fxs-ls up up on-hook idle 729a n 0 0 y
1/3 e&m-wnk up up idle idle 729a n 0 0 y
1/4 e&m-wnk up up idle idle 729a n 0 0 y
1/5 fxo-ls up up idle on-hook 729a n 0 0 y
1/6 fxo-ls up up idle on-hook 729a n 0 0 y
31. 313131
Verifying Digits Sent and Received
on a POTS Call Legs
show dialplan number digit_string
router#
Shows which dial peer is used for the digit
string entered
Router#show dialplan number 1401
Dial string terminator: #
Macro Exp.: 1401
VoiceOverIpPeer2
information type = voice,
tag = 2, destination-pattern = `1401',
answer-address = `', preference=0,
group = 2, Admin state is up, Operation
state is up,
incoming called-number = `',
connections/maximum = 0/unlimited,
application associated:
type = voip, session-target =
`ipv4:142.1.1.1',
...
32. 323232
DTMF
DTMF Tons are distored with most low-bandwidth codec such as
729 or G.723. On G.711 there is no DTMF issue.
DTMF Method
Cisco Proprietary
• DTMF signal carries in the same path as RTP
• in-band
H.245 Signal
• Out of Band
• DTMF carries on the signalling path
• Signal Tone Length
H.245 alphanumeric
• Out-of-band
• DTMF carries on the signaling path
• Tons are transported in H.245 User Input Indication message
• Does not send tone length
NTE
• RFC-based DTMF in RTP
• in-band
• Per call negotiation
None - No change to DTMF Thus carries within RTP
SIP DTMF Support
SIP Notify
• Out of Band
• Forward DTMF Tons using SIP
NOTIFY message
NTE
same as the previous one.
dial-peer voice 1 voip
destination-pattern 3...
session target ipv4:135.1.1.1
dtmf-relay h245-alphanumeric