Voice over IP Cisco - Custom Directory for IP Phones

This is Interesting: Free IT Magazines  
Home > Archive > Voice over IP Cisco > May 2005 > Custom Directory for IP Phones





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Custom Directory for IP Phones
Anthony Mendoza

2005-05-23, 8:45 pm

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.


Lelio Fulgenzi

2005-05-23, 8:45 pm

Looks exactly like what our app.admin created. I remember that when I was fooling around with it, that the 'corporate directory' dissappeared when the URL was not accessible. We actually used that to remove the corporate directory from phones.

Can you type in the URL from a web browser with similar access the phone has?


<CiscoIPPhoneMenu>
<Prompt>Select a directory</Prompt>
<MenuItem>
<Name>Campus Directory</Name>
<URL>http://<ipaddr:port>/voip_cd/input.xml</URL>
</MenuItem>
</CiscoIPPhoneMenu>

----- Original Message -----
From: Anthony Mendoza
To: cisco VoIP
Sent: Monday, May 23, 2005 8:34 PM
Subject: [cisco-voip] Custom Directory for IP Phones


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.




------------------------------------------------------------------------------


________________________________________
_______
cisco-voip mailing list
cisco-voip@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip

Anthony Mendoza

2005-05-23, 8:45 pm

Sure can. Looking at the webserver logs it gets the page fine .. I see the phone grabbing the page from the webserver with no errors.
--------------------------
Anthony Mendoza
Senior Infrastructure Manager
t: 650-298-5955
c: 510-579-1909
f: 208-247-5501
e: amendoza@niku.com

-----Original Message-----
From: Lelio Fulgenzi <lelio@uoguelph.ca>
To: Anthony Mendoza <amendoza@Niku.com>; cisco VoIP <cisco-voip@puck.nether..net>
Sent: Mon May 23 17:46:49 2005
Subject: Re: [cisco-voip] Custom Directory for IP Phones

Looks exactly like what our app.admin created. I remember that when I was fooling around with it, that the 'corporate directory' dissappeared when theURL was not accessible. We actually used that to remove the corporate directory from phones.

Can you type in the URL from a web browser with similar access the phone has?


<CiscoIPPhoneMenu>
<Prompt>Select a directory</Prompt>
<MenuItem>
<Name>Campus Directory</Name>
<URL>http://<ipaddr:port>/voip_cd/input.xml</URL>
</MenuItem>
</CiscoIPPhoneMenu>


----- Original Message -----
From: Anthony Mendoza <mailto:amendoza@Niku.com>
To: cisco VoIP <mailto:cisco-voip@puck.nether.net>
Sent: Monday, May 23, 2005 8:34 PM
Subject: [cisco-voip] Custom Directory for IP Phones

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.



________________________________

________________________________________
_______
cisco-voip mailing list
cisco-voip@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip




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.


Anthony Mendoza

2005-05-23, 8:45 pm

(Replying to myself)

Here's the excerpt from our webserver showing the hit:

10.150.6.83 - - [23/May/2005:18:02:02 -0700] "GET
/scripts/ciscoDir.php?name=SEP00065327DD3B&locale=English_United_States
HTTP/1.1" 200 200 "-" "Allegro-Software-WebClient/3.12"

200 being that code for "sent ok", and the other 200 referring to # of
bytes sent.

-Anthony

> -----Original Message-----
> From: cisco-voip-bounces@puck.nether.net
> [mailto:cisco-voip-bounces@puck.nether.net] On Behalf Of
> Anthony Mendoza
> Sent: Monday, May 23, 2005 5:48 PM
> To: lelio@uoguelph.ca; cisco-voip@puck.nether.net
> Subject: Re: [cisco-voip] Custom Directory for IP Phones
>
> Sure can. Looking at the webserver logs it gets the page
> fine .. I see the phone grabbing the page from the
> webserver with no errors.
> --------------------------
> Anthony Mendoza
> Senior Infrastructure Manager
> t: 650-298-5955
> c: 510-579-1909
> f: 208-247-5501
> e: amendoza@niku.com
>
> -----Original Message-----
> From: Lelio Fulgenzi <lelio@uoguelph.ca>
> To: Anthony Mendoza <amendoza@Niku.com>; cisco VoIP
> <cisco-voip@puck.nether.net>
> Sent: Mon May 23 17:46:49 2005
> Subject: Re: [cisco-voip] Custom Directory for IP Phones
>
> Looks exactly like what our app.admin created. I remember
> that when I was fooling around with it, that the 'corporate
> directory' dissappeared when the URL was not accessible. We
> actually used that to remove the corporate directory from phones.
>
> Can you type in the URL from a web browser with similar
> access the phone has?
>
>
> <CiscoIPPhoneMenu>
> <Prompt>Select a directory</Prompt>
> <MenuItem>
> <Name>Campus Directory</Name>
> <URL>http://<ipaddr:port>/voip_cd/input.xml</URL>
> </MenuItem>
> </CiscoIPPhoneMenu>
>
>
> ----- Original Message -----
> From: Anthony Mendoza <mailto:amendoza@Niku.com>
> To: cisco VoIP <mailto:cisco-voip@puck.nether.net>
> Sent: Monday, May 23, 2005 8:34 PM
> Subject: [cisco-voip] Custom Directory for IP Phones
>
> 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.
>
>
>
> ________________________________
>
> ______________________________________
_________
> cisco-voip mailing list
> cisco-voip@puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
>
>
> 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.
>
>



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.


Anthony Mendoza

2005-05-24, 8:45 pm

This is probably not the best thread for this, but:

Here's what my webserver is spitting out:

Escape character is '^]'.
GET
/scripts/ciscoDir.php?name=SEP00065327DD3B&locale=English_United_States
HTTP/1.1
Host: ciscodir.niku.com

HTTP/1.1 200 OK
Date: Wed, 25 May 2005 01:26:45 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Expires: -1
Connection: close
Transfer-Encoding: chunked
Content-Type: text/xml

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

0


I have no idea where the c8 and extra 0 at the end is coming from, but
now realize this is throwing off the phones... has anyone seen this
before and/or know of a way to turn whatever is causing it off?
--
Anthony Mendoza


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.


Anthony Mendoza

2005-05-24, 8:45 pm

So for anyone that gets stuck with this the fix is:

* Make sure you send out an HTTP header for "Content-length:"

In my case I just set it and there is no value, but it gets rid of the
c8/0 at the end. Has to do with "chunking" and now my phones are happy
happy. Now I just need my script to actually work
--
Anthony Mendoza

Anthony Mendoza sent a message, dated 5/24/2005 6:28 PM about :
> This is probably not the best thread for this, but:
>
> Here's what my webserver is spitting out:
>
> Escape character is '^]'.
> GET
> /scripts/ciscoDir.php?name=SEP00065327DD3B&locale=English_United_States
> HTTP/1.1
> Host: ciscodir.niku.com
>
> HTTP/1.1 200 OK
> Date: Wed, 25 May 2005 01:26:45 GMT
> Server: Apache/2.0.40 (Red Hat Linux)
> Expires: -1
> Connection: close
> Transfer-Encoding: chunked
> Content-Type: text/xml
>
> c8
> <CiscoIPPhoneMenu>
> <Prompt>Select a directory</Prompt>
> <MenuItem>
> <Name>Corporate Directory</Name>
> <URL>http://ciscodir.niku.com:80/scripts...ir.php?op=input</URL>
> </MenuItem>
> </CiscoIPPhoneMenu>
>
> 0
>
>
> I have no idea where the c8 and extra 0 at the end is coming from, but
> now realize this is throwing off the phones... has anyone seen this
> before and/or know of a way to turn whatever is causing it off?
> --
> Anthony Mendoza
>



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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com