Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
IP Phone Services (IPPS) Developer Center
Overview
Documentation
Community
Wiki
Testing
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to IP Phone Services Questions
RE: Image not refreshing
Threads [
Previous
|
Next
]
David Mulveney
Posts:
3
Join Date:
3/6/13
Recent Posts
Image not refreshing
Answer
3/6/13 9:29 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I am using perl to create some phone services. I have created one that will go out to the web to get an image and convert it to the CIP format to be displayed on a phone. This part is working correctly. I would like to have the service refresh every few minutes so the image stays up to date. Here is the code I am using to create the header:
my $q = CGI->new;
print $q->header(-type=>'text/xml',-Refresh=>'10');
When testing in a web browser this makes the page refresh every 10 seconds as expected, but on the 7961 I am using to test it does not refresh. Is there something I am missing about creating the header for something like this?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
David Staudt
Posts:
395
Join Date:
6/4/08
Recent Posts
RE: Image not refreshing
Answer
3/6/13 9:40 PM as a reply to David Mulveney.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
A known issue with some phone models requires that the URL in the Refresh header be specified, e.g.:
Refresh: 0;url=http://page.to.refresh/to
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
David Mulveney
Posts:
3
Join Date:
3/6/13
Recent Posts
RE: Image not refreshing
Answer
3/7/13 3:23 PM as a reply to David Staudt.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I added a -url with the exact URL that needs to be refreshed, but the phone was not able to auto-refresh. Is there something wrong with the way I am constructing the header?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
David Staudt
Posts:
395
Join Date:
6/4/08
Recent Posts
RE: Image not refreshing
Answer
3/7/13 3:43 PM as a reply to David Mulveney.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Can you grab a network packet capture (e.g. via Wireshark) of the traffic and inspect the actual HTTP header?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
David Mulveney
Posts:
3
Join Date:
3/6/13
Recent Posts
RE: Image not refreshing
Answer
3/7/13 9:13 PM as a reply to David Staudt.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I grabbed a capture of traffic going to the phone as well as my laptop. In the capture for the phone I was able to see the url and refresh settings for the other page that is working, but the new page I am trying to create did not have either setting.
However, in the capture for my laptop the same page had the url and refresh settings in the http header. It seems for some reason when my page is being sent to the phone those settings are being stripped out or lost.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top