07-14-2010 08:11 AM - edited 03-15-2019 11:42 PM
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
Solved! Go to Solution.
07-14-2010 12:36 PM
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
07-14-2010 08:20 AM
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
07-14-2010 08:32 AM
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.
07-14-2010 09:39 AM
Sure - if you drop this next section (including the
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.
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
07-14-2010 12:08 PM
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
07-14-2010 12:36 PM
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
07-14-2010 01:37 PM
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
07-14-2010 01:57 PM
Best of luck..
07-22-2010 07:53 AM
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
04-04-2016 07:10 AM
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!
04-05-2016 08:14 AM
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
04-05-2016 08:17 AM
I used lucasmarcel's scripts which were based off your examples, so thanks to both of you! Cheers!
08-10-2016 08:44 AM
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?
02-28-2023 01:18 PM
I have the same problem do you have solution ???
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide