Implementing MGCP
Gateways in Cisco
Unified Communications
Manager
Enabling Single-Site On-Net Calling
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-1
Outline
 Cisco Unified Communications Manager and MGCP Gateways
 MGCP Gateway Support in Cisco Unified Communications
Manager and Cisco IOS Gateways
 MGCP Gateway Configuration in Cisco Unified Communications
Manager
 Cisco IOS Gateway MGCP Configuration
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-2
Cisco Unified Communications Manager
and MGCP Gateways
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-3
MGCP Gateways
 MGCP (defined under RFC 2705) is a master-slave protocol
 Allows a call control device (such as Unified CM) to take control of
a specific port on a gateway
 Provides centralized gateway administration and highly scalable
gateway solutions:
– Allows complete control of the dial plan from Unified CM
– Allows Unified CM per-port control of gateway connections to
PSTN, legacy PBX/VM systems, analog phones, etc.
 Allows use of plain-text commands between the Unified CM and
the gateway over UDP port 2427
 Gateway must be supported by Unified CM for MGCP
(use Cisco Software Advisor tool to verify compatibility)
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-4
Endpoint Identifiers
Slot 1
Subunit 1
Port 1
S1/SU1/DS1-1@gw1.domain.com
S1/SU1/DS1-1@gw1.domain.com
AALN/S2/SU1/1@gw1.domain.com
Endpoint type
(T1/E1 trunk)
Slot 2
Subunit 1
Hostname
Hostname
AALN/S2/SU1/1@gw1.domain.com
Endpoint type
(analog line)
T1/E1 VWIC
2/1/1
MGCP
FXS VWIC
2/1/1
© 2008 Cisco Systems, Inc. All rights reserved.
Port 1
PSTN/
PBX
CIPT1 v6.0—4-5
MGCP and SCCP Interaction
 Cisco IP phones use
SCCP to communicate
with Unified CM
Unified CM
Rel. 6.0
SCCP
 Unified CM uses
MGCP to control the
gateway
 Actual voice data is
through RTP directly
between the two
devices
MGCP
RTP/UDP
PSTN
Gateway
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-6
MGCP Gateway Support in Cisco Unified
Communications Manager and Cisco IOS
Gateways
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-7
MGCP Support in Cisco Unified
Communications
 Wide range of supported Cisco IOS router platforms
 Wide range of supported analog and digital interfaces
 Wide range of analog and digital features
 Cisco Unified Communications Manager configuration server
– Cisco IOS MGCP gateway can pull its configuration from Cisco
Unified Communications TFTP server
– Eliminates the need for manual gateway configuration
 PRI backhaul support
– For Cisco IOS gateways with ISDN PRIs
– Cisco Unified Communications Manager takes control of ISDN
D channel
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-8
Cisco Unified Communications Manager
Configuration Server
Unified CM
10.1.1.1
Unified CM creates file with
MGCP configuration for
gateway
File is stored on Cisco TFTP
server
MGCP Gateway
10.1.1.101
TFTP
download
Gateway pulls
configuration file and
applies MGCP
configuration
© 2008 Cisco Systems, Inc. All rights reserved.
Administrator configures
MGCP gateway in
Unified CM
1/1/1
PSTN
T1/E1 VWIC
Gateway configured to use configuration server.
GW(config)#ccm-manager config server 10.1.1.1
GW(config)#ccm-manager config
CIPT1 v6.0—4-9
PRI Backhaul
 D-channel call-setup
signals need to be carried
in their raw form back to
the Unified CM to be
processed
 Gateway terminates data
link layer and passes the
rest of signals (Q.931 and
above) to Unified CM via
TCP port 2428
CUCM
ISDN
Call Ctrl
Gateway
PSTN CO
Q.931
Q.931
TCP
TCP
PRI
Backhaul
Q.921
Q.921
T1 PRI
 D-channel will be down
unless it can communicate
with Unified CM
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-10
MGCP Gateway Configuration in
Cisco Unified Communications Manager
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-11
Cisco Unified Communications Manager
Gateway Configuration Procedure
1. Add an MGCP gateway.
2. Configure the MGCP gateway.
3. Add voice modules.
4. Add VICs to the module.
5. Configure MGCP endpoints.
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-12
Step 1: Add an MGCP Gateway
6. From Unified CM
Administration, choose
Device > Gateway.
7. Click the Add New button.
The Add a New Gateway
window displays.
8. From the Gateway Type
drop-down list box, choose
the appropriate MGCP
gateway.
9. Click Next.
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-13
Step 1: Add an MGCP Gateway (Cont.)
10. Select MGCP for the gateway protocol.
11. Click Next.
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-14
Step 2: MGCP Gateway Configuration
Enter gateway name.
Enter description.
Select Cisco Unified
Communications
Manager Group.
Get help for global
parameters
Configure global
parameters
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-15
Steps 3 and 4: Add MGCP Endpoints by
Selecting Modules and Voice Interface Cards
Select module (per
slot)
Select VIC
(per module)
MGCP endpoint(s) are shown
and can be clicked for endpoint
configuration
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-16
Step 5: Configure the MGCP Endpoint
Enter endpoint
description
and select
device pool
Verify ISDN PRI
interface
configuration and
change if required
Note: MGCP endpoint configuration parameters differ per type of endpoint.
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-17
Step 5: Configure the MGCP Endpoint
(Cont.)
Verify ISDN protocol
configuration and
change if required
Verify product-specific
configuration and
change if required
Click for help
about
configuration
parameters
Note: MGCP endpoint configuration parameters differ per type of endpoint.
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-18
Cisco IOS Gateway MGCP Configuration
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-19
Cisco IOS Gateway MGCP Configuration
Overview
Recommended method (configuration server):
1. Specify the IP address of the configuration server (Unified CM
TFTP server)
2. Enable configuration download
3. Optional: Modify automatically applied MGCP configuration
Alternative (manual) method:
1. Specify primary and redundant call agent (Unified CM ) servers
2. Configure required global MGCP parameters
3. Enable MGCP on POTS dial peers
4. Enable MGCP
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-20
Configuring Cisco IOS Gateway for
MGCP Using a Configuration Server
Prerequisites:
 MGCP gateway needs to be configured in Unified CM
 Gateway hostname must match name specified in Unified CM
gateway configuration
router(config)#ccm-manager config server <CUCM_TFTP_IP>
 Specifies Unified CM TFTP server hosting the gateway
configuration XML file
router(config)#ccm-manager config
 Enables gateway to pull configuration from TFTP server
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-21
Configuring Cisco IOS Gateway for
MGCP – Example
Unified
CM
10.1.1.1
MGCP
Gateway
10.1.1.101
TFTP
download
0/3/0
E1
PSTN
© 2008 Cisco Systems, Inc. All rights reserved.
Only redcolored, bold
commands
have been
manually
configured.
Black-colored
commands
have been
added via
TFTP.
controller E1 0/3/0
framing hdb3
linecode crc4
pri-group timeslots 1-31 service mgcp
interface Serial0/3/0:15
isdn switch-type primary-net5
isdn incoming-voice voice
isdn bind-l3 ccm-manager
ccm-manager mgcp
ccm-manager music-on-hold
ccm-manager config server 10.1.1.1
ccm-manager config
mgcp
mgcp call-agent 10.1.1.1 2427 service-type mgcp
version 0.1
mgcp rtp unreachable timeout 1000 action notify
mgcp modem passthrough voip mode nse
mgcp package-capability rtp-package
mgcp package-capability sst-package
mgcp package-capability pre-package
no mgcp package-capability res-package
no mgcp package-capability fxr-package
no mgcp timer receive-rtcp
mgcp sdp simple
mgcp rtp payload-type g726r16 static
mgcp profile default
CIPT1 v6.0—4-22
Summary

MGCP provides centralized gateway administration and highly
scalable gateway solutions. It allows Cisco Unified
Communications Manager to take control of a specific port on a
voice gateway.

Cisco Unified Communications Manager supports various
MGCP gateway router platforms and interfaces. The gateway
MGCP configuration can be provided by Cisco Unified
Communications Manager for TFTP download.

To configure MGCP in Cisco Unified Communications Manager,
add an MGCP gateway, add voice modules, add VICs, and then
configure the VICs.

Configure Cisco IOS MGCP gateways to pull the configuration
from Cisco Unified Communications Manager to reduce manual
configuration efforts.
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-23
© 2008 Cisco Systems, Inc. All rights reserved.
CIPT1 v6.0—4-24