cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
388
Views
0
Helpful
3
Replies

7970 XML generated from CFM

scottgalloway
Level 1
Level 1

I am having trouble getting the following code to work (it just seems to hang while requesting even though it works fine on a IE6 browser). Can someone help?

(Note:the XXXXX would be the physical IP address)

<cfparam name="text" default="">

<cfparam name="value" default="">

<cfset text = text & value>

<cfoutput>

<cfcontent type="text/xml" reset="Yes">

<?xml version="1.0" encoding="ISO-8859-1"?>

<!--- <?xml version="1.0" encoding="UTF-8"?> --->

<CiscoIPPhoneGraphicFileMenu>

<Title>Keyboard</Title>

<Prompt>Current Value:#text#</Prompt>

<LocationX>-1</LocationX> <LocationY>-1</LocationY>

<URL>http://xxxxxxx/voip/keyboard.png</URL>

<MenuItem>

<Name>1</Name>

<URL>http://xxxxxx/voip/keyboard1.cfm?value=1</URL>

<TouchArea X1="20" Y1="25" X2="45" Y2="50"/>

</MenuItem>

</CiscoIPPhoneGraphicFileMenu>

</cfoutput>

Scott

3 Replies 3

stephan.steiner
Spotlight
Spotlight

I don't know CFM, but can you check what your webserver delivers (run a sniffer) to the phone.

aaronw.ca
Level 5
Level 5

Just a quick thought to try out -

Try your example without the two "xml version" lines (the directive and the comment - remove them both completely), and see if that works. I recall having an issue with sending the version string to the phone some time ago, but don't recall the exact details at the moment.

You might also want to check the resolution of your keyboard.png and make sure it's within the phone's capabilities (298x168?), and try using 1 instead of -1 for the x and y starting coordinates (shouldn't be an issue, but never hurts to try eliminating everthing in debugging...)

I tried removing the "xml version" directives, and I change the x/y starting coordinates...it didn't fix the problem :-(

The PNG image is the correct resolution (it is the one supplied with the SDK) I have even tried adding a:

hoping that perhaps there was a header that needed to be passed that was missing...no luck.