Cisco Voice Guru

CCIE Voice Study Resources for those who have forsaken free-time and sanity.

Sample CUCME SIP Configuration

with one comment

This post attempts to lay out the basic commands needed for a functional CUCME SIP system.  I pulled this configuration off a Cisco TechNote and added my comments inline in red.  For those of you following my blog and also studying for the lab, do you see any commands that may be missing?

CME-SIP#show running-config
Building configuration…

Current configuration : 6227 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME-SIP
!
boot-start-marker
boot-end-marker
!
logging buffered 999999
no logging console
enable password cisco
!
no aaa new-model
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.10
ip dhcp excluded-address 192.168.10.1 192.168.10.10
!
ip dhcp pool data
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
!
ip dhcp pool voice
network 192.168.10.0 255.255.255.0
option 150 ip 192.168.10.1
default-router 192.168.10.1
!
!
no ip domain lookup
multilink bundle-name authenticated
!
!
!
voice service voip
allow-connections sip to sip [## Required for SIP to SIP calls]
sip
registrar server expires max 1200 min 300
bind both source-interface Vlan192 [## Binds media/control signaling to interface defined in "voice register global"]
!
!
!
!
!
voice register global
mode cme [## Without this command, CUCME will function in SRST mode]
source-address 192.168.10.1 port 5060
max-dn 20
max-pool 10
load 7970 SIP70.8-2-1S
load 3911 SIP3951.8-0-2-9
authenticate register [## Necessary if some phones are on remote subnet]
authenticate realm cisco.com
voicemail 100 [## Defines voicemail pilot number that is dialed when pressing message key]
tftp-path flash:
create profile sync 0000589556325309 [## Magic command.  Enter this after EVERY change!]
!
voice register dn  1
number 101
call-forward b2bua noan 100 timeout 20 [## CUE is setup as a B2BUA connected via SIP dial-peer]
allow watch [## Allows phone line to be monitored by a watcher in a presence service]
name Phone1 [## Configures caller ID that is sent to other phones and over dial-peers]
label 4085251001 [## Configures line label on physical phone]
!
voice register dn  2
number 102
call-forward b2bua noan 100 timeout 20
allow watch
name Phone2
label 4085251002
!
voice register dn  3
number 103
call-forward b2bua noan 100 timeout 20
allow watch
name Phone3
label 4085251003
!
voice register dn  4
number 104
call-forward b2bua noan 100 timeout 20
allow watch
name Phone4
label 4085251004
!
voice register pool  1
id mac 0016.47CD.9BD7
type 7970
number 1 dn 1 [## Without this, I've seen phones experience registration issues]
presence call-list [## Enables BLF monitoring that appear in call lists and directories on this phone]
dtmf-relay sip-notify
username user1 password cisco [## Required for "authenticate register" command]
codec g711ulaw
blf-speed-dial 2 102 label “Phone2″ [## Enables BLF monitoring of a number associated with a speed-dial number on the phone]
blf-speed-dial 3 103 label “3911-1″
blf-speed-dial 4 104 label “3911-2″
!
voice register pool  2
id mac 0014.6948.1D52
type 7970
number 1 dn 2
dtmf-relay sip-notify
username user2 password cisco
codec g711ulaw
!
voice register pool  3
id mac 001A.A11B.4FCE
type 3911
number 1 dn 3
dtmf-relay sip-notify
username user3 password cisco
codec g711ulaw
!
voice register pool  4
id mac 001A.A11B.500E
type 3911
number 1 dn 4
dtmf-relay sip-notify
username user4 password cisco
codec g711ulaw
!
voice hunt-group 1 parallel
final 100
list 102,103,104
pilot 180
!
!
!
!
voice-card 0
!
!
!
archive
log config
hidekeys
!
!
!
interface Loopback 0  [## Local loopback used to connect to CUE ServiceEngine (see below)]
ip address 10.1.10.2 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Service-Engine0/0 [## Cisco Unity Express module]
ip unnumbered Loopback0
service-module ip address 10.1.10.1 255.255.255.0
service-module ip default-gateway 10.1.10.2
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/3/0 [## Best practice for ESW module on a router]
description 7970 Phone
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/1
description 7970 Phone
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/2
description 3911 Phone
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/3
description 3911 Phone
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/4
description Phone
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/5
description Phone
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/6
description Phone
switchport access vlan 192
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/7
description Phone
switchport access vlan 192
switchport trunk native vlan 100
switchport mode trunk
switchport voice vlan 192
spanning-tree portfast
!
interface FastEthernet0/3/8
switchport access vlan 192
!
interface Vlan1
no ip address
!
interface Vlan100
ip address 10.10.10.1 255.255.255.0
!
interface Vlan192
ip address 192.168.10.1 255.255.255.0
!
ip route 10.1.10.1 255.255.255.255 Service-Engine0/0 [## Static route from local loopback to CUE ServiceEngine]
!
!
ip http server [## Allows web-based CUCME GUI]
!
!
!
tftp-server flash:BOOT3951.0-0-0-9.zz
tftp-server flash:SIP3951.8-0-2-9.zz
tftp-server flash:DSP3951.0-0-0-1.zz
tftp-server flash:SIP3951.8-0-2-9.loads
tftp-server flash:SIP70.8-2-1S.loads
tftp-server flash:term70.default.loads
tftp-server flash:term71.default.loads
tftp-server flash:apps70.8-0-2-55.sbn
tftp-server flash:cnu70.8-2-0-55.sbn
tftp-server flash:cvm70.sip.8-2-0-55.sbn
tftp-server flash:dsp70.8-2-0-55.sbn
tftp-server flash:jar70.sip.8-0-2-25.sbn
!
control-plane
!
!
!
voice-port 0/1/0
!
voice-port 0/1/1
!
!
!
!
!
dial-peer voice 2 voip
description ** cue voicemail pilot number **
translation-profile outgoing PSTN_CallForwarding
destination-pattern 100
b2bua [## CUE is setup as a SIP back-to-back user agent]
session protocol sipv2 [## CUCME communicates with CUE using SIP]
session target ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw [## CUE must used G.711ulaw for codec]
no vad [## VAD is bad]
!
dial-peer voice 3 voip
description ** cue auto attendant number **
translation-profile outgoing PSTN_CallForwarding
destination-pattern 110
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
!
presence [## Enables presence service and enters presence configuration mode]
presence call-list [## Globally enables BLF monitoring for directory numbers in call lists and directories on all locally register phones]
max-subscription 120 [## Maximum number of concurrent watch sessions that are allowed]
!
sip-ua
presence enable [## Allows the router to accept incoming presence requests]
!
!
telephony-service
max-ephones 24
max-dn 72
ip source-address 10.100.100.10 port 2000
system message CME1
time-zone 5
voicemail 100
max-conferences 8 gain -6
call-forward pattern .T
web admin system name cisco secret 5 $1$4FC/$CMer08o/KELFlVrhL5QRO0
dn-webedit
time-webedit
transfer-system full-blind
transfer-pattern 9.T
!
!
ephone-dn  11
number 800
mwi on
!
!
ephone-dn  12
number 801
mwi off
!
!
line con 0
line aux 0
line 66
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120
line vty 0 4
password cisco
login
!
scheduler allocate 20000 1000
end

Written by Matthew Berry

February 9th, 2010 at 7:57 am

Posted in CUCME SIP Endpoints

Tagged with , , ,

One Response to 'Sample CUCME SIP Configuration'

Subscribe to comments with RSS or TrackBack to 'Sample CUCME SIP Configuration'.

  1. Hi Matthew,
    Nice to see that you keep yourself busy :-)

    Really nice post, you might want to add this little piece to the config

    voice service voip
    sip
    bind both source-interface Vlan192 [need to be the same interface used as source int for the voice reg global]

    /Roger

    Roger Kallberg

    11 Feb 10 at 2:03 am

Leave a Reply

Anti-Spam Protection by WP-SpamFree