Brad Peczka's Blog $ cat /dev/random > /dev/blog

23Aug/100

Disabling the CUCM Corporate Directory

Situation: You want to disable the Corporate Directory on your Cisco IP Phones - maybe you're like me, and have ~300 phones in places where people shouldn't be able to look up the Managing Director's direct line.

Solution: You come across this awesome little post from the Chesapeake Netcraftsmen, which says (amongst other things) to assign these phones a new Common Phone Profile, configure Services Provisioning to use a External URL, and then disable Enterprise Subscription on the Corporate Directory. Right?

... not quite. In a situation where the Corporate Directory is required on more phones than not, having to subscribe each phone to it is a pain in the proverbial. However, if you plug a dummy URL into the 'Directory' Data Location on your phone configuration, it also wipes out your Missed/Placed/Received calls directories. Cisco's website is unsurprisingly sparse on where this information is pulled from, and how to get it back if you're in my situation.

Dumping the Console Log on a phone shows that the phone requests a phoneservices.xml file upon boot, which lists the Services that the Phone is subscribed to. This file looks very similar to the format of the http://cucmpublisher:8080/ccmcip/xmldirectory.jsp file (which provides the Personal/Corporate Directory URLs), other than it doesn't actually have any URLs in it.

On a whim, I cooked up an XML file with similar contents to the phoneservices.xml file, hosted it on a test server, and pointed a test phone to this file via their 'Directory' URL. The phone reloaded, and the Missed/Received/Placed Calls directories were back in business. You can get a copy of the file here, or view the actual code after the break.

 Filename: xmllocaldirectories.xml (or something similar).

<?xml version="1.0" ?>
 <CiscoIPPhoneMenu>
 <MenuItem>
  <Name>Missed Calls</Name>
  <URL>Application:Cisco/MissedCalls</URL>
 </MenuItem>
 <MenuItem>
  <Name>Received Calls</Name>
  <URL>Application:Cisco/ReceivedCalls</URL>
 </MenuItem>
 <MenuItem>
  <Name>Placed Calls</Name>
  <URL>Application:Cisco/PlacedCalls</URL>
 </MenuItem>
 </CiscoIPPhoneMenu>
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.