cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
15203
Views
50
Helpful
13
Replies

Custom Directory

lucasmarcel
Level 1
Level 1

Hi,

I would like to create a custom directory that would be listed after the built-in corporate directory. I have a few very basic questions:

Is there a tutorial out there showing how to do this? I wasn't able to find one.

We are using a Linux based CUCM 6 so I am under the impression that I'll have to host my customized xmldirectory.jsp on a different web server. We only have IIS servers, so do I have to install Tomcat to host that one file?

Finally, I would like to edit the existing xmldirectory.jsp. What is the easiest way to copy files from our callmanager?

Obviously I am new to this so any pointers are welcome.

Thanks in advance for your help.

Lucas

1 Accepted Solution

Accepted Solutions

Hi Lucas

I can assure you that it won't - you could boot from a Linux recovery CD if you wanted, but you would be better off looking into putting something together yourself.

Here's an ASP example that I wrote - this one links into AD, but you could replace the ADO/AD bits with something to read XML if you have the appropriate skills... https://supportforums.cisco.com/message/3026015#3026015

Regards

Aaron

Please rate helpful posts and mark answered questions that you've got a satisfactory response from to help identify useful content in the forums...
https://supportforums.cisco.com/docs/DOC-6212

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

View solution in original post

13 Replies 13

Aaron Harrison
VIP Alumni
VIP Alumni

Hi

What's important isn't the 'jsp' bit - that just indicates that the page on the server is a javaserver page.

What's important is that what you get when you access that page is properly formatted XML, in a page of type text/xml.

You can browse to the URL on CCM, and then do a 'view source' in IE. Copy the source, and put it in a simple ASP file that returns that text with the content-type header set correctly. You'll want to edit the XML once you have it working to add your new directory service.

Of course... actually creating the directory service is another subject in itself - do you have this done already?

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Thank you for your prompt reply, it will help a lot.

The directory itself will be a hard-coded xml file for the time being, if that's possible.

Sure - if you drop this next section (including the tags) into a file with a .xml suffix in your IIS server, it will return XML the phone should be happy with. This will add the listed directories to your missed/received/etc:


Select a directory

  Corporate Directory
  http://1.1.1.1:8080/ccmcip/xmldirectoryinput.jsp



Custom Directory
http://2.2.2.2/misc/directory.xml


Your directory would be a variant on this (again, put in a file named something .xml and put the URL it is available at in the XML file above where I have the example of http://2.2.2.2/misc/directory.xml. I think you can have up to 32 entries in a single XML file.


    Name Of Directory
     Prompt text.
    
          Name of Person or Company
          TelephoneNumber
    
    
          Name of Person or Company
          TelephoneNumber
    

Hope this helps...

Aaron

Please rate helpful posts and mark answered questions that you've got a satisfactory response from to help identify useful content in the forums...
https://supportforums.cisco.com/docs/DOC-6212

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Thanks Aaron, it worked as described.

If I add more that 32 entries, I get a XML parse error.

Is it possible to add the search feature available in the corporate directory to a custom directory?

Basically, I would need xmldirectorylist.jsp to work on my custom xml file. How can I see the source code of the xmldirectorylist.jsp page to see if it would take a file name as a parameter?

Lucas

Hi Lucas

I can assure you that it won't - you could boot from a Linux recovery CD if you wanted, but you would be better off looking into putting something together yourself.

Here's an ASP example that I wrote - this one links into AD, but you could replace the ADO/AD bits with something to read XML if you have the appropriate skills... https://supportforums.cisco.com/message/3026015#3026015

Regards

Aaron

Please rate helpful posts and mark answered questions that you've got a satisfactory response from to help identify useful content in the forums...
https://supportforums.cisco.com/docs/DOC-6212

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Thank you very much for all your help. I have some knowlege of ASP so hopefully I'll be able to edit your code.

Lucas

Best of luck..

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Aaron,

I was able to create my custom directory thanks to the example you provided. I am attaching the files in case somebody else is interested in retrieving info from a hard-coded xml directory.

The CustomDirectorySample.zip archive contains 4 files:

1. MyCustomDirectory.xml is the actual hard-coded directory

2. CustomDirectory.xml is the file to link to in the URL Directories field under System>Enterprise Parameters of CUCM. It lists the available directories, including the custom directory.

3. SearchCustomDirectory.asp displays the input screen where users can search by first and last name

4. GenerateXML.asp is the main file. It returns valid XML containing the directory information filtered according to the search criteria entered earlier.

Thanks again for the help.

Lucas

I know this is an extremely old thread, but on the off-chance that you're still around I just wanted to thank you for this. It works perfectly, and is exactly what I needed. Thank you!

Ha!... Not sure who you're talking to, but I'm still here, and I still like it when people up-rate my posts ;-)

Glad you got some mileage from this!

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

I used lucasmarcel's scripts which were based off your examples, so thanks to both of you! Cheers!

Hello, Aaron!

I have an issue. Cisco 7861 don't gets file directory.xml from our web server.

We use 7861 standalone as SIP-phone, without CUCM or CUCME.

in SEP-MAC.cnf.xml:

<directoryUrl>http://192.16.1.17/directory.xml</directoryUrl>

test content for directory.xml:

<CiscoIPPhoneDirectory>
<Title>IP Telephony Directory</Title>
<Prompt>People reachable via VoIP</Prompt>
<DirectoryEntry>
<Name>Rich</Name>
<Telephone>3000</Telephone>
</DirectoryEntry>
<DirectoryEntry>
<Name>Todd</Name>
<Telephone>3001</Telephone>
</DirectoryEntry>
</CiscoIPPhoneDirectory>

Where is error?

I have the same problem do you have solution ???

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: