Yealink Forums
XML Error - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: T4x Series (/forumdisplay.php?fid=31)
+--- Thread: XML Error (/showthread.php?tid=41736)



XML Error - Hartwig - 04-20-2018 03:50 PM

Hello,

i get an File Layout error when i execute this file and choosen the option oeffnen

When a call http://192.168.139.142/remote/?login=remote&pass=rroste&koid=18781&kovalue=1 in a browser, i get an answer

OK;18781;1;

I think, that den XML Browser need an other answer. Is there an other way to send information to an webservice


Hartwig



<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneTextMenu
defaultIndex="10"
style="none"
Beep="yes"
wrapList="yes"
Timeout="45"
cancelAction="http://192.168.139.142/xml/30.xml"
previous="http://192.168.139.142/xml/30.xml"
LockIn="no">

<Title wrap="yes" >MFR</Title>

<MenuItem>
<Prompt>Gardine Tuere</Prompt>
<SoftKey index="1">
<Label>oeffnen</Label>
<URI>http://192.168.139.142/remote/?login=remote&pass=rroste&koid=18781&kovalue=1</URI>
</SoftKey>

<SoftKey index="3">
<Label>EXIT</Label>
<URI>SoftKey:Exit</URI>
</SoftKey>
</MenuItem>
</YealinkIPPhoneTextMenu>


RE: XML Error - Lucia_Yealink - 04-23-2018 08:06 AM

HI Hartwig,

If I don't misunderstand you, you mean you put the URI in the broswer directly, the phone can show OK;18781;1; can you provide a screenshot of the phone for me?
Also, can you explain what is the purpose to use this URI? What is the scenario?
Accept above information, please provide the information below, I will let our R&D do further analyse:
1. Provide the 30xml file
2. Provide the level 6 syslog, config.bin and PCAP when you reproduce the issue(Update the firmware to the latest version before test). Refer to the FAQ to collect the files:
http://support.yealink.com/faq/faqInfo?id=707

BTW, how many phones you have in total? What is the phone model and firmware?

BR
Lucia


RE: XML Error - Hartwig - 04-23-2018 11:47 AM

Hello

first i found the problem.

The purpose of the URI is a REST API of a smarthome system.

With the URI i can open or close the curtain, or start an light with the phone.

The Problem was, that the xml browser produce an file layout error, when the rest-api return an html answer instead of an xml answer.

i found a way to include a php tag in the xml file that return an answer in an xml tag.