06-15-2008 10:58 PM - edited 03-13-2019 05:21 PM
Hi,
i've written an asp script for LDAP directory search and pointed the phones to it. However, when i press the directories button, the new menu entries are not shown.
This is the XML output of the script:
<CiscoIPPhoneMenu>
<Prompt>Izberite imenik</Prompt>
<MenuItem>
<Name>Imenik organizacije</Name>
<URL>http://<server_ip>/IPTServices/LDAPSearch/ldap_welcome.asp</URL>
</MenuItem>
</CiscoIPPhoneMenu>
Where did i mess up?
Solved! Go to Solution.
06-16-2008 04:17 AM
you have text/html and you should have text/xml!
06-16-2008 03:42 AM
Looks fine. Have you restarted phones?
I have one more line in my menu file:
06-16-2008 03:51 AM
I have restarted the phones and also tried with xml version line, the result is the same. I tried and subscribed this script as a service and accessed it from the phone->services button. What happens is, that i get the same XML output as with a browser on a pc instead of seeing menus.
Regards,
Marko
06-16-2008 04:02 AM
So you need to send http header before xml tags in your asp script.
content-type: text/xml.
--
regards,
PK
06-16-2008 04:05 AM
Like this:
<%response.ContentType="text/xml"%>
06-16-2008 04:09 AM
I did. This is my asp code:
<%@ Language=JavaScript %>
<%
var serverIP<
serverIP = Request.ServerVariables("LOCAL_ADDR");
Response.ContentType = "text/html";
%>
Cant figure out what's wrong.
Regards,
Marko
06-16-2008 04:17 AM
you have text/html and you should have text/xml!
06-16-2008 04:46 AM
Cheers, that did the trick.
Regards,
Marko
06-20-2008 12:52 PM
Can I ask which version of CM you were using? I'm looking to do the same thing for CM 6.1.
Thanks!
06-21-2008 07:25 AM
I did this on 6.1 also, although it really doesnt matter which version you are using.
Regards,
Marko
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: