[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: #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 


Messages In This Thread
XML execute for Led - yeacpt - 04-26-2017, 06:22 AM
RE: XML execute for Led - yeacpt - 04-28-2017, 12:09 PM
RE: XML execute for Led - complex1 - 04-28-2017, 02:49 PM
RE: XML execute for Led - Johnson_Yealink - 04-28-2017, 03:40 PM
RE: XML execute for Led - yeacpt - 05-01-2017, 05:58 AM
RE: XML execute for Led - yeacpt - 05-04-2017, 10:53 AM
RE: XML execute for Led - yeacpt - 05-09-2017, 06:11 AM
RE: XML execute for Led - Johnson_Yealink - 05-19-2017, 01:51 AM
RE: XML execute for Led - CWR - 05-19-2017, 02:18 AM
RE: XML execute for Led - yeacpt - 05-19-2017 07:30 AM
RE: XML execute for Led - Johnson_Yealink - 05-22-2017, 02:23 AM
RE: XML execute for Led - yeacpt - 05-22-2017, 11:01 AM
RE: XML execute for Led - Johnson_Yealink - 05-25-2017, 08:32 AM
RE: XML execute for Led - Johnson_Yealink - 06-22-2017, 02:35 AM
RE: XML execute for Led - yeacpt - 06-22-2017, 10:52 AM
RE: XML execute for Led - Johnson_Yealink - 06-23-2017, 02:35 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  XML problems: Execute and Input Nevox 8 20,742 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