Configuring an MGCP Residential Gateway
Router(config)#ccm-manager mgcp Router(config)#mgcp Router(config)#mgcp call-agent 172.20.5.20 Router(config)#voice-port 1/0/0 Router(config-voiceport)#voice-port 1/0/1 Router(config-voiceport)#exit Router(config)#dial-peer voice 1 pots Router(config-dial-peer)#application MGCPAPP Router(config-dial-peer)#port 1/0/0 Router(config-dial-peer)#exit Router(config)#dial-peer voice 2 pots Router(config-dial-peer)#application MGCPAPP Router(config-dial-peer)#port 1/0/1
|
MGCP is invoked with the mgcp command. If the call agent expects the gateway
to use its default port (UDP 2427), the mgcp
command is used without any parameters. If the call agent requires a different
port, then the port must be configured as a parameter in the mgcp command. For example, mgcp 5036 tells the gateway to use port 5036 instead
of the default port.
At least one mgcp call-agent
command is required below the mgcp command.
This command indicates the location of the call agent. The command identifies
the call agent by an IP address or a host name. Using a host name adds a measure
of fault tolerance in a network that has multiple call agents. When the gateway
asks the DNS for the IP address of the call agent, the DNS can provide more than
one address, in which case the gateway can use either one. If multiple instances
of the mgcp call-agent command are configured,
the gateway uses the first call agent to respond.
When the parameters of the MGCP gateway are configured, the
active voice ports (endpoints) are associated with the MGCP. Dial peer 1
illustrates an application MGCPAPP subcommand.
This command binds the voice port (1/0/0 in
this case) to MGCP. Also, notice that the dial peer does not have a destination
pattern. A destination pattern is not used because the relationship between the
dial number and the port is maintained by the call agent.
Note
The ccm-manager-mgcp command
is required only if the call agent is a Cisco Unified CallManager. Also, in some
recent versions of the Cisco IOS, the application
MGCPAPP subcommand has been replaced with the service mgcp command.
Example 6-13 illustrates
the configuration of a trunk gateway.