Implementing MGCP Gateways

Implementing VoIP Gateways

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-1

MGCP Components
 Defined in RFC 3435 which obsoletes RFC 2705  Architecture and requirements defined in RFC 2805  Centralized device control with simple endpoints for basic and enhanced telephony services  An extension of the Simple Gateway Control Protocol (SGCP) protocol and supports SGCP functionality in addition to several enhancements  Allows remote control of various devices  Stimulus protocol  Endpoints and gateways cannot function alone  Uses IETF SDP  Addressing by E.164 telephone number
© 2008 Cisco Systems, Inc. All rights reserved. CVOICE v6.0—3-2

Why MGCP
Advantages of MGCP gateways:
 Alternative dial tone for VoIP environments  Simplified configuration for VoIP dial peers  Simplified migration  Centralized dial plan configuration on the Cisco Unified Communications Manager  Centralized gateway configuration on the Cisco Unified Communications Manager  Simplified Cisco IOS configuration  Supports QSIG supplementary services with Cisco Unified Communications Manager

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-3

MGCP Components
Cisco Voice Gateways

Call Agent (MGCP)

Cisco Unified Communications Manager

S* FX

PRI

IP
Trunking Gateway

PRI

PSTN

Residential Gateway
 Connecting POTS phones to an IP network

 Connecting PSTN-bearer channels to an IP network

FXS = Foreign Exchange Station
© 2008 Cisco Systems, Inc. All rights reserved. CVOICE v6.0—3-4

MGCP Gateways
 Call processing is done by a call agent such as Cisco Unified Communications Manager.  Calls are routed via route patterns on the Cisco Unified Communications Manager, not by dial peers on the gateway.  Supported Gateways – Residential gateway – Trunking gateway

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-5

MGCP Gateways (Cont.)
 MGCP uses endpoints and connections to construct a call. – Endpoints:  Sources of or destinations for data  Physical or logical locations in a device – Connections:  Point-to-point  Multipoint  MGCP uses UDP for establishing audio connections over IP networks.

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-6

Call Agents
Call Agent

IP
Gateway Gateway

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-7

Basic MGCP Concepts
 Calls and connections  Events and signals  Package types

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-8

Calls and Connections

Create Connection (CRCX) Create Connection (CRCX) Modify Connection (MDCX) User Information Exchange Delete Connection (DLCX) Delete ACK Delete Connection (DLCX) Delete ACK

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-9

Control Commands
 AuditEndpoint (AUEP)  AuditConnection (AUCX)  CreateConnection (CRCX)  ModifyConnection (MDCX)  DeleteConnection (DLCX)  NotificationRequest (RQNT)  Notify (NTFY)  RestartInProgress (RSIP)

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-10

Package Types
 Enable with the mgcp package-capability command: – Trunk – Line – Dual-tone multifrequency (DTMF) – Generic media – Real-Time Transport Protocol (RTP) – Announcement server – Script

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-11

Call Flows
Gateway A

Call Agent
RQNT RQNT

Gateway B

RQNT Response Off Hook and Dialed 5551234 NTFY CRCX CRCX Response (SDP) MDCX (Encapsulated RQNT, SDP) MDCX Response

RQNT Response

CRCX (SDP, Encapsulated RQNT) CRCX Response (SDP)

Ringing, Then Answer

On Hook

NTFY DLCX

RTP Stream RTP Stream RTCP Stream DLCX DLCX Response

DLCX Response

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-12

Configuring MGCP Gateways
 Residential gateway – Dial peer configuration  Trunking gateway – Controller configuration

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-13

Configuring an MGCP Residential Gateway Cisco
Residential Gateway
1/0/0 1/0/1

Unified Call Manager 172.20.5.20

IP

router(config)# ccm-manager mgcp router(config)# mgcp router(config-mgcp)# mgcp call-agent 172.20.5.20 service-type mgcp router(config)# dial-peer voice 1 pots router(config-dialpeer)# service mgcpapp router(config-dialpeer)# port 1/0/0 router(config)# dial-peer voice 2 pots router(config-dialpeer)# service mgcpapp router(config-dialpeer)# port 1/0/1 router(config-dialpeer)# exit router(config)# mgcp package-capability dtmf-package router(config)# mgcp package-capability gm-package router(config)# mgcp package-capability line-package router(config)# mgcp package-capability rtp-package router(config)# mgcp default-package line-package
© 2008 Cisco Systems, Inc. All rights reserved. CVOICE v6.0—3-14

Configuring an MGCP Trunk Gateway
Cisco Unified Call Manager 10.1.1.201

WAN

IP Phones

MGCP Gateway

PSTN

router(config)# ccm-manager mgcp router(config)# mgcp 4000 router(config)# mgcp call-agent 10.1.1.201 4000 router(config)# controller t1 0/1/0 router(config-controller)# framing esf router(config-controller)# clock source internal router(config-controller)# ds0-group 1 timeslots 1-24 type none service mgcp router(config)# controller t1 0/1/1 router(config-controller)# framing esf router(config-controller)# clock source internal router(config-controller)# ds0-group 1 timeslots 1-24 type none service mgcp
© 2008 Cisco Systems, Inc. All rights reserved. CVOICE v6.0—3-15

Configuring Fax Pass-Through and Relay with MGCP Gateways
San Jose Cisco Unified Call Manager 10.1.1.10 IP Network T.38 Gateway T.38 Gateway Austin Cisco Unified Call Manager

G3 Fax Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)#

G3 Fax

ccm-manager mgcp no ccm-manager fax protocol cisco mgcp mgcp call-agent 10.1.1.10 service-type mgcp version 0.1 mgcp package-capability fxr-package mgcp package-capability rtp-package mgcp fax rate 14400 mgcp timer 300 mgcp fax-relay sg3-to-g3

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-16

Verifying MGCP
router# show mgcp MGCP Admin State ACTIVE, Oper State ACTIVE - Cause Code NONE MGCP call-agent: 10.1.1.101 4000 Initial protocol service is MGCP 0.1 MGCP validate call-agent source-ipaddr DISABLED MGCP validate domain name DISABLED MGCP block-newcalls DISABLED MGCP send SGCP RSIP: forced/restart/graceful/disconnected DISABLED MGCP quarantine mode discard/step MGCP quarantine of persistent events is ENABLED MGCP dtmf-relay for VoIP is SDP controlled MGCP dtmf-relay for voAAL2 is SDP controlled MGCP voip modem passthrough disabled MGCP voaal2 modem passthrough disabled MGCP voip tremolo modem relay: Disabled MGCP T.38 Named Signalling Event (NSE) response timer: 200 MGCP Network (IP/AAL2) Continuity Test timer: 200 MGCP 'RTP stream loss' timer: 5 MGCP request timeout 500 MGCP maximum exponential request timeout 4000 MGCP gateway port: 4000, MGCP maximum waiting delay 3000

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-17

Verifying MGCP (Cont.)
MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP restart delay 0, MGCP vad DISABLED rtrcac DISABLED system resource check DISABLED xpc-codec: DISABLED, MGCP persistent hookflash: DISABLED persistent offhook: ENABLED, MGCP persistent onhook: DISABLED piggyback msg ENABLED, MGCP endpoint offset DISABLED simple-sdp DISABLED undotted-notation DISABLED codec type g711ulaw, MGCP packetization period 20 JB threshold lwm 30, MGCP JB threshold hwm 150 LAT threshold lwm 150, MGCP LAT threshold hwm 300 PL threshold lwm 1000, MGCP PL threshold hwm 10000 CL threshold lwm 1000, MGCP CL threshold hwm 10000 playout mode is adaptive 60, 40, 200 in msec Fax Playout Buffer is 300 in msec media (RTP) dscp: ef, MGCP signaling dscp: af31 default package: trunk-package supported packages: gm-package dtmf-package trunk-package line-package
hs-package atm-package ms-package dt-package mo-package res-package mt-package fxr-package md-package

MGCP Digit Map matching order: shortest match SGCP Digit Map matching order: always left-to-right MGCP VoAAL2 ignore-lco-codec DISABLED
© 2008 Cisco Systems, Inc. All rights reserved. CVOICE v6.0—3-18

Verifying MGCP (Cont.)
MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP MGCP T.38 Max Fax Rate is DEFAULT T.38 Fax is ENABLED T.38 Fax ECM is ENABLED T.38 Fax NSF Override is DISABLED T.38 Fax Low Speed Redundancy: 0 T.38 Fax High Speed Redundancy: 0 Fax relay SG3-to-G3: ENABLED control bind :DISABLED media bind :DISABLED Upspeed payload type for G711ulaw: 0, G711alaw: 8 Dynamic payload type for G.726-16K codec Dynamic payload type for G.726-24K codec Dynamic payload type for G.Clear codec Dynamic payload type for NSE is 100 Dynamic payload type for NTE is 99 rsip-range is enabled for TGCP only. Guaranteed scheduler time is disabled DNS stale threshold is 30 seconds

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-19

Verifying MGCP (Cont.)
router# show ccm-manager MGCP Domain Name: cisco-voice-01 Priority Status Host ============================================================ Primary Registered 10.89.129.211 First Backup None Second Backup None Current active Call Manager: 10.89.129.211 Backhaul/Redundant link port: 2428 Failover Interval: 30 seconds Keepalive Interval: 15 seconds Last keepalive sent: 5w1d (elapsed time: 00:00:04) Last MGCP traffic time: 5w1d (elapsed time: 00:00:04) Last failover time: None Switchback mode: Graceful MGCP Fallback mode: Not Selected Last MGCP Fallback start time: 00:00:00 Last MGCP Fallback end time: 00:00:00 Configuration Error History:
© 2008 Cisco Systems, Inc. All rights reserved. CVOICE v6.0—3-20

Verifying MGCP (Cont.)
router# show mgcp endpoint Interface T1 0/1/0 ENDPOINT-NAME S0/SU1/ds1-0/1@HQ-1 S0/SU1/ds1-0/2@HQ-1 S0/SU1/ds1-0/3@HQ-1 S0/SU1/ds1-0/4@HQ-1 S0/SU1/ds1-0/5@HQ-1 S0/SU1/ds1-0/6@HQ-1 S0/SU1/ds1-0/7@HQ-1 S0/SU1/ds1-0/8@HQ-1 S0/SU1/ds1-0/9@HQ-1 S0/SU1/ds1-0/10@HQ-1 V-PORT 0/1/0:1 0/1/0:1 0/1/0:1 0/1/0:1 0/1/0:1 0/1/0:1 0/1/0:1 0/1/0:1 0/1/0:1 0/1/0:1 SIG-TYPE none none none none none none none none none none ADMIN up up up up up up up up up up

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-21

Verifying MGCP (Cont.)
router# show mgcp statistics UDP pkts rx 8, tx 9 Unrecognized rx pkts 0, MGCP message parsing errors 0 Duplicate MGCP ack tx 0, Invalid versions count 0 CreateConn rx 4, successful 0, failed 0 DeleteConn rx 2, successful 2, failed 0 ModifyConn rx 4, successful 4, failed 0 DeleteConn tx 0, successful 0, failed 0 NotifyRequest rx 0, successful 4, failed 0 AuditConnection rx 0, successful 0, failed 0 AuditEndpoint rx 0, successful 0, failed 0 RestartInProgress tx 1, successful 1, failed 0 Notify tx 0, successful 0, failed 0 ACK tx 8, NACK tx 0 ACK rx 0, NACK rx 0 IP address based Call Agents statistics: IP address 10.24.167.3, Total msg rx 8, successful 8, failed 0

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-22

Summary
 MGCP defines an environment for controlling telephony gateways from a centralized call agent.  There are several advantages to using MGCP controlled gateways as voice gateways.  MGCP components include endpoints, gateways, and call agents.  Calls and connections are basic concepts in MGCP.

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-23

Summary (Cont.)
 MGCP call flow consists of an exchange of messages between the call agent and the gateway.  The mgcp command can be used to configure residential and trunk gateways on a Cisco router.  Several show and debug commands help to verify an MGCP configuration.

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-24

Icons
POTS Phone Voice Gateway Cisco Unified Communications Manager Cisco Unified Border Element

IP Phone

Switch

IP

IP Telephony Router with Cisco Unified Communications Manager Express Voice-Enabled Router

Router

PBX

PC

Network Cloud

Line: Serial

Line: Ethernet

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-25

© 2008 Cisco Systems, Inc. All rights reserved.

CVOICE v6.0—3-26

Sign up to vote on this title
UsefulNot useful