Setup Cisco CUCME -SCCP-

## Introduction

The purpose of this article is to detail the steps necessary to set up a CUCME with SCCP configurations, this article assumes that you have already set up your network including DHCP options.

the picture below shows our lab network

## Steps

1. Configure CUCME options
2. Configure Ephone Directory numbers
3. Configure Ephone Devices (phones)
4. Configure External Connections
5. s

## Detailed Steps

### Configure CUCME options

Step 1: Configure base telephony options

* **PSTN(config)#telephony-service**
* **PSTN(config-telephony)#no auto-reg-ephone**

Step 2: Configure maximum phones

* **PSTN(config-telephony)#max-ephones 5**

Step 3: Configure maximum Directory Numbers

* **PSTN(config-telephony)#max-dn 25**

Step 4: Configure source address

* **PSTN(config-telephony)#ip source-address 192.168.77.254**

Step 5: Create CNF files (this is only necessary for older CUCMEs)

* **PSTN(config-telephony)#create cnf-files**

Step 6 (Optional): Configure the system Message on the CUCME (this text will be displayed at the bottom of the phone screen

* **PSTN(config-telephony)#system message PSTN Simulator**

All commands together

* **PSTN(config)#telephony-service**
* **PSTN(config-telephony)#no auto-reg-ephone**
* **PSTN(config-telephony)#max-ephones 5**
* **PSTN(config-telephony)#max-dn 25**
* **PSTN(config-telephony)#ip source-address 192.168.77.254**
* **PSTN(config-telephony)#create cnf-files**
* **PSTN(config-telephony)#system message PSTN Simulator**

#### Configure Ephone Directory numbers

if you are building a CUCME from scratch it is in your best interest to create a spreadsheet that maps phones to DNs to buttons to make troubleshooting easy in the future.

after your basic information is set you are now ready to configure your directory numbers

Each DN must have a unique number which is separate from the directory number use the commands below to configure an ephone-dn

* **PSTN(config-telephony)#ephone-dn 1**
* **PSTN(config-ephone-dn)#number 911**
* **PSTN(config-ephone-dn)#label Emergency Services**
* **PSTN(config-ephone-dn)#Description Emergency Services - 911**

Repeat this process for all the DNs on your CUCME

#### Configure Ephone Devices (phones)

After you have all of your DNs configured you are now ready to add your phones

you will need the mac address of your phone to set up your ephone if you have already configured DHCP and the phone is drawing an address you can use **show ip arp** to gain the mac address of the phone

after you have the mac address use the command below to assign it to your ephone *please notice that the mac address is in the AAAA.BBBB.CCCC format*

* **PSTN(config-ephone)#mac-address 0012.d9bb.2696**
* **PSTN(config-ephone)#type 7970**

now that you have configured your phone you can assign directory numbers (Ephone-dn) to buttons on that phone

if you have a list of your ephone Dns this part will be really easy, use the commands below to assign ephone DNs to buttons

* **PSTN(config-ephone)#button 1:1**
* **PSTN(config-ephone)#button 2:2**
* **PSTN(config-ephone)#button 3:3**
* **PSTN(config-ephone)#button 4:4**
* **PSTN(config-ephone)#button 5:5**
* **PSTN(config-ephone)#button 6:6**

#### Configure External Connections

After you have your phones set up you can configure your connections to external systems using SIP, T1, E1, or FXO Connections

##### SIP

to create a sip trunk to an external system you have to create a Dial Peer on your CUCME that points to the other system

First let's add a few commands for the sip trunk to work correctly

* **PSTN(config)#voice service voip**
* **PSTN(conf-voi-serv)#allow-connections sip to sip**
* **PSTN(conf-voi-serv)#allow-connections sip to h323**

After that let's add a dial-peer pointed to the Call Manager at our "customer" site

* **PSTN(config)#dial-peer voice 716884 voip**
* **PSTN(config-dial-peer)#destination-pattern 716884....**
* **PSTN(config-dial-peer)#session target ipv4:10.10.10.6**
* **PSTN(config-dial-peer)#session protocol sipv2**
* **PSTN(config-dial-peer)#incoming called-number .**
* **PSTN(config-dial-peer)#dtmf-relay rtp-nte**
* **PSTN(config-dial-peer)#no vad**

Please also note that you must have a sip configuration on the CUCM at the site for calls to flow between the two systems.

##### T1 / E1 Configuration

your configuration will differ depending on if you are using a T1 or an E1 interface our lab system has a T1 MFT card to check your system you can use the **show inventory** command.

you can use the controllers T1 (or show controllers e1) command to find the slot location you will need to program your cards ( in our case our T1 is at **0/0/0**)

Use the commands below to set up your E1

* **PSTN(config)#network-clock-participate wic 0**
* **PSTN(config-voicecard)#dspfarm**
* **PSTN(config-voicecard)#dsp services dspfarm**
* **PSTN(config-voicecard)#exit**
* **PSTN(config)#isdn switch-type primary-qsig**
* **PSTN(config)#Controller t1 0/0/0**
* **PSTN(config-controller)#pri-group timeslots 1-23, 24**

When you type the "Pri-group" if you are consoled in or have terminal monitor enabled you should see something similar to the output below

* **PSTN(config-controller)#exit**
* **PSTN(config)#interface serial 0/0/0:23**
* **PSTN(config-if)#no ip address**
* **PSTN(config-if)#encapsulation hdlc**
* **PSTN(config-if)#isdn incoming-voice voice**
* **PSTN(config-if)#no cdp enable**

If you are configuring your CUCME directly to another system using a T1 or E1 you will have to set up clocking us the command below to set your CUCME as the Clocking source for the connection

* **PSTN(config-if)#isdn protocol-emulate network**

 after your connection comes up you will have to configure a dial-peer for calls to flow in and out off.

* **PSTN(config)#dial-peer voice 11884 pots**
* **PSTN(config-dial-peer)#destination-pattern 716884....**
* **PSTN(config-dial-peer)#description Buffalo system T1 Dial Peer**
* **PSTN(config-dial-peer)#forward-digits 4**
* **PSTN(config-dial-peer)#incoming called-number .**
* **PSTN(config-dial-peer)#port 0/0/0:23 (the serial interface)**

Here