Introduction To Voice Gateways: Understanding Cisco Unified Communications Networks and The Role of Gateways
Introduction To Voice Gateways: Understanding Cisco Unified Communications Networks and The Role of Gateways
Gateways
CO CO
Tie Tie
Trunks Trunks
CO CO
Trunks Trunks
Local Local
Loops Loops
San Jose Boston
PSTN
Integrated solution
Includes voice, video, data, and mobile applications
Builds on Cisco Borderless Networks as a secure network
architecture for all communications
Endpoints 5
Cisco Unified IP Wireless Unified IP Unified Personal IP Mobile
Phones IP Phones Phone 7985 Communicator Communicator Phones
Applications
Cisco Unity Unified MeetingPlace Unified Customer Unified Video Unified Personal IP Mobile
Messaging Conferencing Contact Advantage Communicator Communicator Communicator
Services
Smart Business Unified CM Cisco Unified Unified CM
Communications Sys Express Presence Business Edition Unified CM/SME/IME
Infrastructure
Routing Switching Availability Management QoS Security Administration
Cost savings
Flexibility
Advanced features:
– Advanced call routing
– Unified messaging
– Integrated information systems
– Long-distance toll bypass
– Voice security
– Customer relationship
– Telephony application services
– Telepresence
– Conferencing
Gatekeeper
Multipoint ITSP
Control Unit
H.323 PBX
Terminal
Cisco
Unified Border
Element IP WAN
PSTN
H.323 Q.921
Q.931
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-11
VoIP Signaling Protocols (Cont.)
MGCP: Client Server Architecture
Cisco Unified Communications Manager maintains the dial
plan.
Residential Gateway
E&M
MGCP FXS
Trunking Gateway
PSTN
MGCP Q.921
Q.931
ITSP
Cisco
SIP Unified Border
Element IP WAN
PSTN
Q.921
SIP Q.931
SCCP
SCCP FXS
Headquarters Branch
IP WAN
MGCP/ H.323/SIP
H.323/SIP Gateway
Gateway
PSTN
Applications
Cisco Cisco
Unified CM Unified CM
Cluster Cluster
PSTN
IP WAN Branch
Headquarters
PSTN
ta
Da ly SIP or SCCP
On
WAN
Publisher PSTN
IP WAN
Gateway call
processing:
Connects incoming call
leg to outgoing call leg Inbound Outbound
Two major call leg types
are POTS and VoIP Voice
Gateway
Applies parameters to
both call legs
Incoming Outgoing
– VoIP parameters are Call Leg Call Leg
negotiated.
Source Destination
R1 R2
POTS IP POTS
Originating Terminating
Gateway Gateway
Voice
Gateway
Telephone
1001
POTS
port 1/0/0
1/0/0 destination-pattern 1001 Telephone
2001
Voice
Gateway
VoIP
session target ipv4:172.16.1.1
IP
destination-pattern 2001
172.16.1.1
H.323
VoIP
SIP
VoIP
SIP Proxy
VoIP
VoIP
VoIP
VoIP Voice-Mail Server
VoIP
H.323 Gatekeeper
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-45
End-to-End Call Routing
1/0/1 2002
1/0/0
1001 1/1/0 2/1/0 2003
1/1/0
PSTN
1/0/1 2002
R2: 10.1.1.2
1/0/0
1001 1/1/0 2/1/0 2003
1/1/0
PSTN
1/0/1 2002
R2: 10.1.1.2
1/0/0
1001 1/1/0 2/1/0 2003
1/1/0
PSTN
2001
Dial 2001 R1 1/0/0
R2
1/0/1 2002
PSTN Path
(requires digit manipulation for routing through PSTN)
Dial 2001
R2
1/0/1 2001
router(config-dialpeer) #
incoming called-number string
Matches called number in inbound dial-peer
router(config-dialpeer) #
answer-address string
Matches calling number in inbound dial-peer
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-56
String-Matching Characters
0-9, A-D,*,# Standard characters are digits 0–9, letters A–D, the asterisk (*), and
the pound sign (#) that appear on dial pads.
Plus sign (+) As first character, indicates E.164 standard number; otherwise,
specifies that the preceding digit occurred one or more times
Period (.) Matches any entered digit (used as a wildcard)
Percent sign (%) Indicates that the preceding digit occurred zero or more times
Question mark (?) Indicates that the preceding digit occurred either zero or one time
Press Ctrl-v to disable context-sensitive help and enter ? character
Circumflex (^) Indicates a match to the beginning of the string
Dollar sign ($) Matches the null string at the end of the string
T Timer character. Indicates a variable-length dial string. Makes the
router wait until all digits are received before routing call
Backslash (\) Followed by a single character, matches that character
Brackets [ ] Indicates a range
Parentheses ( ) Indicates a pattern
1/0/0
Call Setup Message ANI DNIS POTS
POTS
PSTN
1 3 consumes
555 2 Extensions
Dial 555-2001 555-XXXX
2001
PSTN
1/1/1
1/0/0
PSTN
Dial 555-2001 consumes
Call
555 1/1/0
R2 2001
PSTN
1/1/1
1/0/0
PSTN
consumes
Dial 555-2001 555
R2 1/1/0
2001
PSTN
1/0/0 1/1/1
1 … 0 … 0 … 2 … 4 … 5 … 5
…Irregular intervals… 1
1/0/1 R1
4 4 … 2 … 0 … 0 … 1
R2
1/0/1
…Irregular intervals… R3
10
1 … 0 … 0 … 2
1/0/1
? … 0 …1sec… 0 …2sec… 2 … 5 … 5 … 5
PSTN
1/0/0
PSTN
consumes
555
Dial 555-2001
1/1/0
2001
PSTN
1/0/0:0 1/1/1
1
1/0/1:0 R1
1/0/0:0 42001
R2
2/0/0:0 R3
6
2001 1/0/1
dial-peer voice 1 pots
4 incoming called-number .
direct-inward-dial dial-peer voice 1 pots
incoming called-number .
2001
dial-peer voice 2 pots
destination-pattern 4.... direct-inward-dial
port 2/0/0:0 5 dial-peer voice 2 pots
destination-pattern 2001
port 1/0/1
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-80
One-Stage Dialing (Cont.)
Configuring DID
PSTN
1/0/0
String Description
. Matches any number with at least one digit. Useful for outbound
(destination-pattern) and especially inbound matching (incoming called-
number).
.T Matches any number with at least one digit. The timer character matches
either the interdigit timeout or the termination character (#). Useful for
outbound matching (destination-pattern).
The most common dial peer types are VoIP and POTS.
In call routing, each gateway identifies the inbound and
outbound dial peer.
POTS dial peers facilitate calling over POTS ports.
Telephone numbers are matched using a sequence of standard
and special characters.
The matching order for inbound dial peer is: incoming dialed-
number, answer-address, destination-pattern, and port.
The outbound dial peer is found by using the longest match of
the destination-pattern command.
If no explicit inbound dial peer is identified, the default peer 0 is
used to set the parameters to predefined values.
DID enables the matching of the entire number instead of digit-
by-digit matching.
PSTN
FXS T1 or E1 or
(Analog) ISDN (Digital)
PSTN
FXS FXO
(Analog) (Analog)
Voice Ports
Voice Port
FXO
(Analog)
PSTN
FXS
(Analog) FXS-DID
(Analog)
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-87
Voice Port Overview (Cont.)
PBX Trunks
Voice Port Voice Port
PSTN
E&M or FXO FXO (Analog)
(Analog) additional FXS-DID
possible
Voice Port Voice Port
PSTN
T1, E1, T1, E1, T1, E1, T1, E1,
or ISDN or ISDN or ISDN or ISDN
QSIG (Digital) (Digital) QSIG
(Digital) (Digital)
CAMA Trunk
for Emergency Public Safety
Calls Answering Point
E&M
Trunk
PSTN
San Jose
T1 QSIG
Trunk
T1 CAS*
Trunk
E1 R2 E1 CCS**
London Trunk Rome Trunk
Denver T1 QSIG
Trunk
T1 PRI
voice-port 2/0/1
no shutdown
Interface 1 Interface 0
FXS
FXO FXO
PSTN
E&M E&M
WAN or
PSTN
E&M: Used for trunk circuits to connect telephone switches to each other
697
770
852
941
Configuration tasks:
FXS
– CP tones, signaling (loop-start, ground-start)
FXO, FXS-DID
– Signaling (loop-start, ground-start)
E&M (Ear and Mouth)
– Operation (two-wire, four-wire)
– Type (1,2,3,5)
– Signaling (immediate-start, wink-start, delay-start)
Centralized Automated Message Accounting
– Signaling (CAMA)
– ANI mapping
Voice Port
0/2/0
WAN
voice-port 0/2/0
signal loopstart
cptone GB
ring cadence pattern01
no shutdown
voice-port 0/0/0
signal loopstart
connection plar opx 4001
dial-peer voice 90 pots
destination-pattern 9T
port 0/0/0
0/0/0
PSTN
4001 FXO
501-1001
voice-port 0/0/0
501-1002 signal did wink-start
voice-port 0/1/0
signal groundstart
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
dial-peer voice 2 pots
destination-pattern 9[2-8].........
port 0/1/0
No D Channel Required
Analog Signaling
24 B Channels (Voice)
T1 CAS
Time Slot
8 Bits
24 * 8 bits + 1 bit = 1 frame (193 bits)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
1 Bit Sync.
12 Frames = Super Frame
1 2 3 4 5 6 7 8 9 10 11 12
Time Slot
7 Bits +
1 Robbed Bit
Time Slot
8 Bits
24 * 8 bits + 1 bit = 1 frame (193 bits)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
1 Bit
24 Frames = Extended Super Frame Sync.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Time Slot
7 Bits +
1 Robbed Bit
No D Channel
Analog Signaling
30 B Channels (Voice)
E1 CAS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
1. Frame: Start of Multiframe
2. Frame: Signaling for Voice Slots 2 and 18
3. Frame: Signaling for Voice Slots 3 and 19
4. Frame: Signaling for Voice Slots 4 and 20
5. Frame: Signaling for Voice Slots 5 and 21
16 Frames 6. Frame: Signaling for Voice Slots 6 and 22
= 7. Frame: Signaling for Voice Slots 7 and 23
Multiframe 8. Frame: Signaling for Voice Slots 8 and 24
2.048 Mb/s 9. Frame: Signaling for Voice Slots 9 and 25
10. Frame: Signaling for Voice Slots 10 and 26
11. Frame: Signaling for Voice Slots 11 and 27
12. Frame: Signaling for Voice Slots 12 and 28
13. Frame: Signaling for Voice Slots 13 and 29
14. Frame: Signaling for Voice Slots 14 and 30
15. Frame: Signaling for Voice Slots 15 and 31
16. Frame: Signaling for Voice Slots 16 and 32
Layer 2 Layer 3
Protocol Q.921 Q.931
name
Features Link Access Procedure on the D Various message types:
channel (LAPD). Similar to HDLC. - call-establishment
Provides error detection and
correction. - call-termination
- information
- miscellaneous
Task Provide terminal endpoint identifiers Supports these connections:
(TEIs) as Layer 2 addresses to end - user-to-user
devices:
- circuit-switched
- through static configuration
- packet-switched
- dynamically allocated by PSTN
controller e1 1/0
framing crc4 PBX
linecode hdb3
clock source internal
ds0-group timeslots 1-15 type e&m-wink-start
Rx
Clock
T1 1/0
PSTN
Tx
controller t1 1/0
framing esf
linecode ami
clock source line
ds0-group timeslots 1-12 type e&m-wink-start
T1 CAS
E&M Wink-Start
PSTN
voice-port 1/0:1
cptone US
compand-type u-law
no shutdown
PSTN
controller T1 0/0/0
framing esf
linecode b8zs
ds0-group 0 timeslots 1-12 type e&m-fgd
ds0-group 1 timeslots 13-24 type fgd-eana
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
dial-peer voice 90 pots
destination-pattern 9T
port 0/0/0:1
*FGD = E&M Feature Group D; provides inbound and outbound DNIS, and inbound ANI
**EANA = FGD-Exchange Access North American; provides inbound and outbound DNIS, and
outbound ANI
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-123
Configuring Digital Ports (Cont.)
E1 R2 CAS
E1 R2 CAS
PSTN
Inbound DNIS and ANI
Outbound DNIS and ANI
controller e1 0/0/0
ds0-group 0 timeslots 1-31 type r2-digital r2-compelled ani
!
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
!
dial-peer voice 90 pots
destination-pattern 9T
port 0/0/0:0
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-124
Configuring ISDN
2 B Channels
+
1 D Channel
ISDN BRI
PSTN
Router1
network-clock-participate wic 0
Phone1-1 Phone1-2 interface bri 0/0
2001 2002 isdn switch-type basic-net3
isdn overlap-receiving
isdn incoming-voice voice
isdn protocol-emulate user
30 B Channels
+
1 D Channel
ISDN E1 PRI
PSTN
network-clock-participate wic 0
network-clock-select 1 e1 0/0/0
isdn switch-type primary-net5
controller e1 0/0/0
pri-group timeslots 1-31
interface Serial0/0/0:15
isdn overlap-receiving
isdn incoming-voice voice
e1 0/0
FXO CAS
0/1/0
DS0
PSTN
DS1
FXS
0/1/1
controller e1 0/0
ds0-group 0 timeslots 5 type fxs-ground-start
ds0-group 1 timeslots 8 type e&m-fgd
voice-port 0/0:0
signal loop-start
voice-port 0/0:1
operation 2-wire
type 1
signal wink-start
connect connect1 voice-port 0/1/0 e1 0/0 0
connect connect1 voice-port 0/1/1 e1 0/0 1
FXS
0/1/0
voice-port 0/1/0
timeouts initial 15
timeouts interdigit 15
timeouts ringing 240
timing hookflash-in 500
Echo is a signal that leaks from the Rx path into the Tx path.
Typically, due to impedance mismatch at the two-wire to four-
wire hybrid connections.
Echo annoys callers if above amplitude and delay threshold.
Four-Wire
Two-Wire Trunk Two-Wire
Subscriber Subscriber
Loop Loop
Tx Rx
PSTN or
PSTN PBX User
Rx Tx
Hybrid Hybrid
Tx Rx
PSTN or
PSTN or
PSTN PBX User
PBX User
Rx Tx
Hybrid Hybrid
Output Attenuation
^
H(t)
ACOM
PSTN or
^y(t) Input Gain PSTN
PBX or
User
SOUT
Sout - SIN
ERL
PBX User
ERLE
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-139
Configuring Echo Cancellation
router(config-voiceport)#
echo-cancel coverage {8 | 16 | 24 | 32 | 48 | 64}
Adjusts the time coverage of the echo canceller
Available options and default value differ per platform and
software version
router(config-voiceport)#
(no) echo-cancel enable
Disables or re-enables echo canceller
Default: enabled
Command Description
show voice port [slot/port | Displays configuration information about a specific
summary] voice port or a summary of all voice ports
show controllers bri slot/port
show controllers t1 slot/port Displays information about the specified voice port
show controllers e1 slot/port
show voice call summary Verifies the call status for all voice ports
show call active voice Displays the contents of the active call table
show call history voice Displays the contents of the call history table
PeerSubAddress=
PeerId=70000
PeerIfIndex=37
LogicalIfIndex=0
ConnectTime=94524043
DisconectTime=94546241
CallOrigin=1
ChargedUnits=0
InfoType=2
TransmitPackets=6251
TransmitBytes=125020
ReceivePackets=3300
ReceiveBytes=66000
ConnectTime=94893780
DisconectTime=95015500
CallOrigin=1
ChargedUnits=0
InfoType=2
TransmitPackets=32258
TransmitBytes=645160
ReceivePackets=20061
ReceiveBytes=401220
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-148
Verifying Voice Ports (Cont.)
test Command Overview
Command Description
test voice port slot/subunit/port Tests detector-related functions on a voice
detector port
test voice port slot/subunit/port Injects a test tone into a voice port
inject-tone {local | network}
test voice port slot/subunit/port Performs loopback testing on a voice port
loopback {local | network | disable}
test voice port slot/subunit/port relay Tests relay-related functions on a voice port
test voice port slot/subunit/port Forces a voice port into fax mode
switch {fax | disable}
csim start xxxx Initiates simulated calls
router#
test voice port inject-tone local 500hz
Inject a 500-Hz test tone into the voice port
PSTN or
PSTN
PBX or
User
PBX User
1/0/1
PSTN or
PBX User
PSTN or
PBX User
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-150
Summary
Digital voice ports use TDM to carry multiple voice channels over a single
circuit.
FXS ports connect gateways to end-user equipment, FXO ports to CO
switches or PBXs, and E&M ports to PBXs.
Analog port settings define country-specific voice parameters, signaling
type, and in case of E&M, circuitry.
Digital voice ports emulate analog signaling (CAS) or use CCS.
ISDN uses CCS on BRI and PRI interfaces.
Digital voice ports are defined by creating DS0 groups on the T1/E1
controller and configuring their signaling type.
ISDN PRI interfaces are created by defining a pri-group on the T1/E1
controller.
Tunable voice port parameters include cross-connects, timing, and comfort
noise.
Echo cancellation is enabled by default but its time coverage can be tuned.
Voice port and call parameters can be viewed.
Voice Codecs
Evaluating Quality of Codecs
Evaluating Overhead
Digital Signal Processors
Codec Complexity
Configuring Digital Signal Processors
Verifying Digital Signal Processors
*MOS values under ideal network conditions: no packet loss, low delay, and no jitter
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-162
Evaluating Overhead
Call over
Voice Only Layer Call over
Codec PPS 802.3
Payload 3+ Frame Relay
Ethernet
G.711 160 bytes 50 80 kb/s 82.4 kb/s 87.2 kb/s
G.711 240 bytes 33 74.66 kb/s 76.27 kb/s 79.47 kb/s
G.729 20 bytes 50 24 kb/s 26.4 kb/s 31.2 kb/s
G.729 30 bytes 33 18.66 kb/s 20.27 kb/s 23.47 kb/s
DSPs
Analog or
Digital IP Packets
PSTN IP
Analog or
Digital IP Packets
PSTN
Speech IP Packets
IP
Media
Termination
Central site
Transcoding
and/or IP WAN
Conferencing Conferencing
G.729
IVR
G.711
PSTN
PVDM2 PVDM3
Platform Cisco 2800, 3800, 2900, Cisco 2900,3900 Series ISRs
support 3900 Series ISRs
Models PVDM2-8, PVDM2-16, PVDM3-16, PVDM3-32, PVDM3-64,
PVDM2-32, PVDM2-48, PVDM3-128, PVDM3-192, PVDM3-256*
PVDM2-64*
Capabilities Voice/Fax Voice/Video (No Cisco Fax Relay)
Resource Per-module and per-chassis DSP resources in motherboard slots
sharing sharing shared across the chassis backplane
Coexistence Can coexist on the Cisco 2900 and 3900 Series ISR platforms but
PVDM2 cannot be installed directly on the motherboard
* Number in the model name identifies the number of supported G.711 channels
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-174
Codec Complexity
2
Select the Cisco IOS
Software Release
Cisco.com: http://www.cisco.com/cgi-bin/Support/DSP/dsp-calc.pl
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—1-179
Configuring DSPs
router(config-voicecard)#
dspfarm
Adds voice card to a DSP resource pool
Local DSPs are available for TDM streams on a different module or VWIC
router(config-voicecard)#
codec complexity {flex | high | medium | secure}
Specifies codec complexity
router(config-voicecard)#
codec sub-sample
Doubles the sampling frequency for G.711
router(config)# voice-card 1
router(config-voicecard)# codec complexity ?
flex Set codec Flex complexity, higher call density.
high Set codec to high complexity, lower call density.
medium Set codec to mid range complexity and call density
secure Set codec complexity to secure.
router(config-voicecard)# codec complexity flex
router(config-voicecard)# codec sub-sample
router(config-voicecard)#
dsp services dspfarm
Enables DSP farm services
Makes the DSP services available for conferencing and transcoding
router(config)#
dspfarm profile profile-identifier {conference|mtp|
transcode}
Creates a DSP farm profile for conferencing, MTP, or transcoding
router(config-dspfarm-profile)#
maximum sessions number
Defines the maximum number of sessions
router(config-dspfarm-profile)#
associate application sccp
Enables SCCP for the profile
Cisco Unified
Communications
Manager IP WAN
10.1.1.201
PSTN