Table Of Contents
Media Gateway Control Protocol Residential Gateway Support
Related Features and Technologies
Supported Standards, MIBs, and RFCs
Verifying the TGW or RGW Configuration
Blocking New Calls and Gracefully Terminating Existing Calls
Monitoring and Maintaining MGCP RGW
Sample Configuration for the Cisco AS5300 as a TGW with MGCP
Sample Configuration for the Cisco AS5300 as a TGW with SGCP
Sample Configuration for the Cisco 3660 as a TGW with MGCP
Sample Configuration for the Cisco uBR924 as an RGW
Sample Configuration for the Cisco 2620 as an RGW
Media Gateway Control Protocol Residential Gateway Support
The Media Gateway Control Protocol Residential Gateway Support (MGCP RGW) feature merges the Media Gateway Control Protocol (MGCP) and Simple Gateway Control Protocol (SGCP) for residential gateways, with additional feature enhancements. This feature module includes the following sections:
•
Supported Standards, MIBs, and RFCs
•
Monitoring and Maintaining MGCP RGW
Feature Overview
Media Gateway Control Protocol (MGCP) and Simple Gateway Control Protocol (SGCP) are call control protocols that run between call agents (CA) and gateways in a packet telephony network.
As in the earlier implementations of the two protocols, a gateway handles the translation between audio signals and the packet network. These gateways interacts with a CA, also called a Media Gateway Controller (MGC), which performs signal and call processing on the gateways' calls. Support has expanded to include:
•
Residential Gateway (RGW), which provides an interface between analog (RJ11) calls from a telephone and the Voice over IP network. Examples of RGWs include cable modems and xDSL devices. See Figure 1 for an illustration of an RGW configuration.
Figure 1 Residential and Trunking Gateways
•
Trunking Gateway (TGW), which was supported in earlier versions of the protocols, provides an interface between trunks on the Public Switched Telephone Network (PSTN) and a Voice over IP network. A trunk can be a DS0, T1, or E1 line. Examples of TGWs include access servers and routers. See Figure 2 for an illustration of a TGW configuration.
Figure 2 Trunking Gateways
RGW Features and Functionality
RGW functionality supports analog (POTS) calls for both SGCP and MGCP on the Cisco uBR924 and Cisco 2600 series platforms:
•
Call waiting and stutter dialtone are supported on both Cisco uBR924 and Cisco 2600 series platforms.
•
Onhook caller ID, distinctive ringing, and ring splash are supported only on the Cisco uBR924 platform.
•
A default call agent address can be specified for each FXS port on the Cisco uBR924 platform.
•
Modem and fax calls are supported on both Cisco uBR924 and Cisco 2600 series platforms
TGW Features and Functionality
TGW functionality supports SGCP and MGCP on the Cisco AS5300 and Cisco 3660 platforms:
•
SS7 calls are supported on both the Cisco AS5300 and Cisco 3660 platforms.
•
FGD-OS 911 outgoing calls on T1 lines are supported only on the Cisco AS5300 platform in SGCP mode.
•
PRI/ISDN signaling is supported only on the Cisco AS5300 platform. These calls are backhauled to the Call Agent. (For more information on call backhaul, refer to the PRI/Q.931 Signaling Backhaul for Call Agent Applications publication.)
•
T1 and E1 interfaces are supported on both the Cisco AS5300 and Cisco 3660 platforms.
•
Modem and fax calls are supported on both the Cisco AS5300 and Cisco 3660 platforms.
Benefits
Migration Path
Systems using earlier versions of SGCP and MGCP can migrate easily to MGCP RGW.
Multiple Protocols Support and Investment Protection
MGCP RGW supports SGCP, MGCP, SIP, and H.323 protocols concurrently on the same hardware and software. VoIP solutions can use any of these popular protocols. Changing protocols to suit new network solutions can be done without disrupting the current network or investing in new systems.
Varied Network Needs Supported
MGCP RGW supports different network needs:
•
Inter-exchange Carriers (IXCs) who have no legacy TDM equipment currently in their network and want to deploy a fully featured network that offers both long distance services to corporate customers and connectivity to Local Exchange Carriers or other IXCs with traditional TDM equipment.
•
IXCs who have TDM equipment in their networks and want to relieve the congestion in the network using data technologies to carry voice traffic or to cap the growth of TDM ports. In these situations, the packet network will provide basic switched trunking without services or features.
•
Local Exchange Carriers (ILECs) who want to deploy data technology for voice traffic.
•
Competitive Local Exchange Carriers (CLECs) who want to provide residential and enhanced services.
•
Dial access customers who want enhanced SS7 access capabilities and increased performance, reliability, scalability, and lower costs.
Restrictions
FGD-OS is supported only in SGCP mode for trunking gateways.
Deployment of MGCP and SGCP solutions requires that the features be supported on both the gateway and the call agent.
Related Features and Technologies
Voice over Internet Protocol (VoIP)
Related Documents
General reference documents:
•
Cisco IOS Multiservice Applications Command Reference for Cisco IOS Release 12.1
http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/multi_r/index.htm
•
Cisco IOS Multiservice Applications Configuration Guide for Cisco IOS Release 12.1
http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/multi_c/index.htm
Feature documents:
•
Media Gateway Control Protocol for the Cisco AS5300 Voice/Gateway
http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121newft/121t/121t1/mgcp1211.htm
•
Simple Gateway Control Protocol Support for the Cisco MC3810 and Cisco 3600 Series Routers
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120limit/120xk/1207xk/sgcp_6xk.htm
•
Cisco uBR924 Software Configuration Guide
http://www.cisco.com/univercd/cc/td/doc/product/cable/cab_modm/ubr924/scg924/index.htm
•
PRI/Q.931 Signaling Backhaul for Call Agent Applications
http://www.cisco.com/univercd/cc/td/doc/product/access/acs_serv/5300/cfios/cfselfea/0144cors.htm
Supported Platforms
For Residential Gateway (RGW) functionality:
•
Cisco 2600 series modular access routers
•
Cisco uBR924 cable access router
For Trunking Gateway (TGW) functionality:
•
Cisco 3660 multiservice platform
•
Cisco AS5300 universal access server
•
Cisco AS5850
Determining Platform Support Through Cisco Feature Navigator
Cisco IOS software is packaged in feature sets that support specific platforms. To get updated information regarding platform support for this feature, access Cisco Feature Navigator. Cisco Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.
Cisco Feature Navigator is a web-based tool that enables you to determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image. You can search by feature or release. Under the release section, you can compare releases side by side to display both the features unique to each software release and the features in common.
To access Cisco Feature Navigator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions at http://www.cisco.com/register.
Cisco Feature Navigator is updated regularly when major Cisco IOS software releases and technology releases occur. For the most current information, go to the Cisco Feature Navigator home page at the following URL:
Availability of Cisco IOS Software Images
Platform support for particular Cisco IOS software releases is dependent on the availability of the software images for those platforms. Software images for some platforms may be deferred, delayed, or changed without prior notice. For updated information about platform support and availability of software images for each Cisco IOS software release, refer to the online release notes or, if supported, Cisco Feature Navigator.
Supported Standards, MIBs, and RFCs
Standards
•
RTP and RTCP 1889 and 1890
•
IETF MGCP draft Version 0.1 dated November 9, 1998
MIBs
XGCP-MIB
For descriptions of supported MIBs and how to use MIBs, see the Cisco MIB web site on CCO at http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml.
RFCs
SDP 2327 is not completely implemented.
Prerequisites
Complete the following tasks on your network before configuring this feature:
•
Configure IP routing
•
Configure voice ports
•
Configure Voice over IP
•
Set up the Call Agent
Configuration Tasks
See one of the following sections for configuration tasks for MGCP RGW. Each task in the list indicates if the task is optional or required.
•
Configuring a TGW for MGCP
•
Configuring a TGW for SGCP
•
Configuring an RGW
Configuring a TGW for MGCP
Configuring a TGW for MGCP uses these steps:
Configuring a TGW for SGCP
Configuring a TGW for SGCP uses these steps:
Configuring an RGW
Configuring an RGW uses these steps:
Verifying the TGW or RGW Configuration
Use this command to verify the configuration settings for all platforms and protocols:
Blocking New Calls and Gracefully Terminating Existing Calls
You can block all new MGCP calls to the router and gracefully terminate all existing active calls, which means that an active call is not terminated until the caller hangs up. To block all new calls, use the following commands:
Command PurposeStep 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.
Monitoring and Maintaining MGCP RGW
Use these commands to monitor the MGCP configuration:
Configuration Examples
This section provides configuration examples for each of the supported platforms:
•
Sample Configuration for the Cisco AS5300 as a TGW with MGCP
•
Sample Configuration for the Cisco AS5300 as a TGW with SGCP
•
Sample Configuration for the Cisco 3660 as a TGW with MGCP
•
Sample Configuration for the Cisco uBR924 as an RGW
•
Sample Configuration for the Cisco 2620 as an RGW
Sample Configuration for the Cisco AS5300 as a TGW with MGCP
This example illustrates a configuration only for MGCP calls. FGD-OS calls are not supported here.
version 12.0service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname A!logging buffered 200000 debuggingenable password lab!resource-pool disable!ip subnet-zeroip ftp username sjengip host B 209.165.200.225ip host C 209.165.200.226ip domain-name cisco.comip name-server 209.165.202.129!mgcpmgcp request timeout 10000mgcp call-agent 192.168.10.10 2302mgcp restart-delay 5mgcp package-capability gm-packagemgcp package-capability dtmf-packagemgcp package-capability trunk-packagemgcp package-capability rtp-packagemgcp package-capability as-packagemgcp package-capability mf-packagemgcp package-capability script-packagemgcp default-package trunk-packagemta receive maximum-recipients 0!controller T1 0framing esfclock source line primarylinecode b8zsds0-group 0 timeslots 1-24 type none service mgcp!controller T1 1framing esfclock source line secondary 1linecode b8zsds0-group 0 timeslots 1-24 type none service mgcp!controller T1 2framing esflinecode b8zsds0-group 0 timeslots 1-24 type none service mgcp!controller T1 3framing esflinecode b8zsds0-group 0 timeslots 1-24 type none service mgcp!!voice-port 0:0!voice-port 1:0!voice-port 2:0!voice-port 3:0!interface Ethernet0ip address 192.168.10.9 255.255.255.0no ip directed-broadcast!interface FastEthernet0ip address 172.22.91.73 255.255.255.0no ip directed-broadcastshutdownduplex autospeed auto!no ip classlessip route 0.0.0.0 0.0.0.0 172.22.91.1ip route 209.165.200.225 255.255.255.255 192.168.0.1no ip http server!line con 0exec-timeout 0 0transport input noneline aux 0line vty 0 4login!endSample Configuration for the Cisco AS5300 as a TGW with SGCP
This example illustrates a configuration that supports MGCP and FGD-OS calls.
version 12.0service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname A!logging buffered 200000 debuggingenable password lab!resource-pool disable!ip subnet-zeroip ftp username sjengip host B 209.165.200.225ip host C 209.165.200.226ip domain-name cisco.comip name-server 209.165.202.129!mgcpmgcp request timeout 10000mgcp call-agent 192.168.10.10 2302 sgcpmta receive maximum-recipients 0!!controller T1 0framing esfclock source line primarylinecode b8zsds0-group 0 timeslots 1-24 type none service mgcp!controller T1 1framing esfclock source line secondary 1linecode b8zsds0-group 0 timeslots 1-24 type fgd-os mf dnis-ani service voice!controller T1 2framing esflinecode b8zsds0-group 0 timeslots 1-24 type none service mgcp!controller T1 3framing esflinecode b8zsds0-group 0 timeslots 1-24 type none service mgcp!!!voice-port 0:0!voice-port 1:0!voice-port 2:0!voice-port 3:0!interface Ethernet0ip address 192.168.10.9 255.255.255.0no ip directed-broadcast!interface FastEthernet0ip address 172.22.91.73 255.255.255.0no ip directed-broadcastshutdownduplex autospeed auto!no ip classlessip route 0.0.0.0 0.0.0.0 172.22.91.1ip route 209.165.200.225 255.255.255.255 192.168.0.1no ip http server!!!line con 0exec-timeout 0 0transport input noneline aux 0line vty 0 4login!endSample Configuration for the Cisco 3660 as a TGW with MGCP
This platform does not support FGD-OS calls.
version 12.0service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname A!!memory-size iomem 40voice-card 1!ip subnet-zero!mgcp 4000mgcp call-agent 209.165.202.129 4000mgcp package-capability gm-packagemgcp package-capability dtmf-packagemgcp package-capability rtp-packagemgcp package-capability as-packageisdn voice-call-failure 0cns event-service server!!controller T1 1/0framing esfclock source internalds0-group 1 timeslots 1-24 type none service mgcp!controller T1 1/1framing esfclock source internalds0-group 1 timeslots 1-24 type none service mgcp!!voice-port 1/0:1!voice-port 1/1:1!interface FastEthernet0/0ip address 209.165.202.140 255.255.255.0no ip directed-broadcastload-interval 30duplex autospeed auto!interface FastEthernet0/1no ip addressno ip directed-broadcastno ip mroute-cacheload-interval 30shutdownduplex autospeed auto!ip default-gateway 209.165.202.130ip classlessip route 209.165.200.225 255.255.255.255 FastEthernet0/0no ip http server!!snmp-server engineID local 00000009020000107BD8CD80snmp-server community public RO!line con 0exec-timeout 0 0transport input noneline aux 0line vty 0 4login!endSample Configuration for the Cisco uBR924 as an RGW
This platform does not support FGD-OS calls.
version 12.0no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname A!logging buffered 200000 debugging!!!!clock timezone - -8ip subnet-zerono ip routingno ip domain-lookupip host A 192.168.147.91ip host C 209.165.200.224ip host D 209.165.200.225!mgcpmgcp call-agent 192.168.10.10 2490mgcp package-capability gm-packagemgcp package-capability dtmf-packagemgcp package-capability line-packagemgcp default-package line-package!!!voice-port 0input gain -3!voice-port 1input gain -3!!dial-peer voice 1 potsapplication MGCPAPPport 1!dial-peer voice 2 potsapplication MGCPAPPport 0!!!interface Ethernet0ip address 192.168.147.91 255.255.255.0no ip directed-broadcastno ip route-cacheno ip mroute-cache!interface cable-modem0ip address negotiatedno ip directed-broadcastno ip route-cacheno ip mroute-cachecable-modem downstream saved channel 459000000 20cable-modem downstream saved channel 699000000 19 2cable-modem mac-timer t2 100000no cable-modem compliant bridgebridge-group 59bridge-group 59 spanning-disabled!ip default-gateway 10.1.1.1ip classlessno ip http server!!line con 0exec-timeout 0 0transport input noneline vty 0 4login!endSample Configuration for the Cisco 2620 as an RGW
This platform does not support FGD-OS calls.
version 12.0service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname D!!memory-size iomem 10ip subnet-zero!mgcpmgcp call-agent 172.20.5.20mgcp package-capability gm-packagemgcp package-capability dtmf-packagemgcp package-capability line-packagemgcp package-capability rtp-packagemgcp default-package line-packagecns event-service server!!!voice-port 1/0/0!voice-port 1/0/1!!dial-peer voice 1 potsapplication MGCPAPPport 1/0/0!dial-peer voice 2 potsapplication MGCPAPPport 1/0/1!!interface Ethernet0/0no ip addressno ip directed-broadcastshutdown!interface Serial0/0no ip addressno ip directed-broadcastno ip mroute-cacheshutdownno fair-queue!interface Ethernet0/1ip address 172.20.5.25 255.255.255.0no ip directed-broadcast!interface Serial0/1no ip addressno ip directed-broadcastshutdown!ip default-gateway 209.165.202.130ip classlessip route 209.165.200.225 255.255.255.224 Ethernet0/1no ip http server!!!line con 0exec-timeout 0 0transport input noneline aux 0line vty 0 4login!endCommand Reference
This section documents new or modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.1 command reference publications.
•
application
•
mgcp
application
To enable a specific application on a dial-peer, use the application dial-peer command. To remove the application from the dial-peer, use the no form of this command.
application name
no application name
Syntax Description
name
Indicates the name of the application enabled on the dial peer. Valid values are MGCPAPP or SGCPAPP.
Defaults
No default behavior or values
Command Modes
Dial-peer configuration
Command History
Usage Guidelines
Enter the MGCPAPP value in upper-case characters. This application can be applied only to POTS dial peers. Note that SGCP dial peers do not use dial-peer hunting.
Examples
The following example shows how to apply the MGCP application to a dial peer:
Router(config)# dial-peer voice 1 potsRouter(config-dial-peer)# application MGCPAPPRelated Commands
clear mgcp statistics
To reset the MGCP statistical counters, use the clear mgcp statistics EXEC command. This command does not have a no form.
clear mgcp statistics
Syntax Description
This command has no arguments or keywords.
Defaults
No default behavior or values
Command Modes
EXEC
Command History
Examples
The following example shows how to clear the mgcp statistics:
Router# clear mgcp statisticsRelated Commands
Command Descriptionshow mgcp statistics
Displays statistics for received and transmitted packets.
Starts the MGCP daemon.
ds0-group
To configure channelized T1 timeslots on a Cisco AS5300 trunking gateway to answer and send an analog call, use the ds0-group controller configuration command. To disable a DS0 configuration for one or more timeslots, use the no form of this command.
ds0-group channel-number timeslots range type signaling-type tone type addr info service service-type
no ds0-group channel-number timeslots range
Syntax Description
Defaults
No default behavior or values
Command Modes
Controller configuration
Command History
Usage Guidelines
This command is available only on the Cisco AS5300 trunking gateway.
The fgdos option for signaling-type supports the FGD-OS capability available in SGCP. This capability is not supported in MGCP.
Use mgcp for service-type if you want the full set of MGCP features and functionality. Note that FGD-OS features are not available in MGCP.
Use sgcp for service-type if you want SGCP functionality without FGD-OS features.
Use voice for service-type if you want SGCP functionality with the FGD-OS features.
The service-type value indicates the set of features to be used for the gateway once the mgcp EXEC command is entered to initiate MGCP RGW.
Examples
The following example illustrates setting the T1 channels for SS7 service on any TGW in mgcp mode:
Router(config-controller)# ds0-group 0 timeslots 1-24 type none service mgcpThe following example illustrates setting the T1 channels for SS7 service on any TGW in sgcp mode:
Router(config-controller)# ds0-group 0 timeslots 1-24 type none service sgcpThe following example illustrates setting the T1 channels for FGD-OS service on an Cisco AS5300 in sgcp mode:
Router(config-controller)# ds0-group 0 timeslots 1-24 type fgd-os mf dnis-ani service voiceRelated Commands
Command Descriptioncas-group
Configures channelized T1 timeslots with robbed bit signaling.
Starts the MGCP daemon.
mgcp
To start and allocate resources for the MGCP daemon, use the mgcp global configuration command. To terminate all calls, release all allocated resources, and stop the MGCP daemon, use the no form of this command.
mgcp [port]
no mgcp
Syntax Description
Defaults
No default behavior or values
Command Modes
Global configuration
Command History
Usage Guidelines
Once you start the MGCP daemon with the mgcp command, you can suspend it (for example, for maintenance) by using the mgcp block-newcalls command. When you are ready to resume normal MGCP operations, use the no mgcp block-newcalls command. Use the no mgcp command only if you intend to kill all MGCP applications and protocols.
When the MGCP daemon is not active, all MGCP messages are ignored.
If you do not specify a port from the command line, MGCP will use UDP port 2427.
Examples
The following example shows how to initiate the MGCP daemon:
Router(config)# mgcpRelated Commands
Command Descriptionmgcp ip-tos
Gracefully terminates all MGCP activity.
Specifies the number of times to retry sending the mgcp command.
debug mgcp
Enables debugging on MGCP.
mgcp block-newcalls
To block new calls while maintaining existing calls, use the mgcp block-newcalls global configuration command. To resume MGCP operation, use the no form of this command.
mgcp block-newcalls
no mgcp block-newcalls
Syntax Description
This command has no arguments or keywords.
Defaults
No default behavior or values
Command Modes
Global configuration
Command History
Usage Guidelines
This command is valid only if the mgcp command is enabled.
Once you issue this command, all requests for new connections (CreateConnection requests) are denied. All existing calls will be maintained until participants terminate them or you use the no mgcp command. When the last active call is terminated, the MGCP daemon will be terminated and all resources allocated to it will be released. The no mgcp block-newcalls command returns the router to normal MGCP operations.
Examples
The following example shows how to prevent the gateway from receiving new calls:
Router(config)# mgcp block-newcallsRelated Commands
mgcp call-agent
To configure the call agent (media gateway controller) address, use the mgcp call-agent global configuration command. To unconfigure the call agent address, use the no form of this command.
mgcp call-agent {ipaddr | hostname} [port] [service-type type]
no mgcp call-agent
Syntax Description
Defaults
service-type: mgcp
Command Modes
Global configuration
Command History
Usage Guidelines
Use this command on any platform and media gateway.
If you do not specify a UDP port from the command line, MGCP will use 2427 as the default call agent UDP port.
When service-type is set to mgcp, the call agent processes the RSIP error messages sent by the gateway. When service-type is sent to sgcp, the call agent ignores the RSIP messages.
Examples
The following examples illustrate several formats for specifying the call agent (use any one of these formats):
Router(config)# mgcp call-agent 209.165.200.225 service-type sgcpRouter(config)# mgcp call-agent 209.165.200.225 5530 service-type mgcpRouter(config)# mgcp call-agent igloo service-type sgcpRouter(config)# mgcp call-agent igloo 2009 service-type mgcpRelated Commands
mgcp codec
To select the default codec type and its optional packetization period value, use the mgcp codec global configuration command. To set the parameters to their default values, use the no form of this command.
mgcp codec type [packetization-period value]
no mgcp codec
Syntax Description
Defaults
G711ulaw
Command Modes
Global configuration
Command History
Examples
This example shows how to specify the default codec type:
Router(config)# mgcp codec g711alawThe following example specifies the codec type and sets the packetization period:
Router(config)# mgcp codec g729r8 packetization-period 150Related Commands
mgcp default-package
To configure the default package capability type for the media gateway, use the mgcp default-package global configuration command.
This command does not support a no form. To change the default package, use the mgcp default-package command with a different, actively-supported package.
RGW
mgcp default-package {line-package | dtmf-package | gm-package}
TGW
mgcp default-package {as-package | dtmf-package | gm-package | rtp-package | trunk-package}
Syntax Description
as-package
Announcement server package.
dtmf-package
DTMF package.
gm-package
Generic media package.
line-package
Line package.
rtp-package
RTP package.
trunk-package
Trunk package.
Defaults
For RGW: line-package
For TGW: trunk-packageCommand Modes
Global configuration
Command History
Usage Guidelines
This command is helpful when the Media Gateway Controller does not provide the package capability to be used for the given connection.
Before selecting a package as the default, use the show mgcp command to ensure the package is actively supported. If the package you want does not appear in the display, use the mgcp package-capability command to add the package to the supported list.
If only one package is actively supported, it becomes the default package.
Examples
The following examples shows how to set the default package:
Router(config)# mgcp default-package as-packageas-package type will be the new default package type.Related Commands
Command Descriptionmgcp package-capability
Includes a specific MGCP package that is supported by the gateway.
Starts the MGCP daemon.
mgcp dtmf-relay
To ensure accurate forwarding of digits on compressed codecs, use the mgcp dtmf-relay command. To disable this process for non-compressed codecs, use the no form of this command.
mgcp dtmf-relay {codec | low-bit-rate} mode {cisco | out-of-band}
no mgcp dtmf-relay
Syntax Description
Defaults
no mgcp dtmf-relay for all codecs
Command Modes
Controller configuration
Command History
Release Modification12.1(3)T
This command was added to MGCP.
12.2(11)T
This command was implemented on the Cisco AS5850 and integrated into Cisco IOS Release 12.2(11)T.
Usage Guidelines
Use this command to access an announcement server or a voice mail server that does not have the capability to decode RTP packets containing DTMF digits.
When mgcp dtmf-relay is active, the dtmf digits are removed from the voice stream and carried by FRF.11 so that the server can decode it.
Examples
The following example shows how to set the dtmf-relay codec and mode:
Router(config)# mgcp dtmf-relay codec mode ciscoRelated Commands
mgcp ip-tos
To enable or disable the IP Type of Services (TOS) for MGCP-controlled connections, use the mgcp ip-tos global configuration command. To set the parameters to their default values, use the no form of this command.
mgcp ip-tos {high-reliability | high-throughput | low-cost | low-delay | precedence value}
no mgcp ip-tos {high-reliability | high-throughput | low-cost | low-delay | precedence value}
Syntax Description
Defaults
Services disabled, precedence 3
Command Modes
Global configuration
Command History
Usage Guidelines
Only one of the high-reliability, high-throughput, low-cost, or low-delay parameters can be enabled at any given time. Enabling one parameter disables any other that was active. This has no effect on the precedence parameter.
When you configure a new value for precedence, the old value is erased.
The no form of the mgcp ip-tos command disables the first four parameters and sets precedence back to 3.
Examples
In the following example, activating low-delay disables the other three parameters.
Router(config)# mgcp ip-tos high-relRouter(config)# mgcp ip-tos high-throughputRouter(config)# mgcp ip-tos low-costRouter(config)# mgcp ip-tos low-delayRouter(config)# mgcp ip-tos prec 4Related Commands
mgcp max-waiting-delay
To specify the MGCP maximum waiting delay (MWD), use the mgcp max-waiting-delay global configuration command. To set this command to its default values, use the no form of this command.
mgcp max-waiting-delay value
no mgcp max-waiting-delay
Syntax Description
value
The number of seconds to wait after restart. Valid range is 0 to 600000 milliseconds (600 seconds).
Defaults
3000 milliseconds
Command Modes
Global configuration
Command History
Usage Guidelines
Use the maximum waiting delay to send out an RSIP message to the call agent with the restart method. This command helps prevent traffic bottlenecks caused by MGCP gateways all trying to connect at the same time after a restart.
Examples
The following examples show to set the max-waiting-delay:
Router(config)# mgcp max-waiting-delay 600Router(config)# mgcp max-waiting-delay 2500Router(config)# mgcp max-waiting-delay 300000Related Commands
Command DescriptionStarts the MGCP daemon.
Configures the graceful tear down method sent in the RSIP message.
mgcp modem passthru
To enable the gateway to send and receive modem and fax data, use the mgcp modem passthru command. To disable support for modem and fax data, use the no form of this command.
mgcp modem passthru {cisco | ca}
no mgcp modem passthru
Syntax Description
Defaults
ca
Command Modes
Controller configuration
Command History
Release Modification12.1(3)T
This command was added to MGCP.
12.2(11)T
This command was implemented on the Cisco AS5850 and integrated into Cisco IOS Release 12.2(11)T.
Usage Guidelines
When cisco is activated and the gateway detects a modem/fax tone, the gateway switches the codec to a G.711, then sends the analog data to a remote gateway. The remote gateway also switches the codec on its side of the call to G.711 to allow the analog data to pass through.
When ca is activated and the gateway detects a modem/fax tone, the gateway alerts the call agent to switch the codec to G.711 to allow the analog data to pass through. The call agent must send an MDCX signal to the G.711 codec for successful data pass-through.
Examples
The following example illustrates how to enable a gateway to send and receive modem or fax data:
Router(config)# mgcp modem passthru ciscoRelated Commands
mgcp package-capability
To specify an MGCP package capability for this gateway, use the mgcp package-capability global configuration command. To remove a specific MGCP package capability from the list of capabilities, use the no form of this command.
All RGWs
mgcp package-capability {line-package | dtmf-package | gm-package | rtp-package}
no mgcp package-capability {line-package | dtmf-package | gm-package | rtp-package}
Cisco AS5300 TGW
mgcp package-capability {trunk-package | dtmf-package | gm-package | rtp-package | as-package | script-package}
no mgcp package-capability {trunk-package | dtmf-package | gm-package | rtp-package | as-package | script-package}
All Other TGWs
mgcp package-capability {trunk-package | dtmf-package | gm-package | rtp-package | as-package}
no mgcp package-capability {trunk-package | dtmf-package | gm-package | rtp-package | as-package}
Syntax Description
Defaults
For all RGWs: line-package
For all TGWs: trunk-packageCommand Modes
Global configuration
Command History
Usage Guidelines
Select packages supported by your call agent. Events specified in the MGCP messages from the call agent must belong to one of the supported packages. Otherwise, the connection requests are refused by the media gateway.
Use this command before specifying a default package with the mgcp default-package command. Specify at least one package to have a default.
Enter each package as a separate command.
Examples
The following examples show how to specify packages for the gateway:
Router(config)# mgcp package-capability trunk-packageRouter(config)# mgcp package-capability dtmf-packageRouter(config)# mgcp package-capability script-packageRouter(config)# mgcp default-package trunk-packageRelated Commands
Command DescriptionConfigures the default package capability type for the media gateway.
Starts the MGCP daemon.
mgcp playout
To tune the jitter buffer packet size attempted for MGCP-controlled connections, use the mgcp playout global configuration command. Use the no form of this command to restore the default value.
mgcp playout {adaptive init-value min-value max-value | fixed init-value}
no mgcp playout {adaptive | fixed}
Syntax Description
Defaults
adaptive 60 4 200
Command Modes
Global configuration
Command History
Examples
The following example illustrates a jitter buffer configuration with an initial playout of 100, a minimum buffer size of 50, and a maximum buffer size of 150:
Router(config)# mgcp playout adaptive 100 50 150The following example illustrates setting the jitter buffer to a fixed playout of 120:
Router(config)# mgcp playout fixed 120Related Commands
mgcp quality-threshold
To set the jitter buffer size threshold, latency threshold, and packet-loss threshold parameters, use the mgcp quality-threshold global configuration command. To restore the default parameter values, use the no form of this command.
mgcp quality-threshold {hwm-jitter-buffer value | hwm-latency value | hwm-packet-loss value | lwm-jitter-buffer value | lwm-latency value | lwm-packet-loss value}
no mgcp quality-threshold {hwm-jitter-buffer | hwm-latency | hwm-packet-loss | lwm-jitter-buffer | lwm-latency | lwm-packet-loss}
Syntax Description
Defaults
The voice quality parameter defaults are (in milliseconds): hwm-jitter-buffer 150, hwm-latency 300, hwm-packet-loss 10000, lwm-jitter-buffer 30, lwm-latency 300, and lwm-packet-loss 1000.
Command Modes
Global configuration
Command History
Usage Guidelines
The following parameters impact the quality of voice calls:
•
jitter buffer (storage area containing active call voice packets that have been received from the network and are waiting to be decoded and played)
•
packet loss (number of packets lost per 100000 packets for a given call)
•
latency (network delay in sending/receiving packets)
For good voice quality, the system should perform below the lwm values. As the values go higher, voice quality degrades. The system generates a report when the values go above the hwm levels. Set the hwm and lwm values sufficiently apart so that you receive reports on poor performance, but not so close together that you receive too much feedback.
Enter each parameter as a separate command.
Examples
The following examples show how the different parameters can be set to new values:
Router(config)# mgcp quality-thres hwm-jit 100Router(config)# mgcp quality-thres hwm-lat 250Router(config)# mgcp quality-thres hwm-pack 5000Router(config)# mgcp quality-thres lwm-jit 50Router(config)# mgcp quality-thres lwm-lat 200Router(config)# mgcp quality-thres lwm-pack 20Related Commands
mgcp request retries
To specify the number of times to retry sending the mgcp command, use the mgcp request retries global configuration command. To restore the default value, use the no form of this command.
mgcp request retries count
no mgcp request retries
Syntax Description
count
Specifies the number of times a Notify message is retransmitted to the Call Agent before the request is dropped. The valid range is 1 to 10.
Defaults
3 times
Command Modes
Global configuration
Command History
Usage Guidelines
This command applies to a trunking gateway.
Examples
The following example shows that the system will try to send the mgcp command 10 times before dropping the request:
Router(config)# mgcp request retries 10Related Commands
Command Descriptionmgcp request timeout
Specifies how long the system will wait for a reply to a request.
Starts the MGCP daemon.
mgcp request timeout
To specify how long the system waits for a response to a request, use the mgcp request timeout global configuration command. To restore the default value, use the no form of this command.
mgcp request timeout timeout
no mgcp request timeout
Syntax Description
timeout
Specifies the number of milliseconds to wait for a response to a request. Valid range is 1 to 10,000 (10 seconds).
Defaults
500 milliseconds
Command Modes
Global configuration
Command History
Examples
The following example shows that the system waits 40 milliseconds for a reply to a request:
Router(config)# mgcp request timeout 40Related Commands
Command DescriptionSpecifies the number of times to retry sending the mgcp command.
Starts the MGCP daemon.
mgcp restart-delay
To select the delay value sent in the RSIP graceful tear down, use the mgcp restart-delay global configuration command. To restore the default value, use the no form of this command.
mgcp restart-delay value
no mgcp restart-delay
Syntax Description
Defaults
0 seconds
Command Modes
Global configuration
Command History
Usage Guidelines
Use the restart value to send a restart in progress (RSIP) message indicating when the connection in the gateway will be torn down.
Examples
The following example shows how to set the restart delay to 30 seconds:
Router(config)# mgcp restart-delay 30Related Commands
Command DescriptionStarts the MGCP daemon.
Specifies the MGCP maximum waiting delay (MWD) after a restart.
mgcp sdp simple
To initiate a subset of the SDP protocol, use the mgcp sdp simple global configuration command. To return to the full set of SDP protocol fields, use the no form of this command.
mgcp sdp simple
no mgcp sdp simple
Syntax Description
There are no keywords or arguments for this command.
Defaults
no mgcp sdp simple
Command Modes
Controller configuration
Command History
Release Modification12.1(3)T
This command was added to MGCP.
12.2(11)T
This command was implemented on the Cisco AS5850 and integrated into Cisco IOS Release 12.2(11)T.
Usage Guidelines
When mgcp sdp simple is enabled, the gateway will not generate three SDP fields: time, session name, and other (username, session id, sdp version, network type, address type, and address). Certain call agents require this modified SDP protocol to send data through the network.
Examples
The following example shows how to configure the modified SDP protocol:
Router(config)# mgcp sdp simpleRelated Commands
mgcp vad
To set the default voice activity detection (VAD) parameter for MGCP, use the mgcp vad global configuration command. To disable the VAD parameter, use the no form of this command.
mgcp vad
no mgcp vad
Syntax Description
This command has no arguments or keywords.
Defaults
Disabled
Command Modes
Global configuration
Command History
Usage Guidelines
Use the MGCP voice activity detection (VAD) parameter to tell the MGCP gateway to turn silence suppression on or off.
Examples
The following example shows how to turn silence suppression on:
Router(config)# mgcp vadRelated Commands
show mgcp
To display MGCP configuration information, use the show mgcp EXEC command. This command does not have a no form.
show mgcp [connection | endpoint | statistics]
Syntax Description
Defaults
None
Command Modes
EXEC
Command History
Examples
Following are examples of the command formats and outputs for: show mgcp, show mgcp connection, show mgcp statistics, and show mgcp endpoint.
Router# show mgcpMGCP Admin State ACTIVE, Oper State ACTIVE - Cause Code NONEMGCP call-agent: 192.168.10.10 2302 Initial protocol service is MGCPmgcp block-newcalls DISABLEDMGCP dtmf-relay disabled for all codec typesMGCP modem passthru: CAMGCP request timeout 500, MGCP request retries 3MGCP gateway port: 2427, MGCP maximum waiting delay 3000MGCP restart delay 5, MGCP vad DISABLEDMGCP sdp simple DISABLED, MGCP cisco fgdos DISABLEDMGCP codec type g711ulaw, MGCP packetization period 20MGCP JB threshold lwm 30, MGCP JB threshold hwm 150MGCP LAT threshold lwm 150, MGCP LAT threshold hwm 300MGCP PL threshold lwm 1000, MGCP PL threshold hwm 10000MGCP playout mode is adaptive 60, 4, 200 in msecMGCP IP ToS low delay disabled, MGCP IP ToS high throughput disabledMGCP IP ToS high reliability disabled, MGCP IP ToS low cost disabledMGCP IP precedence 3, MGCP default package: trunk-packageMGCP supported packages: gm-package dtmf-package trunk-package rtp-package as-packagescript-package
Router# show mgcp connectionEndpoint Call_ID(C) Conn_ID(I) (P)ort (M)ode (S)tate (C)odec (E)vent[SIFL] (R)esult[EA]1. S0/DS1-0/1 C=103,23,24 I=0x8 P=16586,16634 M=3 S=4,4 C=5 E=2,0,0,2 R=0,02. S0/DS1-0/2 C=103,25,26 I=0x9 P=16634,16586 M=3 S=4,4 C=5 E=0,0,0,0 R=0,03. S0/DS1-0/3 C=101,15,16 I=0x4 P=16506,16544 M=3 S=4,4 C=5 E=2,0,0,2 R=0,04. S0/DS1-0/4 C=101,17,18 I=0x5 P=16544,16506 M=3 S=4,4 C=5 E=0,0,0,0 R=0,05. S0/DS1-0/5 C=102,19,20 I=0,6 P=16572,16600 M=3 S=4,4 C=5 E=2,0,0,2 R=0,06. S0/DS1-0/6 C=102,21,22 I=0x7 P=16600,16572 M=3 S=4,4 C=5 E=0,0,0,0 R=0,0Total number of active calls 6
Router# show mgcp statisticsUDP 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
The following example shows how endpoints are configured:
AS5300# show mgcp endpointT1/0 ds0-group 0 timeslots 1-24 type noneT1/1 ds0-group 0 timeslots 1-24 type noneT1/2 ds0-group 0 timeslots 1-24 type noneT1/3 ds0-group 0 timeslots 1-24 type noneRelated Commands
Debug Commands
This section documents the modified debug command. All other commands used with this feature are documented in the Cisco IOS Release 12.1 command reference publications.
debug mgcp
To enable debug traces for errors, events, packets, and parser, use the debug mgcp privileged EXEC command. To disable debugging output, use the no form of this command.
debug mgcp [all | errors | events | packets | parser]
no debug mgcp [all | errors | events | packets | parser]
Syntax Description
Defaults
Debugging for DRiP packets is not enabled.
Command Modes
EXEC
Command History
Examples
The following example illustrates the output for the debug mgcp all command:
Router# debug mgcp allRouter#20:54:13: MGC stat - 192.168.10.10, total=37, succ=28, failed=820:54:13: MGCP Packet received -CRCX 55560 s0/ds1-0/1 SGCP 1.1C: 78980M: sendrecvL: a:G.726-1620:54:13: -- mgcp_parse_packet() - call mgcp_parse_header- mgcp_parse_header()- Request Verb FOUND CRCX- mgcp_parse_packet() - out mgcp_parse_header- SUCCESS: mgcp_parse_packet()-MGCP Header parsing was OK- mgcp_parse_parameter_lines(), code_str:: 78980, code_len:2, str:1640150312- mgcp_parse_parameter_lines(str:C: 78980) -num_toks: 19- mgcp_parse_parameter_lines() check NULL str(78980), in_ptr(C: 78980)- mgcp_parse_parameter_lines() return Parse function inmgcp_parm_rules_array[1]- mgcp_parse_call_id(in_ptr: 78980)- SUCCESS: mgcp_parse_call_id()-Call ID string(78980) parsing is OK- mgcp_parse_parameter_lines(), code_str:: sendrecv, code_len:2, str:1640150312- mgcp_parse_parameter_lines(str:M: sendrecv) -num_toks: 19- mgcp_parse_parameter_lines() check NULL str(sendrecv), in_ptr(M: sendrecv)- mgcp_parse_parameter_lines() return Parse function inmgcp_parm_rules_array[6]- mgcp_parse_conn_mode(in_ptr: sendrecv)- mgcp_parse_conn_mode()- tmp_ptr:(sendrecv)- mgcp_parse_conn_mode(match sendrecv sendrecv- mgcp_parse_conn_mode(case MODE_SENDRECV)- SUCCESS: Connection Mode parsing is OK- mgcp_parse_parameter_lines(), code_str:: a:G.726-16, code_len:2,str:1640150312- mgcp_parse_parameter_lines(str:L: a:G.726-16) -num_toks: 19- mgcp_parse_parameter_lines() check NULL str(a:G.726-16), in_ptr(L:a:G.726-16)- mgcp_parse_parameter_lines() return Parse function inmgcp_parm_rules_array[5]- mgcp_parse_con_opts()- mgcp_parse_codecs()- SUCCESS: CODEC strings parsing is OK- SUCCESS: Local Connection optionparsing is OK- mgcp_val_mandatory_parms()20:54:13: - SUCCESS: mgcp_parse_packet()- END of Parsing20:54:13: MGCP msg 120:54:13: mgcp_search_call_by_endpt: endpt = s0/ds1-0/1, new_call = 120:54:13: slot=0,ds1=0,ds0=120:54:13: search endpoint - New call=1, callp 61C2813020:54:13: callp: 61C28130, vdbptr: 0, state: 020:54:13: mgcp_remove_old_ack:20:54:13: mgcp_idle_crcx: get capabilitypassthru is 320:54:13: process_request_ev- callp 61C28130, voice_if 61C281A420:54:13: process_detect_ev- callp 61C28130, voice_if 61C281A4process_signal_ev- callp 61C28130, voice_ifp 61C281A420:54:13: mgcp_process_quarantine_mode- callp 61C28130, voice_if 61C281A420:54:13: mgcp_process_quarantine_mode- new q mode: process=0, loop=020:54:13: mgcp_xlat_ccapi_error_code - ack_code_tab_index = 0,20:54:13: No SDP connection info20:54:13: mgcp_select_codec - LC option, num codec=1, 1st codec=520:54:13: mgcp_select_codec - num supprt codec=1120:54:13: mgcp_select_codec - LC codec list only20:54:13: codec index=0, bw=16000, codec=520:54:13: selected codec=5mgcp_get_pkt_period: voip_codec=2, pkt_period=0, calladjust_packetization_periodmgcp_get_pkt_period: voip_codec=2, pkt_period=10, after callingadjust_packetization_period20:54:13: selected codec 520:54:13: IP Precedence=6020:54:13: MGCP msg qos value=0mgcp_get_pkt_period: voip_codec=2, pkt_period=0,call adjust_packetization_periodmgcp_get_pkt_period: voip_codec=2, pkt_period=10, after callingadjust_packetization_periodmgcp_new_codec_bytes: voip_codec=2, pkt_period=10, codec_bytes=2020:54:13: callp : 61C28AE8, state : 2, call ID : 40, event : 5, minor evt:164013700820:54:13: MGCPAPP state machine: state = 2, event = 520:54:13: mgcp_call_connect: call_id=40, ack will be sent later.20:54:13: callp : 61C28AE8, new state : 3, call ID : 4020:54:14: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:54:14: MGCP Session Appl: ignore CCAPI event 22, callp 61C2813020:54:14: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:54:14: callp : 61C28130, state : 2, call ID : 39, event : 5, minor evt: 2020:54:14: MGCPAPP state machine: state = 2, event = 520:54:14: callp : 61C28130, new state : 3, call ID : 3920:54:14: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:54:14: callp : 61C28130, state : 3, call ID : 39, event : 6, minor evt: 2020:54:14: MGCPAPP state machine: state = 3, event = 620:54:14: call_id=39, mgcp_ignore_ccapi_ev: ignore 6 for state 320:54:14: callp : 61C28130, new state : 3, call ID : 3920:54:14: MGCP voice mode event20:54:14: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:54:14: callp : 61C28130, state : 3, call ID : 39, event : 17, minor evt: 020:54:14: MGCPAPP state machine: state = 3, event = 1720:54:14: mgcp_voice_mode_done(): callp 61C28130, major ev 17,minor ev 0mgcp_start_ld_timer: timer already initialized20:54:14: send_mgcp_create_ack20:54:14: map_mgcp_error_code_to_string error_tab_index = 0, protocol version:220:54:14: MGC stat - 1.13.89.3, total=37, succ=29, failed=820:54:14: Codec Cnt, 1, first codec 520:54:14: First Audio codec, 5, local encoding, 9620:54:14: -- mgcp_build_packet()-20:54:14: - mgcp_estimate_msg_buf_length() - 87 bytes needed for header- mgcp_estimate_msg_buf_length() - 125 bytes needed after checking parameterlines- mgcp_estimate_msg_buf_length() - 505 bytes needed after cheking SDP lines20:54:14: --- mgcp_build_parameter_lines() ---- mgcp_build_conn_id()- SUCCESS: Conn ID string building is OK- SUCCESS: Building MGCP Parameter lines is OK- SUCCESS: building sdp owner id (o=) line- SUCCESS: building sdp session name (s=) line- SUCCESS: MGCP message building OK- SUCCESS: END of buildingupdating lport with 242720:54:14: send_mgcp_msg, MGCP Packet sent --->200 55560I: 10v=0o=- 78980 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16444 RTP/AVP 96a=rtpmap:96 G.726-16/8000/1<---20:54:14: enqueue_ack: voice_if=61C281A4, ackqhead=0, ackqtail=0,ackp=61D753E8, msg=61D0001020:54:14:mgcp_process_quarantine_after_ack:ack_code=200mgcp_delete_qb_evt_q:cleanup QBevt q20:54:14: callp : 61C28130, new state : 4, call ID : 39The following example illustrates the output for the debug mgcp events command:
Router# debug mgcp eventsRouter#20:51:40: MGC stat - 192.168.10.10, total=27, succ=20, failed=620:51:40: MGCP Packet received -CRCX 55550 s0/ds1-0/1 SGCP 1.1C: 100M: sendonlyL: a:G.726-32, s:on20:51:40: MGCP msg 120:51:40: mgcp_search_call_by_endpt: endpt = s0/ds1-0/1, new_call = 120:51:40: slot=0,ds1=0,ds0=120:51:40: search endpoint - New call=1, callp 61C2813020:51:40: callp: 61C28130, vdbptr: 0, state: 020:51:40: mgcp_remove_old_ack:20:51:40: mgcp_idle_crcx: get capabilitypassthru is 320:51:40: process_request_ev- callp 61C28130, voice_if 61C281A420:51:40: process_detect_ev- callp 61C28130, voice_if 61C281A4process_signal_ev- callp 61C28130, voice_ifp 61C281A420:51:40: mgcp_process_quarantine_mode- callp 61C28130, voice_if 61C281A420:51:40: mgcp_process_quarantine_mode- new q mode: process=0, loop=020:51:40: mgcp_xlat_ccapi_error_code - ack_code_tab_index = 0,20:51:40: No SDP connection info20:51:40: mgcp_select_codec - LC option, num codec=1, 1st codec=320:51:40: mgcp_select_codec - num supprt codec=1120:51:40: mgcp_select_codec - LC codec list only20:51:40: codec index=0, bw=32000, codec=320:51:40: selected codec=3mgcp_get_pkt_period: voip_codec=4, pkt_period=0, calladjust_packetization_periodmgcp_get_pkt_period: voip_codec=4, pkt_period=10, after callingadjust_packetization_period20:51:40: selected codec 320:51:40: IP Precedence=6020:51:40: MGCP msg qos value=0mgcp_get_pkt_period: voip_codec=4, pkt_period=0,call adjust_packetization_periodmgcp_get_pkt_period: voip_codec=4, pkt_period=10, after callingadjust_packetization_periodmgcp_new_codec_bytes: voip_codec=4, pkt_period=10, codec_bytes=4020:51:40: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:40: MGCP Session Appl: ignore CCAPI event 22, callp 61C2813020:51:40: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:40: callp : 61C28130, state : 2, call ID : 31, event : 5, minor evt: 2020:51:40: MGCPAPP state machine: state = 2, event = 520:51:40: mgcp_call_connect: call_id=31, ack will be sent later.20:51:40: callp : 61C28130, new state : 3, call ID : 3120:51:40: callp : 61C28AE8, state : 2, call ID : 32, event : 5, minor evt: 020:51:40: MGCPAPP state machine: state = 2, event = 520:51:40: callp : 61C28AE8, new state : 3, call ID : 3220:51:40: callp : 61C28AE8, state : 3, call I 32, event : 6, minor evt: 020:51:40: MGCPAPP state machine: state = 3, event = 620:51:40: call_id=32, mgcp_ignore_ccapi_ev: ignore 6 for state 320:51:40: callp : 61C28AE8, new state : 3, call ID : 3220:51:41: MGCP voice mode event20:51:41: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:41: callp : 61C28130, state : 3, call ID : 31, event : 17, minor evt: 020:51:41: MGCPAPP state machine: state = 3, event = 1720:51:41: mgcp_voice_mode_done(): callp 61C28130, major ev 17,minor ev 0mgcp_start_ld_timer: timer already initialized20:51:41: send_mgcp_create_ack20:51:41: map_mgcp_error_code_to_string error_tab_index = 0, protocol version:220:51:41: MGC stat - 192.168.10.10, total=27, succ=21, failed=620:51:41: Codec Cnt, 1, first codec 320:51:41: First Audio codec, 3, local encoding, 96updating lport with 242720:51:41: send_mgcp_msg, MGCP Packet sent --->200 55550I: Cv=0o=- 100 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16434 RTP/AVP 96a=rtpmap:96 G.726-32/8000/1<---20:51:41: enqueue_ack: voice_if=61C281A4, ackqhead=0, ackqtail=0,ackp=61D75384, msg=61C385EC20:51:41:mgcp_process_quarantine_after_ack:ack_code=200mgcp_delete_qb_evt_q:cleanup QBevt q20:51:41: callp : 61C28130, new state : 4, call ID : 3120:51:41: MGC stat - 192.168.10.10, total=28, succ=21, failed=620:51:41: MGCP Packet received -CRCX 55551 s0/ds1-0/2 SGCP 1.1C: 100M: sendrecvL: a:G.726-32, s:onv=0o=- 100 0 IN IP4 191.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16434 RTP/AVP 96a=rtpmap:96 G.726-32/8000/120:51:41: MGCP msg 120:51:41: mgcp_search_call_by_endpt: endpt = s0/ds1-0/2, new_call = 120:51:41: slot=0,ds1=0,ds0=220:51:41: search endpoint - New call=1, callp 61F6238020:51:41: callp: 61F62380, vdbptr: 0, state: 020:51:41: mgcp_remove_old_ack:20:51:41: mgcp_idle_crcx: get capabilitypassthru is 320:51:41: process_request_ev- callp 61F62380, voice_if 61CDC9A820:51:41: process_detect_ev- callp 61F62380, voice_if 61CDC9A8process_signal_ev- callp 61F62380, voice_ifp 61CDC9A820:51:41: mgcp_process_quarantine_mode- callp 61F62380, voice_if 61CDC9A820:51:41: mgcp_process_quarantine_mode- new q mode: process=0, loop=020:51:41: mgcp_xlat_ccapi_error_code - ack_code_tab_index = 0,20:51:41: get_peer_info, type 1, proto 1, port 1643420:51:41: mgcp_select_codec - LC option, num codec=1, 1st codec=320:51:41: mgcp_select_codec - SDP list, num codec=1, 1st codec=320:51:41: mgcp_select_codec - num supprt codec=1120:51:41: mgcp_select_codec - peer's pref codec is ok =320:51:41: codec index=100000, bw=1000000, codec=0mgcp_get_pkt_period:voip_codec=4, pkt_period=0, call adjust_packetization_periodmgcp_get_pkt_period: voip_codec=4, pkt_period=10, after callingadjust_packetization_period20:51:41: selected codec 320:51:41: IP Precedence=6020:51:41: MGCP msg qos value=0mgcp_get_pkt_period: voip_codec=4, pkt_period=0,call adjust_packetization_periodmgcp_get_pkt_period: voip_codec=4, pkt_period=10, after callingadjust_packetization_periodmgcp_new_codec_bytes: voip_codec=4, pkt_period=10, codec_bytes=4020:51:41: callp : 61D4CC1C, state : 2, call ID : 34, event : 5, minor evt:164352089620:51:41: MGCPAPP state machine: state = 2, event = 520:51:41: mgcp_call_connect: call_id=34, ack will be sent later.20:51:41: callp : 61D4CC1C, new state : 3, call ID : 3420:51:41: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:41: MGCP Session Appl: ignore CCAPI event 22, callp 61F6238020:51:41: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:41: callp : 61F62380, state : 2, call ID : 33, event : 5, minor evt: 2020:51:41: MGCPAPP state machine: state = 2, event = 520:51:41: callp : 61F62380, new state : 3, call ID : 3320:51:41: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:41: callp : 61F62380, state : 3, call ID : 33, event : 6, minor evt: 2020:51:41: MGCPAPP state machine: state = 3, event = 620:51:41: call_id=33, mgcp_ignore_ccapi_ev: ignore 6 for state 320:51:41: callp : 61F62380, new state : 3, call ID : 3320:51:41: MGCP voice mode event20:51:41: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:41: callp : 61F62380, state : 3, call ID : 33, event : 17, minor evt: 020:51:41: MGCPAPP state machine: state = 3, event = 1720:51:41: mgcp_voice_mode_done(): callp 61F62380, major ev 17,minor ev 0mgcp_start_ld_timer: timer already initialized20:51:41: send_mgcp_create_ack20:51:41: map_mgcp_error_code_to_string error_tab_index = 0, protocol version:220:51:41: MGC stat - 192.168.10.10, total=28, succ=22, failed=620:51:41: Codec Cnt, 1, first codec 320:51:41: First Audio codec, 3, local encoding, 96updating lport with 242720:51:41: send_mgcp_msg, MGCP Packet sent --->200 55551I: Dv=0o=- 100 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16538 RTP/AVP 96a=rtpmap:96 G.726-32/8000/1<---20:51:41: enqueue_ack: voice_if=61CDC9A8, ackqhead=0, ackqtail=0,ackp=61D71C2C, msg=61CFF44820:51:41:mgcp_process_quarantine_after_ack:ack_code=200mgcp_delete_qb_evt_q:cleanup QBevt q20:51:41: callp : 61F62380, new state : 4, call ID : 3320:51:41: MGC stat - 192.168.10.10, total=29, succ=22, failed=620:51:41: MGCP Packet received -MDCX 55552 s0/ds1-0/1 SGCP 1.1C: 100I: CM: sendrecvL: a:G.726-32, s:onv=0o=- 100 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16538 RTP/AVP 96a=rtpmap:96 G.726-32/8000/120:51:41: MGCP msg 120:51:41: mgcp_search_call_by_endpt: endpt = s0/ds1-0/1, new_call = 020:51:41: slot=0,ds1=0,ds0=120:51:41: search endpoint - New call=0, callp 61C2813020:51:41: callp: 61C28130, vdbptr: 61C290AC, state: 420:51:41: mgcp_remove_old_ack:mgcp_modify_connection: callp 61C2813020:51:41: process_request_ev- callp 61C28130, voice_if 61C281A420:51:41: process_detect_ev- callp 61C28130, voice_if 61C281A4process_signal_ev- callp 61C28130, voice_ifp 61C281A420:51:41: mgcp_process_quarantine_mode- callp 61C28130, voice_if 61C281A420:51:41: mgcp_process_quarantine_mode- new q mode: process=0, loop=020:51:41: mgcp_select_codec - LC option, num codec=1, 1st codec=320:51:41: mgcp_select_codec - SDP list, num codec=1, 1st codec=320:51:41: mgcp_select_codec - num supprt codec=1120:51:41: mgcp_select_codec - peer's pref codec is ok =320:51:41: codec index=100000, bw=1000000, codec=020:51:41: MGCP msg qos value=020:51:41: get_peer_info, type 1, proto 1, port 1653820:51:41: mgcp_modify_connection: peer_addr=10D5902, peer_port=0->16538.20:51:41: call modify - codec change callp 61C28130, callio 31, await_ev 120:51:41: mgcp_modify_connection: conn_mode=3.20:51:41: mgcp_modify_conference: conf_id=11 callid1=31 callid2=32ccapiconference already exists20:51:41: mgcp_modify_connection - rtp change, callp 61C28AE8, callid 32,await_ev 220:51:41: xlate_ccapi_ev - Protocol is SGCP, change pkg=220:51:41: callp : 61C28130, state : 4, call ID : 31, event : 16, minor evt:164013700820:51:41: MGCPAPP state machine: state = 4, event = 1620:51:41: mgcp_call_modified - callp 61C28130, voice_callp 61C28130 voice_if61C281A4, await_ev 220:51:41: callp : 61C28130, new state : 4, call ID : 3120:51:41: callp : 61C28AE8, state : 4, call ID : 32, event : 16, minor evt: 020:51:41: MGCPAPP state machine: state = 4, event = 1620:51:41: mgcp_call_modified - callp 61C28AE8, voice_callp 61C28130 voice_if61C281A4, await_ev 120:51:41: mgcp_call_modified - SUCCESS20:51:41: map_mgcp_error_code_to_string error_tab_index = 0, protocol version:220:51:41: MGC stat - 1.13.89.3, total=29, succ=23, failed=620:51:41: send_mgcp_simple_ackupdating lport with 242720:51:41: send_mgcp_msg, MGCP Packet sent --->200 55552 OKThe following example illustrates the output for the debug mgcp packet command:
Router# debug mgcp packMedia Gateway Control Protocol packets debugging is onRouter#20:50:24: MGCP Packet received -DLCX 55544 * SGCP 1.120:50:24: send_mgcp_msg, MGCP Packet sent --->250 55544<---20:50:31: MGCP Packet received -CRCX 55545 s0/ds1-0/1 SGCP 1.1C: 100M: sendonlyL: a:G.726-32, s:on20:50:32: send_mgcp_msg, MGCP Packet sent --->200 55545I: Av=0o=- 100 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16468 RTP/AVP 96a=rtpmap:96 G.726-32/8000/1<---20:50:32: MGCP Packet received -CRCX 55546 s0/ds1-0/2 SGCP 1.1C: 100M: sendrecvL: a:G.726-32, s:onv=0o=- 100 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16468 RTP/AVP 96a=rtpmap:96 G.726-32/8000/120:50:32: send_mgcp_msg, MGCP Packet sent --->200 55546I: Bv=0o=- 100 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16386 RTP/AVP 96a=rtpmap:96 G.726-32/8000/1<---20:50:32: MGCP Packet received -MDCX 55547 s0/ds1-0/1 SGCP 1.1C: 100I: AM: sendrecvL: a:G.726-32, s:onv=0o=- 100 0 IN IP4 192.168.10.9s=Cisco SDP 0c=IN IP4 192.168.10.9t=0 0m=audio 16386 RTP/AVP 96a=rtpmap:96 G.726-32/8000/120:50:33: send_mgcp_msg, MGCP Packet sent --->200 55547 OKThe following example illustrates the output for the debug mgcp parser command:
Router# debug mgcp parserRouter#20:53:21: -- mgcp_parse_packet() - call mgcp_parse_header- mgcp_parse_header()- Request Verb FOUND CRCX- mgcp_parse_packet() - out mgcp_parse_header- SUCCESS: mgcp_parse_packet()-MGCP Header parsing was OK- mgcp_parse_parameter_lines(), code_str:: 78980, code_len:2, str:1640150312- mgcp_parse_parameter_lines(str:C: 78980) -num_toks: 19- mgcp_parse_parameter_lines() check NULL str(78980), in_ptr(C: 78980)- mgcp_parse_parameter_lines() return Parse function inmgcp_parm_rules_array[1]- mgcp_parse_call_id(in_ptr: 78980)- SUCCESS: mgcp_parse_call_id()-Call ID string(78980) parsing is OK- mgcp_parse_parameter_lines(), code_str:: sendrecv, code_len:2, str:1640150312- mgcp_parse_parameter_lines(str:M: sendrecv) -num_toks: 19- mgcp_parse_parameter_lines() check NULL str(sendrecv), in_ptr(M: sendrecv)- mgcp_parse_parameter_lines() return Parse function inmgcp_parm_rules_array[6]- mgcp_parse_conn_mode(in_ptr: sendrecv)- mgcp_parse_conn_mode()- tmp_ptr:(sendrecv)- mgcp_parse_conn_mode(match sendrecv sendrecv- mgcp_parse_conn_mode(case MODE_SENDRECV)- SUCCESS: Connection Mode parsing is OK- mgcp_parse_parameter_lines(), code_str:: a:G.726-16, code_len:2,str:1640150312- mgcp_parse_parameter_lines(str:L: a:G.726-16) -num_toks: 19- mgcp_parse_parameter_lines() check NULL str(a:G.726-16), in_ptr(L:a:G.726-16)- mgcp_parse_parameter_lines() return Parse function inmgcp_parm_rules_array[5]- mgcp_parse_con_opts()- mgcp_parse_codecs()- SUCCESS: CODEC strings parsing is OK- SUCCESS: Local Connection optionparsing is OK- mgcp_val_mandatory_parms()20:53:21: - SUCCESS: mgcp_parse_packet()- END of Parsing20:53:22: -- mgcp_build_packet()-20:53:22: - mgcp_estimate_msg_buf_length() - 87 bytes needed for header- mgcp_estimate_msg_buf_length() - 125 bytes needed after checking parameterlines- mgcp_estimate_msg_buf_length() - 505 bytes needed after cheking SDP lines20:53:22: --- mgcp_build_parameter_lines() ---- mgcp_build_conn_id()- SUCCESS: Conn ID string building is OK- SUCCESS: Building MGCP Parameter lines is OK- SUCCESS: building sdp owner id (o=) line- SUCCESS: building sdp session name (s=) line- SUCCESS: MGCP message building OK- SUCCESS: END of buildingRelated Commands
Glossary
Backhauling—A scheme, also called signal tunneling, where telephony signals are passed from a gateway to a separate control for processing. The gateway does not need to interpret the signaling information.
Call Agent—An intelligent entity in an IP telephony network which handles call control in an MGCP model voice over IP network. A call agent is also known as a media gateway controller (MGC).
CAS—Channel Associated Signaling.
DS0—64 kbps channel in a T1/E1 line.
DSP—Digital Signal Processor.
DTMF—Dual Tone Multi-Frequency.
FGD—Bellcore Feature Group D.
FGD-OS—Bellcore FGD Operator Services signaling.
FRF.11—Frame Relay Forum specification 11.
Hairpinning—An incoming PSTN call is looped back out onto the PSTN. This is done if the call cannot be delivered using IP. It may also be used by a trunking gateway to deliver a modem call to a NAS.
ISUP—ISDN User Part. This is a protocol used in SS7 signalling.
MGCP—Media Gateway Control Protocol.
MGC—Media Gateway Controller. Another term for Call Agent.
Media Gateway—Equipment that provides call handling between the PSTN or a PBX and a VoIP network or an NAS. The Media Gateway is controlled by a Call Agent via MGCP.
Media Gateway Controller—Another term for Call Agent.
NAS—Network Access Server. This is an MGCP media gateway that provides a modem interface for accessing an IP network.
PRI—ISDN primary rate interface.
PSTN—Public Switched Telephone Network.
Residential Gateway (RGW)—Customer premises equipment running XGCP that has connections to the VoIP network and connections to user telephony equipment.
RSIP—Restart In Progress. RSIP is a startup message sent by the gateway to appropriate call agents and endpoints when MGCP is activated in the gateway and when endpoints are taken out of service or brought back into service.
RTP—Real-time Transport Protocol.
SGCP—Simple Gateway Control Protocol.
SS7—Signaling System 7.
Trunking Gateway (TGW)—An XGCP media gateway that provides call handling between the PSTN and a VoIP network.
VAD—Voice Activity Detector. A feature where a voice data packet is not generated when the voice detector determines that no voice is present.
VoIP—Voice over Internet Protocol.
XGCP—SGCP or MGCP Protocol.

