Table Of Contents
Configuring the Cisco MGCP IP Phone
Using Telnet to Connect to Your Cisco MGCP IP Phone
Using the MGCP Phone Settings Button
Configuring the Cisco MGCP IP Phone
This chapter describes supported features on the Cisco MGCP phone and information about how to configure some features. Consult your call agent (CA) documentation for additional configuration information.
This chapter includes the following sections:
•Using Telnet to Connect to Your Cisco MGCP IP Phone
•Using the MGCP Phone Settings Button
The Cisco MGCP IP phone can be configured using the following methods:
•The CA configures the phone through MGCP commands.
•The MGCP phone communicates with a Dynamic Host Configuration Protocol (DHCP) server to obtain configuration information at startup.
•You configure some settings by using telnet to connect to your Cisco MGCP IP phone and enter commands in a terminal window. You can also connect an ASCII terminal to your phone's console port to enter the same commands.
•Configuration files on the TFTP server that specify settings are downloaded by your phone at startup.
•You configure some features using the settings button on your MGCP phone.
Note This document does not describe configuration of the Cisco MGCP IP phone using the CA because configuration procedures depend on the CA's capabilities and vary by vendor.
MGCP Commands
The Cisco MGCP IP phone supports the MGCP commands shown in Table 4-1:
Using Telnet to Connect to Your Cisco MGCP IP Phone
You can use Telnet to view information about your Cisco MGCP IP phone and enter some configuration commands. Only two Telnet sessions can be open at any time, and the Cisco MGCP IP phone cannot originate a Telnet session to another address.
Table 4-1 shows the available commands:
Using Configuration Files
You can use the following two configuration files to specify settings for your Cisco MGCP IP phone:
•MGCDefault.cnf—The default configuration file. Use this file to configure the call agent address, time, and other global parameters.
•MGCmacaddress.cnf—The user configuration file. The MAC address specifies the hardware address of the Cisco MGCP IP phone and is not configurable. Use this file to specify the phone prompt, phone password, and time zone (for example, if a CA covers an area with multiple time zones). You can also specify a different set of eXtensible Markup Language (XML) cards for the phone. For example, you may want to control which XML services are available on each phone; managers may have different features on their phones than employees do. You can also specify whether you want a specific phone to use a different image version.
Note The values in the user configuration file take precedence because that file is processed last. Values in this file override what is in the default configuration file.
If you use configuration files, the OS79XX.TXT file no longer controls the image used by the phone. The OS79XX.TXT file controls the image only if you change protocols (SIP to MGCP, or MGCP to SIP). Image version and upgrading is done through the image_version configuration parameter in the configuration files.
Upon startup, the phone attempts to download both files. If neither file exists, a TFTP timeout occurs after approximately 9 seconds per file. If the files exist, they are parsed and processed.
Note Both files can use the same values or contain empty values. If the files have empty values, the Cisco MGCP IP phone boots using the default values for some of the parameters.
These configuration files are not required; however, it takes longer (approximately 20 seconds) for the Cisco MGCP IP phone to boot because it is waiting for the timeout on the TFTP server.
Table 4-2 shows the default MGCP IP Phone configuration file parameters in alphabetical order. All parameters are optional; the phone boots with the default or existing flash configuration. Only image_version is required to upgrade to a new image.
Table 4-2 Default MGCP Configuration File Parameters
Parameter Descriptiondate_format
The format to use for dates. Valid values are:
•M/D/Y—Month, day, year
•D/M/Y—Day, month, year
•Y/M/D—Year, month, day
•Y/D/M—Year, day, month
The default is M/D/Y.
dst_auto_adjust
Whether or not daylight saving time (DST) is automatically adjusted on the phones. Valid values are 0 (disable automatic DST adjustment) or 1 (enable automatic DST adjustment). The default is 1.
dst_offset
Offset from the phone's time when DST is in effect. When DST is over, the specified offset is no longer applied to the phone's time. Valid values are the same as for the time_zone parameter.
dst_start_day
Day of the month on which DST begins.
Valid values are 1 through 31 for the days of the month or 0 when specifying relative DST to specify that this field be ignored and that the value in the dst_start_day_of_week parameter be used instead.
dst_start_day_of_week
Day of the week on which DST begins.
Valid values are Sunday or Sun, Monday or Mon, Tuesday or Tue, Wednesday or Wed, Thursday or Thu, Friday or Fri, Saturday or Sat, or Sunday or Sun or 1 through 7 with 1 being Sunday and 7 being Saturday. When specifying the name of the day, the value is not case-sensitive. In the United States, the default value is Sunday.
dst_start_month
Month in which DST starts. Valid values are January, February, March, April, May, June, July, August, September, October, November, and December or 1 through 12 with January being 1 and December being 12. When specifying the name of a month, the value is not case-sensitive. In the United States, the default value is April.
dst_start_time
Time of day on which DST begins. Valid values are hour/minute (02/00) or hour (02:00). In the United States, the default value is 02:00.
dst_start_week_of_month
Week of month in which DST begins.
Valid values are 1 through 6 and 8 with 1 being the first week and each number thereafter being subsequent weeks and 8 specifying the last week in the month regardless of which week the last week is. In the United States, the default value is 1.
dst_stop_day
Day of the month on which DST ends.
Valid values are 1 through 31 for the days of the month or 0 when specifying relative DST to specify that this field be ignored and that the value in the dst_stop_day_of_week parameter be used instead.
dst_stop_day_of_week
Day of the week on which DST ends.
Valid values are Sunday or Sun, Monday or Mon, Tuesday or Tue, Wednesday or Wed, Thursday or Thu, Friday or Fri, Saturday or Sat, or Sunday or Sun or 1 through 7 with 1 being Sunday and 7 being Saturday. When specifying the name of the day, the value is not case-sensitive. In the United States, the default value is Sunday.
dst_stop_month
Month in which DST ends. Valid values are January, February, March, April, May, June, July, August, September, October, November, and December or 1 through 12 with January being 1 and December being 12. When specifying the name of a month, the value is not case-sensitive. In the United States, the default value is October.
dst_stop_time
Time of day on which DST ends. Valid values are hour/minute (02/00) or hour (02:00). In the United States, the default value is 02:00.
dst_stop_week_of_month
Week of month in which DST ends.
Valid values are 1 through 6 and 8 with 1 being the first week and each number thereafter being subsequent weeks and 8 specifying the last week in the month regardless of which week the last week is. In the United States, the default value is 8.
dtmf_avt_payload
Payload type for AVT packets. Possible range is 96 to 127. If the value specified exceeds 127, the phone will default to 101.
image_version
Firmware version that the Cisco MGCP IP phone should run. Enter the name of the image version (as it is released by Cisco). Do not enter the extension. You cannot change the image version by changing the file name because the version is also built into the file header. Trying to change the image version by changing the file name will cause the firmware to fail when it compares the version in the header against the file name.
mgcp_gw_controller
IP address of CA.
mgcp_input_port
Port on which the phone listens. The default is 2427.
mgcp_output_port
Port on which the CA listens. The default is 2427.
phone_password
Password to be used for console or telnet access. The default password is cisco.
phone_prompt
Prompt to be displayed when using telnet or console access. The default phone prompt is "MGCP Phone."
sntp_mode
Mode in which the phone will listen for the SNTP server. Valid values are unicast, multicast, anycast, or directedbroadcast. See
sntp_server
IP address of the SNTP server from which the phone will obtain time data. If the SNTP server is set to 0 or not set, the MGCP software defaults the SNTP server address to the address of the CA.
See Table 4-3 for more information.
tftp_cfg_dir
Path to the TFTP subdirectory in which phone-specific configuration files are stored.
Note Exists only in the MGCDefault.cnf file.
time_format_24hr
Whether a 12 or 24-hour time format is displayed by default on the phones' user interface. Valid values are:
•0—The 12-hour format is displayed by default but can be changed to a 24-hour format via the phone's user interface.
•1—The 24-hour format is displayed by default but can be changed to a 12-hour format via the phone's user interface.
•2-The 12-hour format is displayed and cannot be changed to a 24-hour format via the phone's user interface.
•3—The 24-hour format is displayed and cannot be changed to a 12-hour format via the phone's user interface.
The default value is 1.
time_zone
Time zone in which the phone is located. Valid values are hour/minute, -hour/minute, +hour/minute, hour, -hour, +hour, PST, MST, CST, or EST. (Time zone abbreviations are case sensitive and must be in all capital letters.)
tos_media
Type of Service (ToS) level for the media stream being used. Valid values are:
•0 (IP_ROUTINE)
•1 (IP_PRIORITY)
•2 (IP_IMMEDIATE)
•3 (IP_FLASH)
•4 (IP_OVERIDE)
•5 (IP_CRITIC)
The default is 5.
use_mac_name
Specifies whether to use the IP address or MAC address in the endpoint name. By default, the IP address is used. Valid values are:
•0—IP address
•1—MAC address
xml_card_dir
Specifies the directory to use for retrieving the XML cards file. The base for the directory is the base TFTP server directory. This field is limited to 64 characters.
xml_card_file
The file name of the XML cards. This field is limited to 20 characters.
Table 4-3 lists the actions that take place when a valid IP address is specified in the sntp_server parameter.
Example 4-1 Sample MGCP Default Configuration File
Basic MGCP Default Config File Options## Any or All of these options can be configured# in the user config file (MGC<MAC ADDR>.cnf).# The user config file options override any options# specified here in the Default Config File.# :sample user config file name: MGC003E362FE92.cnf# image_version - specifies which image version should# be on the phone. This is used to upgrade from an# MGCP image to a different MGCP image. The OS79XX.TXT# file is only used to switch protocols (ie. SIP to MGCP).image_version: P0M3-03-0-00# tftp_cfg_dir - specifies the directory to use for the# retrieving the MGC<MAC ADDR>.cnf file. The base# for the directory is the base TFTP Server directory.# tftp_cfg_dir is limited to 64 characters.tftp_cfg_dir : ""# phone_password - specifies the password used to telnet# to the phone. phone_password is limited to 32 characters.# phone_prompt - specifies the prompt the phone will display# when logged in from the console or telnet session.# phone_prompt is limited to 16 characters.phone_password : "cisco"phone_prompt : "MGCP Phone"# sntp_mode - specifies the mode the SNTP server uses# (unicast, multicast, anycast, directedbroadcast)# sntp_server - specifies the address of the SNTP serversntp_mode : Unicastsntp_server : "172.18.198.13"# The following parameters setup time zone and# daylight savings settings.# Supported time zones are :# EST, AST, NST, BST, AT, WAT, GMT, HST, YSTtime_zone : ESTdst_offset : 1dst_start_month : "April"dst_start_day : 0dst_start_day_of_week : "Sun"dst_start_week_of_month : 1dst_start_time : 2dst_stop_month : "Oct"dst_stop_day : 0dst_stop_day_of_week : "Sun"dst_stop_week_of_month : 8dst_stop_time : 2dst_auto_adjust : 1# Date and Time format displays# time_format_24hr (1 - yes, 0 - 12 hours format)# date_format (M/D/Y, D/M/Y, Y/M/D, Y/D/M)time_format_24hr : 1date_format : M/D/Y# MGCP Call Agent Information# mgcp_gw_controller - address of call agent# mgcp_input_port - port the phone listens on# mgcp_output_port - port the call agent listens onmgcp_gw_controller : 172.18.198.13mgcp_input_port : 2427mgcp_output_port : 2727# xml_card_dir - specifies the directory to use for the# retrieving the xml cards file. The base# for the directory is the base TFTP Server directory.# xml_card_dir is limited to 64 characters.# xml_card_file - specifies the file name of the XML Cards# file. xml_card_file is limited to 20 characters.xml_card_dir : ""xml_card_file : "CARD.XML"# tos_media - specifies the value to be used for the tos bits.# valid range is 0-7.tos_media: 7#use_mac_name - specifies whether to use the IP address# or MAC Address in the endpoint name. The default is# to use the IP address. Valid values are :# [ 0 - IP Address (default) 1 - Mac Address ]use_mac_name: 0# End of Basic MGCP Default Config File.Using the MGCP Phone Settings Button
You can configure several features using the settings button on your MGCP phone. Some of these features may differ depending on the vendor CA you are using. To configure MGCP features, perform the following tasks:
Step 1 Unlock the phone by pressing **#. The lock icon changes to show that the phone is unlocked. If you do not unlock the phone, you cannot change the phone settings.
Step 2 Press the settings button and use the arrow keys to scroll down to Network Configuration. Choose Select.
Step 3 You can use this menu to configure the following items:
•IP address
•Subnet mask
•Default router
•DNS
•TFTP server address
Note You must disable DHCP before you can configure these items. If you do not, the phone does not allow you to override the values. To disable DHCP, in the Network Configuration screen, scroll down to DHCP Enabled and select No.
Step 4 To configure additional items, return to the main settings menu, then scroll to MGCP configuration and choose select. This allows you to configure the following items:
•CA IP address
•Phone input port
•Phone output port
Note Your call agent or service provider might offer additional phone features and capabilities not described in this chapter. Refer to the documentation from your call agent or service provider for instructions on using those features.