Professional Documents
Culture Documents
Topology Diagram
Scenario
In this lab, you will configure Cisco Unified Call Manager Express using the IOS
command line. You will install 2 Cisco IP Phone 7960 Series and have one
phone call the other.
This lab uses Cisco’s newest version of Cisco Unified Call Manager Express at
the time of this writing (CME 4.0(2)) which was tested using Cisco IOS Release
12.4(9)T1 running on a Cisco 2800 Series router. The IP Voice image is
required in order to be able to manipulate codecs.
1-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
Step 2: Configure router for phone firmware
Note: Option 150 is used to specify the TFTP server address from which the
Cisco Unified IP Phone downloads the image configuration file.
Step 4: Configure phones to receive correct time and timezone for Daylight
Savings
Daylight Savings for Melbourne Australia begins on the First Sunday in October
at 02:00 and ends on the First Sunday in April at 02:00. This is set for each year
hence is recurring.
R1(config)#clock summertime EST recurring 1 Sunday October 02:00 1 Sunday
April 02:00
2-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
Step 5: Configure Router Telephony Service
Cisco IP phones rely on Call Manager or Call Manager Express primarily during
their boot sequence and dialing procedure to provide configuration and
directory services.
Since there are two Ip Phones, configure the maximum number of phones to be
2 using the max-ephones number command. Configure the maximum number
of directory numbers to be 10 using max-dn number. Later in the lab exercise,
you will demonstrate what the configuration of ephones and directory numbers
represent.
R1(config-telephony)# max-ephones 2
R1(config-telephony)# max-dn 10
3-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
R1(config-telephony)# keepalive 15
Configure a system message using the system message line command. This
line will appear on phones associated with the CME.
R1(config-telephony)# system message Cisco VOIP
Next, tell the router to generate the configuration files for phones that associate
with the CME using the create cnf-files command. It may take a couple
minutes for the configuration process to be enabled.
R1(config-telephony)# create cnf-files
Finally, configure the source address for SCCP using the ip source address
address port port command. Use the local Fast Ethernet address with a port
number of 2000.
R1(config-telephony)# ip source-address 172.16.10.1 port 2000
R1(config-telephony)# load 7960-7940 P00308000500
R1(config-telephony)# time-format 24
R1(config-telephony)# date-format dd-mm-yy
At the logical layer of the VoIP model, a directory number represents a logical
phone with an associated phone number and name (label). A Cisco IP phone
can be associated with more than one directory number at a time, effectively
making it a multi-line device with each line possessing its own directory number.
The soft buttons on an IP phone each represent a single line. To configure a
directory number, use the global configuration ephone-dn tag command. Use a
tag of 1 for the first phone.
R1(config)# ephone-dn 1
4-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
R1(config-ephone-dn)# ephone-dn 2
R1(config-ephone-dn)# number 5002
R1(config-ephone-dn)# name Host B
Before configuring the phones on the router, you will need to find out the MAC
addresses of the phones. You will find the MAC address of the phone by turning
the phone upside down and the MAC address will be printed as a hexadecimal
string on a sticker in the middle at the bottom of the phone.
Write down the MAC addresses for both phones, since you will need them in
this step.
Note: Your MAC addresses will be different from the addresses shown in the
sample commands.
On R1, enter the ephone configuration prompt by typing the ephone tag
command in global configuration mode.
R1(config)# ephone 1
Associate the MAC address with this ephone using the mac-address address
command. The address must be in the format HHHH.HHHH.HHHH.
R1(config-ephone)# mac-address 0002.B3CE.72A3
Use the type type command to configure the type of phone. Since you are
configuring Cisco IP phones 7960 series, use 7960 as the phone type.
R1(config-ephone)# type 7960
Assign the first button on the phone to directory number 1 using the button line
command. The button command assigns buttons to phone lines, as well as
determines the type of ringer assigned to that phone line. The format for the
button command we will use is “1:1”. The first 1 indicates the first button. The
colon indicates a normal ringer. The second 1 represents directory number 1,
previously configured with the ephone-dn 1 command.
R1(config-ephone)# button 1:1
5-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
Step 8: Debug ephone registration
Before running CIPC, enable debugging for ephone registration on R1 using the
debug ephone register command. This will let you see ephone registration
output.
R1# debug ephone register
EPHONE registration debugging is enabled
On R1, look at the debug output generated when R1 registered. The output is
rather lengthy, so not all of it is included here.
*Jan 30 06:47:37.155: New Skinny socket accepted [2] (0 active)
*Jan 30 06:47:37.155: sin_family 2, sin_port 1034, in_addr 172.16.10.50
*Jan 30 06:47:37.155: skinny_add_socket 2 172.16.10.50 1034
*Jan 30 06:47:37.211: %IPPHONE-6-REG_ALARM: 25: Name=SEP0002B3CE72A3 Load=
2.0.2.0 Last=Initialized
*Jan 30 06:47:37.211:
Skinny StationAlarmMessage on socket [1] 172.16.10.50
*Jan 30 06:47:37.211: severityInformational p1=0 [0x0] p2=0 [0x0]
*Jan 30 06:47:37.211: 25: Name=SEP0002B3CE72A3 Load= 2.0.2.0 Last=Initialized
*Jan 30 06:47:37.411: ephone-(1)[1] StationRegisterMessage (0/0/4) from
172.16.10.50
*Jan 30 06:47:37.411: ephone-(1)[1] Register StationIdentifier DeviceName
SEP0002B3CE72A3
*Jan 30 06:47:37.411: ephone-(1)[1] StationIdentifier Instance 0 deviceType
30016
*Jan 30 06:47:37.411: ephone-1[-1]:stationIpAddr 172.16.10.50
*Jan 30 06:47:37.411: ephone-1[-1]:maxStreams 3
*Jan 30 06:47:37.411: ephone-1[-1]:protocol Ver 0x84000006
*Jan 30 06:47:37.411: ephone-1[-1]:phone-size 4700 dn-size 568
*Jan 30 06:47:37.411: ephone-(1) Allow any Skinny Server IP address
172.16.10.1
*Jan 30 06:47:37.411: ephone-1[-1]:Found entry 0 for 0002B3CE72A3
*Jan 30 06:47:37.411: ephone-1[-1]:socket change -1 to 1
*Jan 30 06:47:37.411: ephone-1[-1]:FAILED: CLOSED old socket -1
*Jan 30 06:47:37.411: ephone-1[1]:phone SEP0002B3CE72A3 re-associate OK on
socket [1]
*Jan 30 06:47:37.411: %IPPHONE-6-REGISTER: ephone-1:SEP0002B3CE72A3
IP:172.16.10.50 Socket:1 DeviceType:Phone has registered.
<OUTPUT OMITTED>
You may disable debugging using undebug all, or leave it on if you wish to see
the other phone as well (just remember to undebug when you are done with the
lab).
Speed dial allows a phone user to quickly dial a number from a list. For IP phones, the
first entries that are set up occupy any unused line buttons and are invoked when a user
presses one of these line buttons. Subsequent entries are invoked when a phone user
dials the speed-dial code (tag) and the Abbr soft key.
R1(config)# ephone 1
R1(config-ephone)# speed-dial 1 5002 Label “Host B”
R1(config-ephone)#restart
R1(config-ephone)# ephone 2
6-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
R1(config-ephone)# speed-dial 1 5001 Label “Host A”
R1(config-ephone)#restart
The restart command will cause the phone to download the new configuration.
Cisco Unified IP Phones have two default ring types: Chirp1 and Chirp2.
Cisco Unified CME also supports customized ring tones using pulse code modulation
(PCM) files.
An XML file called RingList.xml specifies the ring tone options available for the default
ring on an IP phone registered to Cisco Unified CME. An XML file called
DistinctiveRingList.xml specifies the ring tones available on each individual line
appearance on an IP phone registered to Cisco Unified CME.
The version of the IOS we are using has 26 different ring tones including the two default
ring tones. These are found in the two XML files listed above. Use the tftp-server
command to enable access to the files.
7-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
Reboot the IP phones. After reboot, the IP phones download the XML and ring tone
files. Select the customized ring by pressing the Settings button followed by the Ring
Type menu option on a phone.
Step 10: Change the Codec Being Used (OPTIONAL - Requires a version of the
IOS that has Call Manager Express (CME))
There are multiple codecs that can be used for VOIP. A codec is the method
used to encode and decode between analog (sound) voice data and a digital
format.
End the call. On R1, under both ephone prompts, use the codec type command
to change the codec from the default, g711ulaw, to g729r8.
R1(config)# ephone 1
R1(config-ephone)# codec g729r8
R1(config-ephone)# ephone 2
R1(config-ephone)# codec g729r8
Notice the codecs listed now on the phone. G.729 only uses 8Kb of bandwidth,
versus G.711, which uses 64Kb. Of course, there must be a tradeoff to
decrease bandwidth usage, which in this case is sound quality. Once you are
done observing the statistics, you may hang up the call.
Final Configurations
8-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc
tftp-server flash:Chime.raw
tftp-server flash:Classic1.raw
tftp-server flash:Classic2.raw
tftp-server flash:ClockShop.raw
tftp-server flash:Drums1.raw
tftp-server flash:Drums2.raw
tftp-server flash:FilmScore.raw
tftp-server flash:HarpSynth.raw
tftp-server flash:Jamaica.raw
tftp-server flash:KotoEffect.raw
tftp-server flash:MusicBox.raw
tftp-server flash:Piano1.raw
tftp-server flash:Piano2.raw
tftp-server flash:Pop.raw
tftp-server flash:Pulse1.raw
tftp-server flash:Ring1.raw
tftp-server flash:Ring2.raw
tftp-server flash:Ring3.raw
tftp-server flash:Ring4.raw
tftp-server flash:Ring5.raw
tftp-server flash:Ring6.raw
tftp-server flash:Ring7.raw
tftp-server flash:Sax1.raw
tftp-server flash:Sax2.raw
tftp-server flash:Vibe.raw
!
telephony-service
max-ephones 2
max-dn 10
ip source-address 172.16.10.1 port 2000
system message Cisco VoIP
time-format 24
date-format dd-mm-yy
keepalive 15
max-conferences 8 gain -6
moh music-on-hold.au
transfer-system full-consult
create cnf-files version-stamp Aug 12 2010 13:29:30
!
ephone-dn 1 dual-line
ring internal
number 5001
name Host A
!
ephone-dn 2 dual-line
ring internal
number 5002
name Host B
!
ephone 1
mac-address 000F.F7C0.3506
speed-dial 1 5002 label "Host B"
type 7960
button 1:1
!
ephone 2
mac-address 0011.2013.6C74
speed-dial 1 5001 label "Host A"
type 7960
button 1:2
!
ntp master
end
9-9 CCNP: Optimizing Converged Networks v5.0 - Lab 2-1 Copyright © 2007, Cisco Systems, Inc