[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
Push/Pull idle image?
Author Message
grawil Offline
Junior Member
**

Posts: 3
Joined: Jun 2016
Reputation: 0
Post: #3
RE: Push/Pull idle image?
Michael,

Thanks for the offer of help, but the guide doesn't specify whether this image can be changed remotely using xml or some other programming interface. i.e.

Code:
<?php
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 = '<?xml version="1.0" encoding="UTF-8"?>';
$xml .= '<YealinkIPPhoneExecute Beep="no">';
$xml .= '<ExecuteItem URI="http://192.168.1.1/camera/yealink-cam.xml"/>';
$xml .= '</YealinkIPPhoneExecute>';

push2phone("192.168.1.1","192.168.1.118",$xml);

?>

and the xml file (yealink-cam.xml) that the phone then pulls:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<YealinkiPPhoneImageScreen Beep="no" mode="fullscreen">
<Image>http://192.168.1.63/axis-cgi/jpg/image.cgi</Image>
</YealinkiPPhoneImageScreen>
(This post was last modified: 06-20-2016 10:16 AM by grawil.)
06-20-2016 10:16 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
Push/Pull idle image? - grawil - 06-17-2016, 07:35 AM
RE: Push/Pull idle image? - grawil - 06-20-2016 10:16 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  XML Push without DSS key? testengineer 8 16,744 02-12-2018 01:16 PM
Last Post: Alibaba
  Push XML on T38G ruffle 8 15,467 06-17-2016 07:38 AM
Last Post: grawil
  Disabling BLF LED when state is idle PaulC 4 8,635 04-19-2013 10:00 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