Class Snap

Class Snap

Monday, March 31, 2014

Configuring CME Auto Attendant/BACD Aamer Ainapore

before you start entering the below commands, enable the debugs... 

debug voip application script 
debug ephone moh 

You can try to stop and restart the script by doing 
- show call application session //to get the session id 
- call application session stop id xx //to stop the script and restart it by issuing 
- call application voice load queue //assuming queue is the name of the bacd.tcl service. 
- call application voice load aa //assuming queue is the name of the bacd-aa.tcl service 

application 
service aa flash:app-b-acd-aa-2.1.2.2.tcl 
paramspace english index 1 
param number-of-hunt-grps 2 
param menu-timeout 5 
param dial-by-extension-option 5 
param handoff-string aa 
paramspace english language en 
param max-time-vm-retry 2 
param aa-pilot 4042833 
param max-extension-length 4 
paramspace english location flash: 
param second-greeting-time 60 
param welcome-prompt _bacd_welcome.au //caution: many make a mistake and type en_bacd_welcome.au instead of _bacd_welcome.au .... make sure not to type the en at the begining... i made that mistake too initially...// 
param call-retry-timer 15 
param voice-mail 3001 
param max-time-call-retry 600 
paramspace english prefix en 
param service-name queue 

service queue flash:app-b-acd-2.1.2.2.tcl 
param queue-len 10 
param aa-hunt3 1111 
param aa-hunt4 2222 
param queue-manager-debugs 1 
param number-of-hunt-grps 2 

tftp-server flash:music-on-hold.au 

dial-peer voice 13 voip 
service aa 
destination-pattern 4042833 
session target ipv4:142.102.66.254 
incoming called-number 4042833 
dtmf-relay h245-alphanumeric 
codec g711ulaw 
no vad 

telephony-service 
authentication credential admin cisco 
max-ephones 4 
max-dn 10 
ip source-address 142.102.66.254 port 2000 
system message HK SITE (R3) CME 
url services http://142.102.66.253/voiceview/common/login.do 
url authentication http://142.102.66.254/CCMCIP/authenticate.asp 
load 7970 SCCP70.8-3-3S 
time-zone 37 
date-format dd-mm-yy 
voicemail 4220 
max-conferences 8 gain -6 
moh music-on-hold.au 
web admin system name admin password cisco 
web admin customer name aamer password cisco 
dn-webedit 
time-webedit 
transfer-system full-consult 
create cnf-files version-stamp Jan 01 2002 00:00:00 

ephone-hunt 1 longest-idle 
pilot 1111 
list 3001, 3002, 3004 
timeout 18, 18, 18 
statistics collect 

ephone-hunt 2 longest-idle 
pilot 2222 
list 3003 
timeout 18 
statistics collect

SIP Phone Registration Config... CME

voice service voip 
allow-connections h323 to h323 
allow-connections h323 to sip 
allow-connections sip to h323 
allow-connections sip to sip 

sip 
bind control source-interface Loopback0 (Optional, but it is better to bind the traffic) 
bind media source-interface Loopback0 (Optional, but it is better to bind the traffic) 
registrar server expires max 300 min 60 



voice register global 
mode cme 
source-address 177.3.254.1 port 5060 
max-dn 25 
max-pool 10 
load 7970 SIP70.8-3-1S 
authenticate register 
tftp-path flash: 
create profile sync 001513024159287A 



voice register dn 1 
number 3001 

voice register dn 2 
number 3002 

voice register dn 3 
number 3003 

voice register dn 4 
number 3004 


voice register pool 1 
id mac 0024.C442.D5E7 
type 7970 
number 1 dn 1 
username cisco password cisco 

voice register pool 2 
id mac 0024.C442.D5E3 
type 7970 
number 1 dn 2 
username cisco password cisco 



voice register pool 3 
id mac 0024.C442.D620 
type 7970 
number 1 dn 3 
username cisco password cisco 


voice register pool 4 
id mac 0024.C442.D5ED 
type 7970 
number 1 dn 4 
username cisco password cisco 


tftp-server flash:cnu70.8-3-0-50.sbn 
tftp-server flash:apps70.8-3-0-50.sbn 
tftp-server flash:cvm70sip.8-3-0-50.sbn 
tftp-server flash:dsp70.8-3-0-50.sbn 
tftp-server flash:jar70sip.8-3-0-50.sbn 
tftp-server flash:SIP70.8-3-1S.loads 
tftp-server flash:term70.default.loads

How to test your FXO ports to see if they have an voltage coming in from the PSTN

test voice port 0/0/0 si-reg-read 29 1 

// in the above command we are testing FXO voice port 0/0/0 

if the output of the above command (make sure you enable "terminal monitor" if you are accessing the router via telenet and not console) is anything other than "0x00" you do have voltage but if you receive a "0x00" then that line is dead .... either make sure the line is properly terminated to the FXO port or call up the PSTN to check it out..

Important/Usefull CME Commands for Auto Attendant/BACD...

CME Auto Attendant (Usefull commands) 

show call application sessions //show all active sessions and their resepctive id's 
call application session stop id 17 //stop a current session by specifying the id retrieved in the previous command above 
call application voice load aa //load the aa service which will load the bacd-aa.tcl 
call application voice load queue //load the queue service which will load the bacd.tcl 
audio-prompt load flash:en_bacd_welcome.au // use this command to verify if the audio file you uploaded is valid on cme 

debug voice application script 

To record greeting use windows sound recorder for xp and 
save the file in the format CCITT u-law format with 8khz 8-bit mono attributes

Unable to register the gateway in CUCM as MGCP... just does'nt register...

Check the following: 

1) Check if a domain name is configured, if it is then either remove it or suffix it after the router hostname (example; instead of mentioning only the hostname as "R1" while registering the gateway in CUCM, register it as "R1.xyz.com" or whatever your domain name is in the router" 

2) shut and bring up mgcp process by issue a "no mgcp" "mgcp" 

3) issue the show ccc-manager command to see the status of the gateway in the router... if it's registered and active you might want to restart the "RIS Data Collector" service in cucm, it does sometimes happen that the cucm does not reflect the values in it's informix database... 

4) make sure the following commands are present in the router for mgcp.... 

ccm-manager redundant-host 177.1.10.11 
ccm-manager mgcp 

mgcp 
mgcp call-agent 177.1.10.1 service-type mgcp version 0.1 
mgcp dtmf-relay voip codec all mode out-of-band 

mgcp profile default 

5) hang the router from the wall and punch it !@!#!#@#@


Config Snippet:

mgcp 
mgcp call-agent 177.1.10.20 
mgcp bind control source lo 0 
mgcp bind media source lo 0 
mgcp dtmf-relay voice codec all mode out-of-band 
ccm-manager redundant host 177.1.10.10 
ccm-manager mgcp 
ccm-manager switchback immediate

Configuring Extension Mobility on CUCM... Part 2

Create Device Profile Default for Each Phone Model that shall Support Cisco Extension Mobility 

Step 1 Select Device>Device Settings>Default Device Profile 
Step 2 From the drop down list, select the phone model to be configured, for example, Cisco 7960. 
Step 3 Under Description, enter a description of this profile. 
Step 4 Under Phone Button Template, select Standard 7960 SCCP. 
Step 5 Click Save 
Step 6 Repeat for each model phone to be configured 

Create Device User Profile for a User 

Step 1 Choose Device>Device Settings>Device Profile and click Add New. 
Step 2 From the drop down list, select the phone model to be configured, for example, Cisco 7960 
Step 3 Click Next 
Step 4 Enter a Device Profile Name, for example “Your Name” . 
Step 5 From the Phone Button Template field, select Standard 7960 SCCP. 
Step 6 Click Save. 
Step 7 On the left hand side of the screen, click the link Line [1] – Add a new DN. 
Step 8 Choose a valid DN from your NIP, enter that DN in the Directory Number field. 
Step 9 Under Route Partition, select your city’s Headquarters Partition. 
Step 10 Under Directory Number Settings choose a CSS of appropriate access. 
Step 11 Enter any Call Forward and Call Pickup Settings as necessary. 
Step 12 In the Display (Internal Caller ID), enter the User’s name that was created in a previous Lab. 
Step 13 Click Save. 
Step 14 From the Related Links: menu, select Subscribe/Unsubscribe Services. 
Step 15 In the Select a Service, select Extension Mobility, then click Next. 
Step 16 Click Subscribe. 
Step 17 Click Save. 
Step 18 Repeat steps 7-13 for any additional lines. 

Associate User Device Profile to a User 

Step 1 From the menu, select User Management>End User. 
Step 2 Click Find 
Step 3 Select the user from the list that matches the profile that was created. 
Step 4 Under Extension Mobility>Available Profiles, select the profile that was created in the previous exercise and move it to the Controlled Profiles selection. 
Step 5 Under Default Profile, select the profile. 
Step 6 Click Save. 

Configure and Subscribe Cisco Unified Ip Phones to Service and Enable it. 

Step 1 Select Device>Phone from the menu. 
Step 2 Select the phone from the list of devices. 
Step 3 In the Related Links: field, select Subscribe/Unsubscribe Services and click Go 
Step 4 In the pop-up window, under Service Information, in the Select a Service pull down menu, select Extension Mobility. 
Step 5 Click Next 
Step 6 Click Subscribe 
Step 7 Click Save 
Step 8 Close the pop-up window. 
Step 9 Under Extension Information , check the Enable Extension Mobility box. 
Step 10 Under the Logout Profile field, select – Use Current Device Settings – 
Step 11 Click Save. 
Step 12 Click Ok from the pop-up warning. 
Step 13 Click Reset 
Step 14 In the pop-up window select Reset. 
Step 15 Click Close.

Configuring Extension Mobility on CUCM... Part 1

Verify Extension Mobility Service is Running 

Step 1 From the Navigation menu select Cisco Unified CallManager Serviceability 
Step 2 Select Tools>Control Center – Feature Services 
Step 3 Make sure that the Cisco Extension Mobility service shows status Activated 

Configure Extension Mobility Service 

Step 1 From the Navigation menu select Cisco Unified CallManager Administration 
Step 2 Select Device>Device Settings>Phone Services 
Step 3 Click Add New 
Step 4 In the Service Name field, type Extension Mobility 
Step 5 In the Service Description field, type Login and logout service 
Step 6 In the Service URL field, Enter the following URL 
http://177.1.10.10/emapp/EMAppServlet?device=#DEVICENAME# 
Step 7 Click Save 

Modify Enterprise Parameters to Reflect IP Address of CallManager 

Step 1 Select System>Enterprise Parameters 
Step 2 Under Phone URL parameters, change all fields from <CityName>CM1:8080 to 10.X.1.2:8080. Change ONLY the host name, not the reset of the field. 
Step 3 Click Save 
Step 4 Click Ok from the pop-up warning. 
Step 5 Click Reset 
Step 6 In the pop-up window select Reset 
Step 7 Click Close

Important DSP Commands...

1. show platform hw-module-power 

1. show voice call slot/port 

2. show voice dsp group all 

3. show voice dsp sorted-list 

4. show voice dsp capabilities slot number dsp number 

5. show voice dsp group slot number 

6. show voice dsp statistics device 

7. show voice dsp statistics tx-rx 

8. show voice dsp statistics ack 

9. debug voice dsp crash-dump

Cisco 7941 - When you try to register as SIP it gives you "UNPROVISIONED"

After entering all the relevant commands in CME for the phone to register as SIP it still gives you the "UNPROVISIONED"... try deleting the "authenticate register" command and say "create profile" and it should work.... 

SIP Phone Registration to CME (Configuration) 

voice service voip 
allow-connections h323 to h323 
allow-connections h323 to sip 
allow-connections sip to h323 
allow-connections sip to sip 
sip 
bind control source-interface Loopback0 (Optional, but it is better to bind the traffic) 
bind media source-interface Loopback0 (Optional, but it is better to bind the traffic) 
registrar server expires max 300 min 60 

voice register global 
mode cme 
source-address 177.3.254.1 port 5060 
max-dn 25 
max-pool 10 
load 7970 SIP70.8-3-1S 
authenticate register 
tftp-path flash: 
create profile sync 001513024159287A 

voice register dn 1 
number 3001 
voice register dn 2 
number 3002 
voice register dn 3 
number 3003 
voice register dn 4 
number 3004 

voice register pool 1 
id mac 0024.C442.D5E7 
type 7970 
number 1 dn 1 
username cisco password cisco 
voice register pool 2 
id mac 0024.C442.D5E3 
type 7970 
number 1 dn 2 
username cisco password cisco 

voice register pool 3 
id mac 0024.C442.D620 
type 7970 
number 1 dn 3 
username cisco password cisco 

voice register pool 4 
id mac 0024.C442.D5ED 
type 7970 
number 1 dn 4 
username cisco password cisco 

tftp-server flash:cnu70.8-3-0-50.sbn 
tftp-server flash:apps70.8-3-0-50.sbn 
tftp-server flash:cvm70sip.8-3-0-50.sbn 
tftp-server flash:dsp70.8-3-0-50.sbn 
tftp-server flash:jar70sip.8-3-0-50.sbn 
tftp-server flash:SIP70.8-3-1S.loads 
tftp-server flash:term70.default.loads