IP Phone services - Rotate Image?

Unanswered Question
Jul 30th, 2007
User Badges:

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

%>




  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Jorge.Severino Mon, 07/30/2007 - 09:01
User Badges:

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

scott.weismann@... Mon, 07/30/2007 - 10:54
User Badges:

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?

Jorge.Severino Mon, 07/30/2007 - 11:10
User Badges:

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

scott.weismann@... Mon, 07/30/2007 - 18:36
User Badges:

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

rameshbalajiv Fri, 09/12/2008 - 09:52
User Badges:

Scott:


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


Thanking You

Ramesh Vasudevan

msabir Fri, 09/12/2008 - 20:06
User Badges:
  • Bronze, 100 points or more

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.

scott.weismann@... Mon, 09/15/2008 - 05:53
User Badges:

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.



mnour401917_2 Sun, 11/09/2008 - 21:33
User Badges:

Scott,


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


Cheers

Actions

This Discussion