Customize Directory Button - CUCM 6.1.3

Version 1
    This document was generated from CDN thread

    Created by: Daniel Prader on 07-10-2009 09:08:32 AM
    Hello,

    I try to customize the IP Phone Directory button to implement a Corporate phonebook and we want to keep the personal address book link.

    I have chaged the Direcory URL to an IIS server with an Directory script. It works but there is a strange issue...

    First i have tried it with a XML page:

    xmldirectory.xml
    <?xml version="1.0"?>
    <CiscoIPPhoneMenu>
     <Prompt>Select a directory</Prompt>
     <MenuItem>
       <Name>Personal Directory</Name>
       <URL>http://"CUCM IP":8080/ccmpd/pdCheckLogin.do?name=#deviceName#</URL>
     </MenuItem>
     <MenuItem>
      <Name>Corporate Directory</Name>
      <URL>http://"Directory IP"/xml/index2.php?company=0</URL>
     </MenuItem>
    </CiscoIPPhoneMenu>



    This has worked for the 7960 phones but 7961 and IP Communicator Phones don't keep the login for the Personal directory. Then i have changed it to this:

    xmldirectory.xml
    <?xml version="1.0"?>
    <CiscoIPPhoneMenu>
     <Prompt>Select a directory</Prompt>
     <MenuItem>
       <Name>Personal Directory</Name>
       <URL>http://"CUCM IP":8080/ccmpd/pdCheckLogin.do?name=deviceName</URL>
     </MenuItem>
     <MenuItem>
      <Name>Corporate Directory</Name>
      <URL>http://"Directory IP"/xml/index2.php?company=0</URL>
     </MenuItem>
    </CiscoIPPhoneMenu>


    This has worked for the 7961 and IP Communicator Phones but the 7960 don't keep the login for the Personal directory

    Then i Have Found a ASP script in a Forum:

    xmldirectory.asp
    <%@ Language=JavaScript %>

    <%
    var device = String(Request.QueryString("name").Item)
    var intraNetDirUrl = "http://"Directory IP"/xml/index2.php"
    var persDirUrl = "http://"CUCM IP":8080/ccmpd/pdCheckLogin.do"
    var CorpDirUrl = "http://"CUCM IP":8080/ccmcip/xmldirectoryinput.jsp"

    Response.ContentType = "text/xml"
    Response.Buffer = true;
    Response.Write("<CiscoIPPhoneMenu>\r\n<Prompt>Select a directory</Prompt>\r\n<MenuItem><Name>Personal Directory</Name><URL>"+persDirUrl+"?name="+device+"</URL></MenuItem>\r\n</CiscoIPPhoneMenu>");
    Response.Flush();
    %>


    This work fine for the 7960 and IP Communicator Phones but the 7961 don't keep the login for the Personal directory

    Can any one help me? What is wron on these scripts? Or is there an other way to do that?

    Thanks

    Regards

    Daniel