07-30-2007 08:10 AM - edited 03-13-2019 04:19 PM
I've been working with one of my web guys and we can't seem to figure this out. I have three images that I want to rotate thru on a 7960 phone via the idle url. I'm using the code below to pull up an image. According to the Cisco documents, I should be able to add response.addheader ("Refresh", "3", URL) and it should go to the next logo but it's not. How do I get this to work?
<%
Set mydoc = Server.CreateObject("Microsoft.XMLDOM")
mydoc.async = False
mydoc.load(Server.MapPath("logo.xml"))
Response.ContentType = "text/XML"
Response.write mydoc.xml
%>
07-30-2007 09:01 AM
Hi scott,
I think when you refresh, your script doesn't know that he have to send another image to the phone..
Maybe you can try something like:
"
Select Case (ID_IMG)
Case 1:
response.addheader ("Refresh", "3", URL+"?ID_IMG=2")
mydoc.load(Server.MapPath("logo1.xml"))
...
Case 2:
response.addheader ("Refresh", "3", URL+"?ID_IMG=0")
mydoc.load(Server.MapPath("logo2.xml"))
...
Case else:
response.addheader ("Refresh", "3", URL+"?ID_IMG=1")
mydoc.load(Server.MapPath("logo.xml"))
...
End Select
"
I don't know if this work, is just an idea..
Greatings.
Jorge
07-30-2007 10:54 AM
Well, I added that to my script and the phone is now displaying an error that refers to line 5 (which is the beginning of what I added. See modified script below:
<%
Set mydoc = Server.CreateObject("Microsoft.XMLDOM")
mydoc.async = False
"
Select Case (ID_IMG)
Case 1:
response.addheader ("Refresh", "3", URL+"?ID_IMG=2")
mydoc.load(Server.MapPath("sonly.xml"))
...
Case 2:
response.addheader ("Refresh", "3", URL+"?ID_IMG=0")
mydoc.load(Server.MapPath("logo.xml"))
...
Case else:
response.addheader ("Refresh", "3", URL+"?ID_IMG=1")
mydoc.load(Server.MapPath("text.xml"))
...
End Select
"
Response.ContentType = "text/XML"
Response.write mydoc.xml
%>
Any other ideas?
07-30-2007 11:10 AM
The Code is just for reference.. an idea..
You don't have to put comiles (") and '...'.
I'm just suggest you to use SELECT CASE statement on your script..
Is not a "copy/paste" code.
Jorge
07-30-2007 06:36 PM
Ah. Sorry, I'm just not the best yet at this coding. Not sure how to use the SELECT CASE statement.
07-31-2007 08:52 AM
Got it working using ASP and header refresh!
09-12-2008 09:52 AM
Scott:
Please let me know how you have accomplished this using ASP.
Thanking You
Ramesh Vasudevan
09-12-2008 08:06 PM
I have an example code, but it is in JSP and it is used by PhoneTop Messenger's Idle URL feature, which allows admins to create an Idle URL service with rotating images and/or text.
09-15-2008 05:53 AM
11-09-2008 09:33 PM
Scott,
Any chance that you would let me know, how to convert an Image to XML format.
Cheers
11-10-2008 01:52 AM
Have a look at the ip phone services sdk - it contains an example: http://developer.cisco.com/web/ipps/home
And depending on the phone type you could work with CiscoIPPhoneImage which accepts PNG images natively.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide