Yealink Forums
T22 error after XML Browser - Printable Version

+- Yealink Forums (
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: General topics (/forumdisplay.php?fid=15)
+--- Thread: T22 error after XML Browser (/showthread.php?tid=4197)

T22 error after XML Browser - AndyM - 07-31-2015 09:49 PM

We are trying to program some of our T22P phones to activate a network-enabled relay (unlock doors, etc.) using the programmable keys. We have programmed one of the programmable keys to use XML Browser to trigger this functionality. Our relay controllers allow changes via URL in a format like http://ip.address/state.xml?relay1State=1 - when we tried calling this URL directly, the desired controller state was successfully triggered but the phone then displayed a "File layout error!" requiring an extra keypress. So we created our own XML file on our web server. If we have the controller provide no response, the phone gives a "Loading - please wait" message for a few seconds followed by a "Loading error". If the controller does provide a response, it jumps right to the "Loading error" - still requiring a keypress.

The controller responds with simple XML like the following:
<?xml version='1.0' encoding='utf-8'?>

The XML file we created on the web server is as follows:
<YealinkIPPhoneExecute Beep="yes">
<ExecuteItem URI="http://ip.address/state.xml?relay1State=1" />
<ExecuteItem URI="LED: SMS=slowflash"/>

I've read the XML Browser Developer's Guide, but it hasn't shed much light on trying to call a URL.

Is there some way for the phone to ignore the response completely, or to process the response and not show an error?