08-20-2004 03:22 AM - edited 03-13-2019 06:05 AM
Hello everybody,
I noticed that the when I set HTTP headers, such as "Refresh" they work on IP Communicator, but not on real phone - though they both are connected to the same CM and run the same service. What can the problem be? The real phone model is 7960.
Hope to get a reply soon,
Best regards,
Victor
08-20-2004 04:28 AM
Hi Victor
They should work just fine for use with 7960's we use refresh in our product and it works fine.
How are you setting it - it needs to be a custom header - we use the following in our implementation language:
Response.setCustomHeader('Refresh', refreshStr)
where refreshStr may be:
'5; url=http://localhost/ciplet/ciplets.dll/SomeObject'
Hope this helps
Paul
08-20-2004 06:16 AM
Hi Paul,
Thank you for your reply!
I'm using ASP JScript, and Response.AddHeader to add headers, and there is no such thing as Response.setCustomHeader in ASP. Any more ideas?
Cheers,
Victor
08-20-2004 11:02 AM
Hi Victor
Can you post an example of how you're setting a Response page that includes the Refresh header that is not working?
Paul
08-21-2004 01:28 AM
Hi Paul,
here's the code:
<%
if (...)
{
Response.ContentType="text/xml";
Response.AddHeader("Expires", "-1");
Response.AddHeader("Refresh", "5");
%>
...
<%
}else{
Response.ContentType="text/xml";
Response.AddHeader("Expires", "-1");
Response.AddHeader("Refresh", "5");
%>
...
<%
};
I tried to use Response.AddHeader("Refresh", "5; url=http://server/script.asp"); but it won't work either(though works fine in web browser, IP Communicator and Phone Services Emulator.
Could the problem be with the phone load? Call Manager version is 3.3(4)
Best regards,
Victor
08-21-2004 08:14 AM
Victor
That's a strange one - the Response.Addheader("Refresh","5; url=http://server/script.asp");
should definitely work.
The expires header is a standard header, you can just do:
Response.Expires = -1;
I only have access to a CallManager version 4 at the moment but I'm 99% sure this worked no problem with 3.3. I'll try your script shortly and see whether it works here.
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