Monday, March 1, 2010

Consolidation of steps - Preparing MOC clients for RCC using CUP

The below configuration details is to configure the MOC clients for RCC using CUP. Versions used MOC clients on Microsoft Office Communications Server 2007 R2, CUP 8.0.X and CUCM 8.0.X

Detailed steps listed below:

Configuring Cisco Unified Communications Manager:
1] Enable Presence globally on CUCM
System>Service Parameter>Cisco Call Manager
Search for "Inter-presence" keyword and set "Allow Subscription"

2] Create SIP trunk security profile in CUCM

Special setting is required for SIP trunk which runs from CCM to Presence.
Copy “non Secure SIP Trunk Profile” to “Presence non-secure SIP trunk Proifle”
Modify below parameters:
  1. Device security mode: Non-Secure
  2. Incoming Transport type: TCP+UDP
  3. Outgoing Transport Type: TCP
  4. Incoming Port 5060 (untick Enable digest authentication)
  5. Enable application Level Authentication UNTICK
  6. Accept Presence Subscription TICK
  7. Accept Out-of-Dialogue REFER TICK
  8. Accept Unsoliciliated Notification TICK
  9. Accept Replace header TICK
  10. Transforms security status UNTICK
Save it


3] Add SIP trunk from CUCM to Presence

Device>TRUNK>SIP-trunk>
Protocol = SIP
fill below:

  1. Device Name : PRESENCE-TRUNK
  2. Description : blah blah
  3. Device Pool : DP_HQ
  4. Common Dev conf : None
  5. call classification : On-Net
  6. Media resource Grp : MRG_HQ
  7. Location : HQ_LOC
  8. AAR GROUP : HQ_AARG (if not using AAR leave empty)
  9. Packet Capture mode : None
  10. Packet Capture duration: 0
  11. MTP required : TICK
  12. Retry Video call as audio : TICK
  13. SIP information – Desitnation Add: 142.2.64.51
DST is a SRV : UNTICK

  1. Destination port : 5060
  2. SIP PROFILE : Presence non-secure SIP trunk Proifle
Save above.


4] Make your IP Phone presence capable
Note: Make sure you already added IP phone.


  1. Register a phone 2001 name it HQ-Phone1
  2. Create end user “test” and associate HQ-Phone1/2001 with the “test” user
  3. Make sure test user is a part of “Standard CCM End User” and “standard CTI enable”
  4. Make sure Primary extension “2001” is selected when you create the above “test” user

5] Add an Application User for IPPM and MOC CTI ports
This will be used by Presence server to initiate IP Phone services:
Go to > User Management>Application User>
  1. User ID : CtiGW
  2. pass : blah
  3. Presence Grp : Standard
  4. Device Information: Add the device you would like to add for presence from the list
  5. CTI controlled Device profiles: Add the profile created in step 10  (you can save it without adding the profile and add the profile later)
  6. Groups : Standard CCM End User
save it
Note: Make sure to TICK the "Accept presence subscription" field. TICKING ALL doesn't do any harm..:)

B) Go to > SYSTEM>Application Server> Add NEW
add Presence server IP address here I..e 142.2.64.51
save this as well. Damn too many things to save 

6] Create IP Phone Service URL
Note: Make sure "Cisco Extension Mobility Service" is activated under "Network Services" in Cisco Serviceability.
Go to> Device>Device Settings> IP Phone Service
  1. Service Name : EM
  2. ASCII Service Name : EM
  3. Service Description : Extension Mobility (can be anything)
  4. Service URL : http://142.2.64.11:8080/emapp/EMAppServlet?device=#DEVICENAME#
  5. Service Category : XML Service
  6. Service Type : Standard IP Phone Service
  7. Blank
  8. Blank
  9. Enable : TICK
It’s standard Phone URL we create and subscribe in CCM. Nothing new!!
Make sure you copy the correct URL from the DOC CD.
Save above as well.


Subscribe above service to Phone 1/2001
Go to Device>Phone and select phone
From the right side drop down list, select "Subscribe/Unsubscribe services"
Select the profile created above "EM" from the drop down list and subscribe.
Save and reset phone.

7] Create End User and assign to Phone.
Go to User Management>End User> Add new

  1. User ID: RCC01
  2. Password: blah
  3. Confirm Password: blah
  4. PIN: blah
  5. Confirm PIN: blah
  6. Lastname: Pool2 (can be anything, I used the pool of OCS user)
  7. Telephone Number: Same as HQ phone 1/2001
  8. Controlled Devices: HQ Phone 1/2001
  9. CTI controlled device profiles: Assign the profile created in step 10 (This come later, you can save it for now and assign it later.. Don't forget)
  10. Presence group: Standard presence group
  11. Primary extension: Select 2001
  12. Enable Mobility: TICK (Select the HQ Phone in the device)
  13. Groups: Standard CCM users, Standard CTI enabled

Save it


8] Enable Presence Licensing for each user

Go to> System>License>Capability Assignment>
Then Find the end user you want to assign the presence license.
Tick the user and hit
a new pop up window with pop-up. Tick both check-boxes in that and save.

  1. Enable CUP – TICK
  2. Enable CUPC - TICK (My configuration does not include this).


9] Add phone selection plugin in OCS client.

You can find the plugin installation instruction in www.cisco.com (As of today, this information wrt CUCM 8.0 is not posted on www.cisco.com yet)


10] Configure User device profiles for every IP Phone user wants to log into. The Device profile should include the DN associated with that user
Go to Device>Device Settings> Device Profile and add new


  1. Product type: your IP phone type
  2. protocol: sccp/sip
  3. Login User ID: End user created in step 7
  4. In the DN, Associate the extension of HQ Phone 1/2001
  5. TICK Allow Control of device from CTI (Associate the device and IP phone service created in step 6)
Save it.


Subscribe above service to phone profile created earlier in step 6
From the right side drop down list, select "Subscribe/Unsubscribe services"
Select the profile "EM" created above from the drop down list and subscribe.
Save and reset.

11] Enable Extension Mobility on the phone configuration page on the IP Phone the user will login to.
Go to Device>Phone and Select Phone
TICK "Enable Extension Mobility" and select the Device profile created in step 10.
Save and reset.

Configuring Cisco Unified Presence

1] After installing basic presence, you’ll see presence post install setup screen on your web browser by typing presence Server IP address on your browser and supplying credentials to the login screen.
(hehe, I call it doggie screen, sitting like a dog waiting for your fingers to feed it like dog wait for food )
So you’ll see “Post Install Setup” screen with below options:

  1. CUCM Publisher IP address : 142.2.64.11 (default, not changeble)
  2. AXL User : Administrator
  3. Axl password : blah blah..
  4. Confirm password : blah blah
  5. Security password : blah blah (whatever you supplied during installation)
  6. Then hit the “CONFIRM” (Ignore the warning)
    Finally you will get 3 options:
    A) Home B) Status C) TOPOLOGY
  1. Click on “HOME” you’ll see you are in a new home i.e. preseence main admin page.
2] Upload License and activate all Presence Services.
  1. first upload the license if you haven’t done that so far.
  2. GO to > Cisco Unified Servicebility>>Tools>Activate services
    Activate all services, it will take 2-3 minutes.
3] Now jump straight on Presence Admin page>>Diagnostic>System Troubleshootor
Pay attention to RED crossed balls and yellow exclamation ! Signs and fix them one by one.
  1. Under Presence Engine: Click on FIX under “no commnication presence” this will take you to add presence gateway:
    Add NEW> Presence Gateway type : CUCM  description : blah Presence Gateway : 142.2.64.11 ← CCM IP Double check the settings under below menus:
  1. SYSTEM> CCM Publisher : Check all parameter under this
  2. SYSTEM> Application Listioner>Default class SIP TCP Listioner (make sure its what you have defined in the SIP trunk on CCM – transport method TCP or UDP, both should have the same protocol/port) we are using:
    Protocol = TCP
    PORT = 5060
  3. SYSTEM> Security>INCOMING ACL
    Add NEW> description=blah/all address pattern=all. (make sure you have OCS enabled and is specific to each pool and CUCM is automatically enabled).
  4. PRESENCE>Settings, verify TICK for "Enable SIP PUBLISH for CUCM"

4] Tune the Presence Engine Service Parameters
SYSTEM>> Service Parameter>Select active CUPS Server> Select Presence Engine
  1. Search “Proxy Domain” and set it to : 142.2.64.51 (or domain name)
  2. Search “Transport Preferred Order” and set it to : TCP/UDP/TLS
5] Configure IPPM (IP Phone Messenger) on Presence Server
Application>IP Phone> Setting
  1. IPPM Application Status : ON
  2. Application user Name : CtiGW (created in step 5 of CUCM configuration)
  3. Application Password : blah…
  4. confirm password : Blah
  5. Max Instant message : 25 default
  6. Subscription timeout : 3600 default
  7. Publish timeout : 3600 default
    Hit “SAVE”
6] Select a SIP trunk between presence to CUCM.
Tell presence which SIP trunk should be used for pumping calls to CCM.
Presence>>Setting>
  1. CUP CVP Support : UNTICK
  2. MAX Contact List Size : 200
  3. Enable Instalt messeging : TICK
  4. Enable SIP Publish on CUCM TICK
  5. CUCM SIP Publish Trunk : <– A MUST
Don’t forget to save after above. Above SIP trunk will be automatically listed above. This we is the one we created on CUCM.


7] Configure Deskphone Control Settings
Goto Application>Desk Phone Control> Settings
The Desk Phone control application provides connectivity between Cisco Unified Communications Manager (CUCM) and soft clients that provide Click-to-Dial/Phone control-type services. You can configure the Desk Phone control application to connect up to a maximum of eight CUCM servers.


Now go to Application>Deskphone Control> User Assignment and select all the users and assign Desk phone Control.

Verify UserManagement> End User lists all the users with "Licensed CUP" and "Desk phone Control" rights.


    Now time to run the Presence troubleshooter again. This will tell you whats remaining and how to fix it. Once those are done, activate the presence and other services and bingo.. you are ready to rocck!! on hang on, oh no!! Still remaining:

    1. MOC integration
    2. Creating users and testing presence
    3. Voicemail integration with Presence
      Note: Some of the information here is taken from Pushkar's UC blog and modified/added more information either missing or changed in CUCM 8.0/Microsoft OCS 2007 R2