Yealink Forums
XML problems: Execute and Input - 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 problems: Execute and Input (/showthread.php?tid=1327)



XML problems: Execute and Input - Nevox - 02-26-2014 05:53 PM

Dear all,
having some experience with Aastra phones, I made small application using the xmlBrowser of T46G phones. I'm facing 2 problems:
- using YealinkIPPhoneExecute, I cannot redirect to a new page (the page is called, the action is done - statusObject -, but the phone always show "Loading"). So, impossible to light a led AND show something on the screen without having to press cancel button.
- using YealinkIPPhoneInputScreen, the data filled are well transfered to the URL given in the xml, the following page are taken into account, BUT the phone come back to the inputScreen. So, once more, need to press some button to come back to the idle screen.

Do I made some errors while building the script? Do other users have those problems?
Best Regards,
Alban


RE: XML problems: Execute and Input - Yealink Support - 02-27-2014 09:07 AM

Hi Nevox,

Can you share your xml files with me? So we can debug from your script.
You can also refer to more details in XML broswers developer guide-V72.
Yealink_XML_Browser_Developer_V72


RE: XML problems: Execute and Input - Nevox - 02-27-2014 07:16 PM

Hello,
First step: when the user press some function key, the server send:
<YealinkIPPhoneInputScreen type="number"><URL>https://192.168.0.2/yealink/sample.php?type=fwd2&name=111&keynum=4</URL><InputField><Prompt>Destination:</Prompt><Parameter>num</Parameter><Selection>Selection</Selection><Default/></InputField></YealinkIPPhoneInputScreen>

Then the user enter a number, press "Send", the server answer:

<YealinkIPPhoneExecute><ExecuteItem URI="Led: MEMO4_RED=on"/><ExecuteItem URI="https://192.168.0.2/yealink/sample.php?type=aff&mess=Transfert : &al=Poste : 111"/></YealinkIPPhoneExecute>

The phone call then the given url. The server answers:

<YealinkIPPhoneStatus SessionId="Session" Timeout="0"><Message Size="double" Align="center" Color="black">Poste : 111</Message><Message Size="double" Align="center" Color="red">Transfert : </Message></YealinkIPPhoneStatus>

At the end, all the commands have been taken into account (led4 is red, the messages are shown in the screen). BUT the phone still show "Loading". Pressing "Cancel" send back to the input form.
BR,
Alban


RE: XML problems: Execute and Input - Nevox - 03-06-2014 06:41 PM

Hello, yealink support (or anybody else), could you reproduce this behavior? Is it normal?
BR,
Alban


RE: XML problems: Execute and Input - Yealink Support - 03-11-2014 02:24 PM

Hi Alban,

Do you use the same template in yealink website for xml browser?
Yealink_XML_Browser_Developer_V72

Or you can send me all the xml files you put into phones now that i can test in my phone.

BTW, We will release a version which solve some problems in XML Browser for T2X-T4X in near later.


RE: XML problems: Execute and Input - Nevox - 03-11-2014 04:21 PM

Hello,
I use the same template from yealink documentation. Here are some files :

fwd.xml:
<?xml version="1.0" encoding="UTF-8"?>
<YealinkIPPhoneInputScreen type="number"><URL>https://192.168.0.2/yealink/fwd2.xml</URL><InputField><Prompt>Destination:</Prompt><Parameter>num</Parameter><Selection>Selection</Selection><Default/></InputField></YealinkIPPhoneInputScreen>

fwd2.xml:
<?xml version="1.0" encoding="UTF-8"?>
<YealinkIPPhoneExecute><ExecuteItem URI="Led: MEMO4_RED=on"/><ExecuteItem URI="https://192.168.0.2/yealink/fwd3.xml"/></YealinkIPPhoneExecute>

fwd3.xml:
<?xml version="1.0" encoding="UTF-8"?>
<YealinkIPPhoneStatus SessionId="Session" Timeout="0"><Message Size="double" Align="center" Color="black">Poste : 111</Message><Message Size="double" Align="center" Color="red">Transfert : </Message></YealinkIPPhoneStatus>

IMO, the troubles come from:
ExecuteItem URI="http.... : the page is called, but loading remains on screen.
YealinkIPPhoneInputScreen : the form is handled as it has to, but, after commiting results, it comes back to the initial page.

BR,


RE: XML problems: Execute and Input - Yealink Support - 03-11-2014 05:41 PM

Sorry. It has many bugs in our XML Browser feature now and we will release a new XML Browser this week.
Please kindly wait and test then.


RE: XML problems: Execute and Input - Nevox - 05-14-2014 05:58 PM

Hello,
2 months now after your last reply, xml browser still suffer lots of limitations (for T46G and also for T48G). Do you have any idea of the dev team schedule?
BR


RE: XML problems: Execute and Input - Yealink Support - 05-15-2014 10:27 AM

Sorry. We will keep those firmware as custom firmware.
You can have a try with below firmwares.
T46G-XML-Browser-Beta