02-03-2007 10:13 PM - edited 03-13-2019 03:54 PM
hello here is my environnement variable
Windows Xp pro SP2
Cisco SDK
Appache 2.4 web serveur
XML File like this one
<CiscoIPPhoneMenu>
<Title>RTPTx</Title>
<Prompt>choose your destination ip</Prompt>
<MenuItem>
<Name>10.11.164.42</Name>
<URL>RTPTx:10.11.164.42:24636</URL>
</MenuItem>
<MenuItem>
<Name>STOP</Name>
<URL>RTPTx:Stop</URL>
</MenuItem>
</CiscoIPPhoneMenu>
When I use IE explorer to see the file, it' ok, I see the file as XML (black and red text). When I tell the phone to get the XML file (via apache web serveur).
the file is loaded, but as TEXT and not XML. So the result, is that I can read the XML file like in "wordpad" on the screen of the 7960 phone
I've try my file on the aptigen phone emulator and everything is displaying as XML. (it seem that it's a good product)
http://www.aptigen.net/DesktopDefault.aspx?tabindex=1&tabid=52
My question:
How can I make the phone understand that this is not a text file but a XML file ?
Solved! Go to Solution.
02-05-2007 12:27 PM
It must be pure XML (not HTML), and the content-type header must be 'text/xml'.
I believe you can use apache rules to force the web server to send down text/xml for content-type instead of text/plain or text/html or whatever it is it's sending.
02-05-2007 06:37 AM
The content-type header must be 'text/xml'
02-05-2007 09:06 AM
Content-Type: text/xml; charset=ISO-8859-1
.............
i do have try to put that at the beginning of the file. But, nothing change, the phone continue to load ? text file.
02-05-2007 09:25 AM
Content-type is a a header, not a part of the response body.
02-05-2007 10:30 AM
thanks, but nothing is working, I think that i absolutely need asp to make everything works.
Do you have a working example of a basic xml file that is working on a 7960 ?
I do have try this:
.......
02-05-2007 12:27 PM
It must be pure XML (not HTML), and the content-type header must be 'text/xml'.
I believe you can use apache rules to force the web server to send down text/xml for content-type instead of text/plain or text/html or whatever it is it's sending.
02-12-2007 06:04 AM
thanks for the tips,
I do have found in the apache configuration
that:
.xml files have a rewrite header of text/html
I change the file "myme.types" in the "\appache\conf\" folder and everything was working perfect !
now the appache web server is sending a text/xml header to the cisco IP phone
02-13-2007 02:45 AM
IS there any configuration needed for IIS in windows 2000 server also.I found there content type text/xml.
My ccm is 4.1(3)
IP phone 7912
getting error Not Available
XML error[!5]
any suggestions welcome
Regards,
02-13-2007 05:59 AM
Hey--that's not really enough info for me to go off of, but XML error[!5] seems to tell me that your XML is not valid.
What is the XML you are sending in your script? Have you tried to view the XML in a web browser? IE or FF can act as a simple way to verify that you are sending valid XML.
Post the XML here--maybe there is something obviously amiss...
02-13-2007 06:21 AM
02-13-2007 06:49 AM
Order of the elements matter with XML.
Find GraphicMenu in this PDF:
Notice how Title comes first, for instance--try to correct your own XML to fit that.
02-14-2007 10:33 AM
http://www.aptigen.net/DesktopDefault.aspx?tabindex=1&tabid=52
is a good product for testing xml on a phone
you have to consider also that 7912 cisco phone have a more limited xml browser than other models.
also, in the sp?cification, you have to get all the latest update for the IIS (the latest IIS is 6.0) and you have to make sure to install the msxml3sp2setup.exe (include in the sdk of cisco)
05-09-2007 11:34 PM
Hi,
I has the same problem as you but I use apache2. Can you tell me the changes that you done in mime.types because I tried different things at it doesn't work.
Thank you
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: