[cisco-voip] Custom Directory for IP Phones

Anthony Mendoza amendoza at Niku.com
Mon May 23 20:34:15 EDT 2005


I'm trying to use a PHP script to display / search our active directory.
However, I can't even get the option #4 to appear when hitting the
directory button.  I'm outputting the same XML as the standard call
manager scripts with DC Directory.  Any ideas what I'm doing wrong?  My
XML output is:

<CiscoIPPhoneMenu>
  <Prompt>Select a directory</Prompt> 
    <MenuItem>
      <Name>Corporate Directory</Name> 
      <URL>http://ciscodir.niku.com/scripts/ciscoDir.php?op=input</URL> 
    </MenuItem>
</CiscoIPPhoneMenu>

I'm using PHP and sending out:

   header("Content-type: text/xml");
    header("Connection: close");
    header("Expires: -1");

just before the above as I read somewhere online.  I've tried not
sending those headers too..same thing..don't see option 4 when I hit
"Directories"..  For reference (and for anyone that wants to re-use)
I've attached the main script.  Some mods were made to the CiscoIPPhone
class to accommodate my usage.  I debugged the XML code using a browser
and made it match, step by step the Cisco ASP pages...I was offsite and
didn't have a phone at the time.

-Anthony


CONFIDENTIALITY NOTICE: The information contained in this message and
or attachments is intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged material. Any
review, retransmission, dissemination, copying, or other use of this
information by persons or entities other than the intended recipient is
prohibited. If you received this e-mail or its attachments in error, 
please contact the sender and delete the material from any system and 
destroy any copies.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ciscoDir.php
Type: application/octet-stream
Size: 3052 bytes
Desc: ciscoDir.php
Url : https://puck.nether.net/pipermail/cisco-voip/attachments/20050523/5378d818/ciscoDir-0001.obj


More information about the cisco-voip mailing list