08-18-2010 07:02 AM
Hi
I have a strange problem here I display something much like this:
<CiscoIPPhoneMenu>
<Title>Title text goes here</Title>
<Prompt>Prompt text goes here</Prompt>
<MenuItem>
<Name>The name of each menu item</Name>
<URL>The URL associated with the menu item</URL>
</MenuItem>
</CiscoIPPhoneMenu>
08-19-2010 01:15 AM
08-19-2010 02:00 AM
Very likely - the phones expect the XML to be 100% accurate; no case inconsistency, no odd white space, no spelling errors.. no missing attributes :-)
If you don't actually want a menu, don't use a menu object; plain text can be shown with an object like so:
<CiscoIPPhoneText>
<Title>Title text goes here</Title>
<Prompt>The prompt text goes here</Prompt>
<Text>The text to be displayed as the message body goes here</Text>
</CiscoIPPhoneText>
Regards
Aaron
Please rate helpful posts...
08-19-2010 03:08 AM
Yeah my idea too, so I cleaned it up.
Heres the exact output:
<?xml version="1.0" encoding="utf-8" ?>
<CiscoIPPhoneText>
<Title>Hunt gruppe menu</Title>
<Prompt>System fejl, ukendt telefon</Prompt>
<Text>System fejl, ukendt telefon</Text>
</CiscoIPPhoneText>
And tada.... Still not working on the 7940
08-19-2010 03:14 AM
Do you still get error 202? Having re-read the original post I think you have a server-side error.. See this URL for a description of it : http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
The error is returned from your web server; normally you would return a code 200 with the content. I suspect something the 7940 is requesting may be causing your web server to error.
I would do a packet capture of the traffic; you can do this on your web server most easily and compare the request/response from a working phone to the equivalent from a 7940 (or post it back here).
It may also be worth checking your logs or trying to debug your web code (not sure what you are running/coding in) as I think the error is almost definately at the server end.
Regards
Aaron
08-19-2010 03:51 AM
Im using a Java / Rest / Jersey / Guice combo.. I'll take a peak with wireshark and see whats going on, and thanks for the hint..
08-19-2010 04:10 AM
08-19-2010 05:00 AM
Hi Nino
There's no data returned to either phone in that capture... have you filtered it in some odd way?
Aaron
08-19-2010 06:09 AM
Must have, I'll continue it tomorrow when near the hardware..
08-19-2010 11:31 PM
08-20-2010 12:36 AM
Hi Nino
I think the problem is the 202 return code; your web server is returning XML OK, but I think the older model phone is simply more picky about the return code. It will be looking for a 200 and seeing anything else as an error...
I'm not overly familiar with your web server but I suspect from doing a quick google that '202' means a request has been accepted and further stuff may occur; rather than a 200 which means 'we're all done'.
Maybe look into how you can get your server to return a 200?
Alternately if you can serve flat files, try returning the static XML with a normal 200 code maybe from apache/iis or something to prove the concept.
Aaron
08-20-2010 01:11 AM
Right on, changing it to 200 worked right away.. Thanks!
08-20-2010 03:54 AM
Great - happy to help!
Aaron
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