Yealink Forums
XML execute for Led - 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 execute for Led (/showthread.php?tid=40811)

Pages: 1 2


XML execute for Led - yeacpt - 04-26-2017 06:22 AM

Hi,

I have upgraded a T46G to T46-28.81.0.71 and the following XML Execute is not working anymore:

Led:POWER=on

This was working in my previous firmware (81.0.25)

It is still working for the following:

Key:OK

Is there any new syntax? or any bug?

Regards.


RE: XML execute for Led - yeacpt - 04-28-2017 12:09 PM

Hi,

Any hopes that someone from Yealink will answer to this problem?

We have applications that control the Led state, but with the 28.81.0.71 firmware it is not working anymore.

Please we need to correct it.

Regards.


RE: XML execute for Led - complex1 - 04-28-2017 02:49 PM

yeacpt Wrote:We have applications that control the Led state, but with the 28.81.0.71 firmware it is not working anymore.

Hi,

Firmware version 28.81.0.71 is not official released by Yealink.
Please try 28.81.0.70.
http://download.support.yealink.com/download?path=upload%2Fattachment%2F2017-3-14%2F6%2F5ed5c60a-ca9d-44dd-a97f-c0acbd1731f0%2FT46-28.81.0.70.zip

Hope this helps.


RE: XML execute for Led - Johnson_Yealink - 04-28-2017 03:40 PM

Dear Sir,

This is Johnson from Yealink technical support team.Nice to work with you.
I am sorry to reply your issue so late.

For this issue,please provide your XML file for me.I need take a test environment to confirm this issue.

BR
Johnson


RE: XML execute for Led - yeacpt - 05-01-2017 05:58 AM

Hi,

Thanks for your answer.

Here is my php script:

function _execute_command_by_ip($myIp, $myCmd) {

$data = '<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneExecute
Beep="yes"
>
<ExecuteItem URI = "' . $myCmd . '"/>
</YealinkIPPhoneExecute>
';

$xml = "xml=".$data;
$post = "POST / HTTP/1.1\r\n";
$post .= "Host: $myIp\r\n";
$post .= "Connection: Keep-Alive\r\n";
$post .= "Content-Type: text/xml\r\n";
$post .= "Content-Length: ".strlen($xml)."\r\n\r\n";
$fp = @fsockopen ( $myIp, 80, $errno, $errstr, 1);
if($fp) {
fputs($fp, $post.$xml);
flush();
fclose($fp);
}

}

I can hear the beep but nothing happen with the leds with "Led: POWER=on".

If I use commands "Key:" or "Dial:" is is working fine.

The 28.81.0.70 is also not working for the Leds.

Regards.


RE: XML execute for Led - yeacpt - 05-04-2017 10:53 AM

Hi,

Can you please tell me what to do with this bug?

It is very annoying.

Regards.


RE: XML execute for Led - yeacpt - 05-09-2017 06:11 AM

Hi,

I have tested the new firmware T46-28.81.0.90.

The bug is still there and nobody seems to care about the fact that a function that is documented is not working anymore!

May we hope that someone from Yealink will look at it?

Regards.


RE: XML execute for Led - Johnson_Yealink - 05-19-2017 01:51 AM

Dear Sir,

I am sorry your reply email so late.
Trough you provide XML file, this is a old XML template.
It can't compatibility V81 firmware.
Please download new XML template via below link.
[url=http://download.support.yealink.com/download?path=upload%2Fattachment%2F2017-5-9%2F5%2F0e76be6f-7df7-4788-830c-fc3d7fce3918%2FYealink_SIP_Phones_AutoProvisioning_Template_V81.90.zip]

path:
Yealink_SIP_Phones_AutoProvisioning_Template_V81\XML\XMLBrowser

BR
Johnson


RE: XML execute for Led - CWR - 05-19-2017 02:18 AM

The link above gave a 404.
http://download.support.yealink.com/download?path=upload%2Fattachment%2F2017-5-9%2F5%2F2ff149b5-edff-40fa-8c11-bf7fda646e94%2FYealink_SIP_Phones_AutoProvisioning_Template_V81.90.zip


RE: XML execute for Led - yeacpt - 05-19-2017 07:30 AM

Dear Sir,

Thank you for your answer.
I have done some tests with the template that is on the link on your previous post and the result is still the same.

The following are working:

$xml .= "<ExecuteItem URI=\"Key:OK\"/>";
$xml .= "<ExecuteItem URI=\"Key:CANCEL\"/>";

And this one is not working:

$xml .= "<ExecuteItem URI=\"Led:POWER=on\"/>";

Here what I did use:

function push2phone($server,$phone,$data)
{
$xml = "xml=".$data;
$post = "POST / HTTP/1.1\r\n";
$post .= "Host: $phone\r\n";
$post .= "Referer: $server\r\n";
$post .= "Connection: Keep-Alive\r\n";
$post .= "Content-Type: text/xml\r\n";
$post .= "Content-Length: ".strlen($xml)."\r\n\r\n";
$fp = @fsockopen ( $phone, 80, $errno, $errstr, 5);
if($fp)
{
fputs($fp, $post.$xml);
flush();
fclose($fp);
}
}
##############################

$xml = "<YealinkIPPhoneExecute Beep=\"yes\">\n";
$xml .= "<ExecuteItem URI=\"Led:POWER=on\"/>";
$xml .= "</YealinkIPPhoneExecute>\n";

push2phone("10.1.3.8","10.1.3.180",$xml);

#replace 10.1.3.8 with your Apache ip address
#replace 10.1.3.180 with your phone ip address

(of course, I have replaced the above IPs with the correct ones)


I hope that this time you will answer quickly...

Regards.