[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML execute for Led
Author Message
yeacpt Offline
Junior Member
**

Posts: 44
Joined: Jul 2014
Reputation: 0
Post: #1
XML execute for Led
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.
04-26-2017 06:22 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
yeacpt Offline
Junior Member
**

Posts: 44
Joined: Jul 2014
Reputation: 0
Post: #2
RE: XML execute for Led
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.
04-28-2017 12:09 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
complex1 Offline
3CX Adv. Cert. Engineer
*****

Posts: 1,526
Joined: Jan 2014
Reputation: 44
Post: #3
RE: XML execute for Led
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/down...1.0.70.zip

Hope this helps.

Kind regards,
Frank.

I am not an employee of Yealink.
Dutch is my native language, not English. Apologies for my imperfect grammar.
Please do not send unsolicited PM messages. I will not answer them.
04-28-2017 02:49 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Johnson_Yealink Offline
Administrator
*******

Posts: 65
Joined: Apr 2017
Reputation: 0
Post: #4
RE: XML execute for Led
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
04-28-2017 03:40 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
yeacpt Offline
Junior Member
**

Posts: 44
Joined: Jul 2014
Reputation: 0
Post: #5
RE: XML execute for Led
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.
(This post was last modified: 05-01-2017 08:58 AM by yeacpt.)
05-01-2017 05:58 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
yeacpt Offline
Junior Member
**

Posts: 44
Joined: Jul 2014
Reputation: 0
Post: #6
RE: XML execute for Led
Hi,

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

It is very annoying.

Regards.
05-04-2017 10:53 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
yeacpt Offline
Junior Member
**

Posts: 44
Joined: Jul 2014
Reputation: 0
Post: #7
RE: XML execute for Led
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.
05-09-2017 06:11 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Johnson_Yealink Offline
Administrator
*******

Posts: 65
Joined: Apr 2017
Reputation: 0
Post: #8
RE: XML execute for Led
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
05-19-2017 01:51 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #9
RE: XML execute for Led
The link above gave a 404.
http://download.support.yealink.com/down...V81.90.zip

Craig Reilly
MCSA, 3cx Advanced Certified
Scottsdale, AZ
05-19-2017 02:18 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
yeacpt Offline
Junior Member
**

Posts: 44
Joined: Jul 2014
Reputation: 0
Post: #10
RE: XML execute for Led
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.
05-19-2017 07:30 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  XML problems: Execute and Input Nevox 8 20,783 05-15-2014 10:27 AM
Last Post: Yealink Support

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication