 |
|
 |
|
|
 |
Custom Directory for IP Phones |
 |
 |
|
|
05-24-05 01:45 AM
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.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Custom Directory for IP Phones |
 |
 |
|
|
05-24-05 01:45 AM
Looks exactly like what our app.admin created. I remember that when I was fo
oling around with it, that the 'corporate directory' dissappeared when the U
RL was not accessible. We actually used that to remove the corporate directo
ry 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
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Custom Directory for IP Phones |
 |
 |
|
|
05-24-05 01:45 AM
Sure can. Looking at the webserver logs it gets the page fine .. I see t
he 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 fo
oling around with it, that the 'corporate directory' dissappeared when theUR
L was not accessible. We actually used that to remove the corporate director
y 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.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: Custom Directory for IP Phones |
 |
 |
|
|
05-24-05 01:45 AM
(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.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Custom Directory for IP Phones |
 |
 |
|
|
05-25-05 01:45 AM
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.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: Custom Directory for IP Phones |
 |
 |
|
|
05-25-05 01:45 AM
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.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 06:43 PM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|