Vous êtes sur la page 1sur 26

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
FX
S*

PRI PRI
IP PSTN

Residential Gateway Trunking Gateway


 Connecting POTS phones  Connecting PSTN-bearer
to an IP network 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 Gateway B
Call
Agent
RQNT RQNT
RQNT Response RQNT Response

Off Hook and NTFY


Dialed 5551234
CRCX
CRCX (SDP,
CRCX Response Encapsulated
RQNT)
(SDP) Ringing,
MDCX (Encapsulated Then Answer
CRCX
RQNT, SDP)
Response (SDP)
MDCX Response

RTP Stream
RTP Stream
On Hook RTCP Stream
NTFY

DLCX 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
Unified Call
Manager
Residential 172.20.5.20
Gateway
1/0/0

IP
1/0/1

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 WAN
Manager
10.1.1.201

PSTN
IP Phones
MGCP
Gateway

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
Cisco
San Jose Unified Call Austin
Manager Cisco
10.1.1.10 Unified Call
Manager

IP Network

T.38 T.38
G3 Fax Gateway Gateway
G3 Fax

Router(config)# ccm-manager mgcp


Router(config)# no ccm-manager fax protocol cisco
Router(config)# mgcp
Router(config)# mgcp call-agent 10.1.1.10 service-type mgcp version 0.1
Router(config)# mgcp package-capability fxr-package
Router(config)# mgcp package-capability rtp-package
Router(config)# mgcp fax rate 14400
Router(config)# mgcp timer 300
Router(config)# 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 restart delay 0, MGCP vad DISABLED
MGCP rtrcac DISABLED
MGCP system resource check DISABLED
MGCP xpc-codec: DISABLED, MGCP persistent hookflash: DISABLED
MGCP persistent offhook: ENABLED, MGCP persistent onhook: DISABLED
MGCP piggyback msg ENABLED, MGCP endpoint offset DISABLED
MGCP simple-sdp DISABLED
MGCP undotted-notation DISABLED
MGCP codec type g711ulaw, MGCP packetization period 20
MGCP JB threshold lwm 30, MGCP JB threshold hwm 150
MGCP LAT threshold lwm 150, MGCP LAT threshold hwm 300
MGCP PL threshold lwm 1000, MGCP PL threshold hwm 10000
MGCP CL threshold lwm 1000, MGCP CL threshold hwm 10000
MGCP playout mode is adaptive 60, 40, 200 in msec
MGCP Fax Playout Buffer is 300 in msec
MGCP media (RTP) dscp: ef, MGCP signaling dscp: af31
MGCP default package: trunk-package
MGCP 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 T.38 Max Fax Rate is DEFAULT
MGCP T.38 Fax is ENABLED
MGCP T.38 Fax ECM is ENABLED
MGCP T.38 Fax NSF Override is DISABLED
MGCP T.38 Fax Low Speed Redundancy: 0
MGCP T.38 Fax High Speed Redundancy: 0
MGCP Fax relay SG3-to-G3: ENABLED
MGCP control bind :DISABLED
MGCP media bind :DISABLED
MGCP Upspeed payload type for G711ulaw: 0, G711alaw: 8
MGCP Dynamic payload type for G.726-16K codec
MGCP Dynamic payload type for G.726-24K codec
MGCP Dynamic payload type for G.Clear codec
MGCP Dynamic payload type for NSE is 100
MGCP Dynamic payload type for NTE is 99
MGCP rsip-range is enabled for TGCP only.
MGCP Guaranteed scheduler time is disabled
MGCP 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 V-PORT SIG-TYPE ADMIN


S0/SU1/ds1-0/1@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/2@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/3@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/4@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/5@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/6@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/7@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/8@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/9@HQ-1 0/1/0:1 none up
S0/SU1/ds1-0/10@HQ-1 0/1/0:1 none 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
Cisco Unified
POTS
Voice Gateway Communications
Phone
Manager

Cisco
Unified
IP Phone Switch IP
Border
Element

IP Telephony
Router with
Cisco Unified Router PBX
Communications
Manager Express

Voice-Enabled Network
Router PC
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

Vous aimerez peut-être aussi