Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

IP Phone services - Rotate Image?

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
New Member

Re: IP Phone services - Rotate Image?

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

New Member

Re: IP Phone services - Rotate Image?

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?

New Member

Re: IP Phone services - Rotate Image?

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

New Member

Re: IP Phone services - Rotate Image?

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

New Member

Re: IP Phone services - Rotate Image?

Got it working using ASP and header refresh!

New Member

Re: IP Phone services - Rotate Image?

Scott:

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

Thanking You

Ramesh Vasudevan

New Member

Re: IP Phone services - Rotate Image?

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.

New Member

Re: IP Phone services - Rotate Image?

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.

New Member

Re: IP Phone services - Rotate Image?

Scott,

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

Cheers

Re: IP Phone services - Rotate Image?

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.

246
Views
0
Helpful
10
Replies