cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
840
Views
0
Helpful
10
Replies

IP Phone services - Rotate Image?

scott.weismann
Level 1
Level 1

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

%>

10 Replies 10

Jorge.Severino
Level 1
Level 1

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

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?

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

Ah. Sorry, I'm just not the best yet at this coding. Not sure how to use the SELECT CASE statement.

Got it working using ASP and header refresh!

Scott:

Please let me know how you have accomplished this using ASP.

Thanking You

Ramesh Vasudevan

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.

I've attached the files that I use to accomplish this. You will need to create the image XML files and then set one of the ASP files as the Idle Url on the phones that you want to use it. Mine rotates between 3 images but you can have it be more or less if you like.

Scott,

Any chance that you would let me know, how to convert an Image to XML format.

Cheers

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: