[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: #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
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,783 05-15-2014 10:27 AM
Last Post: Yealink Support

Forum Jump:


User(s) browsing this thread:

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