Table Of Contents
Basic MGCP Configuration
Contents
Prerequisites for Configuring MGCP and Related Protocols
How to Configure MGCP and Related Protocols
Configuring a TGW for MGCP
Configuring a TGW for SGCP
Configuring an RGW
Verifying the TGW or RGW Configuration
Blocking New Calls
Configuration Examples for MGCP and Related Protocols
Configuring a Cisco AS5300 as a TGW with MGCP Example
Configuring a Cisco AS5300 as a TGW with SGCP Example
Configuring a Cisco 3660 as a TGW with MGCP Example
Configuring a Cisco uBR924 as an RGW Example
Configuring a Cisco 2620 as an RGW Example
Basic MGCP Configuration
This chapter provides basic configuration information for Media Gateway Control Protocol (MGCP) and related protocols.
Note
For more information about related Cisco IOS voice features, see the following:
•
"Overview of MGCP and Related Protocols" on page 3
•
Entire Cisco IOS Voice Configuration Library—including library preface and glossary, other feature documents, and troubleshooting documentation—at http://www.cisco.com/en/US/docs/ios/12_3/vvf_c/cisco_ios_voice_configuration_library_glossary/vcl.htm
Contents
•
Prerequisites for Configuring MGCP and Related Protocols
•
How to Configure MGCP and Related Protocols
•
Configuration Examples for MGCP and Related Protocols
Prerequisites for Configuring MGCP and Related Protocols
Prerequisites are described in the "Prerequisites for Configuring MGCP and Related Protocols" section on page 3.
How to Configure MGCP and Related Protocols
To configure MGCP, perform the tasks in the following sections. Each task is identified as either optional or required.
•
Do at least one of the following tasks, depending on your network configuration (required):
–
Configuring a TGW for MGCP
–
Configuring a TGW for SGCP
–
Configuring an RGW
•
Verifying the TGW or RGW Configuration (required)
•
Blocking New Calls (optional)
Note
RGWs are configured only with MGCP.
Configuring a TGW for MGCP
To configure a trunking gateway (TGW) for MGCP, use the following commands beginning in global configuration mode:
SUMMARY STEPS
1.
mgcp
2.
mgcp call-agent [ipaddr|hostname] [port] service-type mgcp
3.
controller t1 number
4.
ds0-group channel-number timeslots range type none service mgcp
5.
exit
6.
mgcp restart-delay value
7.
mgcp package-capability {s-package | dtmf-package | gm-package | lcs-package | rtp-package | trunk-package | script-package}
8.
mgcp default-package {as-package | dtmf-package | gm-package | rtp-package | trunk-package}
9.
mgcp dtmf-relay {codec | low-bit-rate} mode {cisco | out-of-band}
10.
mgcp modem passthru {cisco | ca}
11.
gcp sdp simple
12.
exit
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
Router(config)# mgcp
|
Initiates the MGCP application.
|
Step 2
|
Router(config)# mgcp call-agent [ipaddr|hostname]
[port] service-type mgcp
|
Specifies the call agent's IP address or domain name, the port, and gateway control service type.
|
Step 3
|
Router(config)# controller t1 number
|
Specifies the channel number of the T1 trunk to be used for analog calls and enters controller configuration mode.
|
Step 4
|
Router(config-controller)# ds0-group
channel-number timeslots range type none service
mgcp
|
Configures the channelized T1 time slots to accept the analog calls.
|
Step 5
|
Router(config-controller)# exit
|
Exits the current mode.
|
Step 6
|
Router(config)# mgcp restart-delay value
|
(Optional) Specifies the delay value sent in the RSIP graceful teardown method, in seconds. Range is from 0 to 600. Default is 0.
|
Step 7
|
Router(config)# mgcp package-capability
{trunk-package | dtmf-package | gm-package |
lcs-package | rtp-package | as-package}
|
(Optional) Specifies the event packages that are supported on the trunking gateway. Default is trunk-package.
|
Step 8
|
Router(config)# mgcp default-package {as-package
| dtmf-package | gm-package | rtp-package |
trunk-package}
|
(Optional) Specifies the default event package. Overrides the mgcp package-capability default package.
|
Step 9
|
Router(config)# mgcp dtmf-relay {codec |
low-bit-rate} mode {cisco | out-of-band}
|
(Optional) Used for relaying digits through the IP network. Default is no mgcp dtmf-relay for all codecs.
|
Step 10
|
Router(config)# mgcp modem passthru {cisco | ca}
|
(Optional) Configures the gateway for modem and fax data.
|
Step 11
|
Router(config)# mgcp sdp simple
|
(Optional) Specifies use of a subset of the session description protocol (SDP). Some call agents require this subset to send data through the network. Default is no mgcp sdp simple.
|
Step 12
|
Router(config)# exit
|
Exits the current mode.
|
Configuring a TGW for SGCP
To configure a trunking gateway (TGW) for Simple Gateway Control Protocol (SGCP), use the following commands beginning in global configuration mode:
SUMMARY STEPS
1.
mgcp
2.
mgcp call-agent [ipaddr | hostname] [port] service-type sgcp
3.
controller t1 number
4.
ds0-group channel-number timeslots range type {none | fgdos} [tone_type] [addr_info] service {sgcp | voice}
5.
exit
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
Router(config)# mgcp
|
Initiates the MGCP application.
|
Step 2
|
Router(config)# mgcp call-agent [ipaddr |
hostname] [port] service-type sgcp
|
Specifies the call agent's IP address or domain name, the port, and gateway control service type.
|
Step 3
|
Router(config)# controller t1 number
|
Specifies the channel number of the T1 trunk to be used for analog calls and enters controller configuration mode.
|
Step 4
|
Router(config-controller)# ds0-group
channel-number timeslots range type {none |
fgdos} [tone_type] [addr_info] service {sgcp |
voice}
|
Configures the channelized T1 time slots to accept the analog calls. For type none, use service sgcp. For type fgdos, use service voice.
|
Step 5
|
Router(config-controller)# exit
|
Exits the current mode.
|
Configuring an RGW
To configure a residential gateway (RGW), use the following commands beginning in global configuration mode:
SUMMARY STEPS
1.
mgcp
2.
mgcp call-agent [ipaddr | hostname] [port] service-type mgcp
3.
dial-peer voice number pots
4.
application MGCPAPP
5.
exit
6.
mgcp package-capability {line-package | dtmf-package | gm-package | rtp-package}
7.
mgcp default-package [line-package | dtmf-package | gm-package]
8.
exit
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
Router(config)# mgcp
|
Initiates the MGCP application.
Note RGWs are configured only with MGCP.
|
Step 2
|
Router(config)# mgcp call-agent [ipaddr |
hostname] [port] service-type mgcp
|
Specifies the call-agent IP address or domain name, port, and gateway control service type.
|
Step 3
|
Router(config)# dial-peer voice number pots
|
Sets up the dial peer for a voice port.
|
Step 4
|
Router(config-dial-peer)# application MGCPAPP
|
Selects the MGCP application to run on the voice port.
|
Step 5
|
Router(config-dial-peer)# exit
|
Exits the current mode.
|
Step 6
|
Router(config)# mgcp package-capability
{line-package | dtmf-package | gm-package |
rtp-package}
|
(Optional) Specifies event packages that are supported on the residential gateway. Default is line-package.
|
Step 7
|
Router(config)# mgcp default-package
[line-package | dtmf-package | gm-package]
|
(Optional) Specifies the default event package. Overrides the mgcp package-capability command.
|
Step 8
|
Router(config)# exit
|
Exits the current mode.
|
Verifying the TGW or RGW Configuration
To verify configuration, use the following command.
SUMMARY STEPS
1.
show running-configuration
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
Router(config)# show running-configuration
|
Displays the current configuration settings.
|
Blocking New Calls
You can block all new MGCP calls to the router (Step 1) and terminate all existing active calls (Step 2), which means that an active call is not terminated until the caller hangs up.
To block all new calls, use the following commands in global configuration mode:
SUMMARY STEPS
1.
mgcp block-newcalls
2.
no mgcp block-newcalls
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
Router(config)# mgcp block-newcalls
|
Prevents the gateway from accepting new calls.
|
Step 2
|
Router(config)# no mgcp block-newcalls
|
Restarts normal MGCP call operation.
|
Configuration Examples for MGCP and Related Protocols
This section provides configuration examples for each of the supported platforms:
•
Configuring a Cisco AS5300 as a TGW with MGCP Example
•
Configuring a Cisco AS5300 as a TGW with SGCP Example
•
Configuring a Cisco 3660 as a TGW with MGCP Example
•
Configuring a Cisco uBR924 as an RGW Example
•
Configuring a Cisco 2620 as an RGW Example
Configuring a Cisco AS5300 as a TGW with MGCP Example
The following example illustrates a configuration only for MGCP calls. FGD-OS calls are not supported.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
ip host B 209.165.200.225
ip host C 209.165.200.226
ip name-server 209.165.202.129
mgcp request timeout 10000
mgcp call-agent 192.168.10.10 2302
mgcp package-capability gm-package
mgcp package-capability dtmf-package
mgcp package-capability trunk-package
mgcp package-capability rtp-package
mgcp package-capability as-package
mgcp package-capability mf-package
mgcp package-capability script-package
mgcp default-package trunk-package
mta receive maximum-recipients 0
clock source line primary
ds0-group 0 timeslots 1-24 type none service mgcp
clock source line secondary 1
ds0-group 0 timeslots 1-24 type none service mgcp
ds0-group 0 timeslots 1-24 type none service mgcp
ds0-group 0 timeslots 1-24 type none service mgcp
ip address 192.168.10.9 255.255.255.0
ip address 172.22.91.73 255.255.255.0
ip route 0.0.0.0 0.0.0.0 172.22.91.1
ip route 209.165.200.225 255.255.255.255 192.168.0.1
Configuring a Cisco AS5300 as a TGW with SGCP Example
The following example illustrates a configuration that supports MGCP and FGD-OS calls:
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
ip host B 209.165.200.225
ip host C 209.165.200.226
ip name-server 209.165.202.129
mgcp request timeout 10000
mgcp call-agent 192.168.10.10 2302 sgcp
mta receive maximum-recipients 0
clock source line primary
ds0-group 0 timeslots 1-24 type none service mgcp
clock source line secondary 1
ds0-group 0 timeslots 1-24 type fgd-os mf dnis-ani service voice
ds0-group 0 timeslots 1-24 type none service mgcp
ds0-group 0 timeslots 1-24 type none service mgcp
ip address 192.168.10.9 255.255.255.0
ip address 172.22.91.73 255.255.255.0
ip route 0.0.0.0 0.0.0.0 172.22.91.1
ip route 209.165.200.225 255.255.255.255 192.168.0.1
Configuring a Cisco 3660 as a TGW with MGCP Example
The following example illustrates a platform that does not support FGD-OS calls.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
mgcp call-agent 209.165.202.129 4000
mgcp package-capability gm-package
mgcp package-capability dtmf-package
mgcp package-capability rtp-package
mgcp package-capability as-package
isdn voice-call-failure 0
ds0-group 1 timeslots 1-24 type none service mgcp
ds0-group 1 timeslots 1-24 type none service mgcp
interface FastEthernet0/0
ip address 209.165.202.140 255.255.255.0
interface FastEthernet0/1
ip default-gateway 209.165.202.130
ip route 209.165.200.225 255.255.255.255 FastEthernet0/0
snmp-server engineID local 00000009020000107BD8CD80
snmp-server community public RO
Configuring a Cisco uBR924 as an RGW Example
The following example illustrates a platform that does not support FGD-OS calls.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
logging buffered 200000 debugging
ip host C 209.165.200.224
ip host D 209.165.200.225
mgcp call-agent 192.168.10.10 2490
mgcp package-capability gm-package
mgcp package-capability dtmf-package
mgcp package-capability line-package
mgcp default-package line-package
ip address 192.168.147.91 255.255.255.0
cable-modem downstream saved channel 459000000 20
cable-modem downstream saved channel 699000000 19 2
cable-modem mac-timer t2 100000
no cable-modem compliant bridge
bridge-group 59 spanning-disabled
ip default-gateway 10.1.1.1
Configuring a Cisco 2620 as an RGW Example
The following example illustrates a platform that does not support FGD-OS calls.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
mgcp call-agent 172.20.5.20
mgcp package-capability gm-package
mgcp package-capability dtmf-package
mgcp package-capability line-package
mgcp package-capability rtp-package
mgcp default-package line-package
ip address 172.20.5.25 255.255.255.0
ip default-gateway 209.165.202.130
ip route 209.165.200.225 255.255.255.224 Ethernet0/1
Tip
•
See the "Additional References for MGCP and SGCP" section on page x for related documents, standards, and MIBs.
•
See the "Glossary" for definitions of terms in this guide.
CCDE, CCENT, CCSI, Cisco Eos, Cisco HealthPresence, Cisco IronPort, the Cisco logo, Cisco Lumin, Cisco Nexus, Cisco Nurse Connect, Cisco Pulse, Cisco StackPower, Cisco StadiumVision, Cisco TelePresence, Cisco Unified Computing System, Cisco WebEx, DCE, Flip Channels, Flip for Good, Flip Mino, Flipshare (Design), Flip Ultra, Flip Video, Flip Video (Design), Instant Broadband, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn, Cisco Capital, Cisco Capital (Design), Cisco:Financed (Stylized), Cisco Store, and Flip Gift Card are service marks; and Access Registrar, Aironet, AllTouch, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, Continuum, EtherFast, EtherSwitch, Event Center, Explorer, Fast Step, Follow Me Browsing, FormShare, GainMaker, GigaDrive, HomeLink, iLYNX, Internet Quotient, IOS, iPhone, iQuick Study, IronPort, the IronPort logo, Laser Link, LightStream, Linksys, MediaTone, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerKEY, PowerPanels, PowerTV, PowerTV (Design), PowerVu, Prisma, ProConnect, ROSA, ScriptShare, SenderBase, SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0908R)
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2007-2009 Cisco Systems, Inc. All rights reserved.