Created by: Raymond Warichet on 23-02-2013 11:22:05 AM Hi, I'm migrating an XML file from a 7970 to a 9971. I get an error message "HTTP Content Type Not Supported 23" The XML file has been stripped down to a bare minimum (example from the book), no luck I'm unable to find this error code back Any suggestions, please ?
Subject: Re: New Message from Raymond Warichet in IP Phone Services (IPPS) - IP Phon Replied by: Sascha Monteiro on 23-02-2013 05:36:24 PM how do you serve the file? it seems the http header is incorrect, it should be set to text/xml in most cases
> Raymond Warichet has created a new message in the forum "IP Phone Services > Questions": -------------------------------------------------------------- > Hi, > > I'm migrating an XML file from a 7970 to a 9971. > I get an error message > "HTTP Content Type Not Supported 23" > The XML file has been stripped down to a bare minimum (example from the > book), no luck > I'm unable to find this error code back > Any suggestions, please ? > -- > To respond to this post, please click the following link: > http://developer.cisco.com/web/ipps/community/-/message_boards/view_message/12298710or simply reply to this email.
Subject: RE: Re: New Message from Raymond Warichet in IP Phone Services (IPPS) - IP Replied by: Raymond Warichet on 24-02-2013 03:11:03 AM
Sascha Monteiro:
how do you serve the file?
Maybe a bit of context. The phones are part of an Asterisk network. Files are stored on a QNAP NAS. On Asterisk, there is an XML file specific to the phone, based on it's MAC address, SEP.conf.xml The file has a pointer to a "service" URL i.e. http://x.x.x.x:8x/Cisco/test.xml The content of the file **<CiscoIPPhoneMenu> **<Title>Australian Cisco Services</Title> **<Prompt>Choose a service</Prompt> **<MenuItem> **<Name>Weather</Name> **<URL>http://cisco.internect.net/weather.php</URL> **</MenuItem> **</CiscoIPPhoneMenu> I guess there is something wrong/missing. Any small working example, please ?
create a .htaccess file with the following line in it.
AddType text/xml .xml
and put it in the directory that your XML file is located in.
Normally Apache serves the files with content type application/xml, but the 9971 phone uses Allegro-Software-WebClient/4.34 which demands the content header be set by the webserver to text/xml
Some Cisco phones like the 7970 and the 6921 use the Pegatron-Unihan-Software library which will take the xml file with either content header.
This is highly phone-specific and also dependent on the firmware. For example the 8945 doesen't care, the 7961 does care, etc. etc.
If you are serving the files off some NAS running an embedded webserver it may not pay attention to .htaccess files.
Getting Started
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: