[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
T42G - Action URL and XML browser
Author Message
Flora_Yealink Offline
Senior Member
****

Posts: 265
Joined: Oct 2012
Reputation: 2
Post: #4
RE: T42G - Action URL and XML browser
Thanks Christoph.
How about using SIP Notify ,does it can work ?
and for the trace of push xml, please refer to attached.
and this is template file for your reference
<?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 = "<YealinkIPPhoneExecute Beep=\"yes\">\n";
$xml .= "<ExecuteItem URI=\"Led:LINE2_GREEN=on\"/>";
$xml .= "</YealinkIPPhoneExecute>\n";

push2phone("10.2.5.174","10.2.10.74",$xml);



#replace 10.2.5.174 with your Apache ip address
#replace 10.2.10.74 with your phone ip address
?>

Best Regards!
Flora


Attached File(s)
.pcap  28.73.193.50_16_18_36.pcap (Size: 54.58 KB / Downloads: 5)
03-21-2015 12:05 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
T42G - Action URL and XML browser - MRS - 03-18-2015, 06:37 PM
RE: T42G - Action URL and XML browser - Flora_Yealink - 03-21-2015 12:05 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Yealink T42G Phone stuck at Welcome LFC 8 14,699 11-18-2021 11:20 PM
Last Post: Pierre06
  Action URI response asszem 0 288 10-21-2021 12:30 AM
Last Post: asszem
  T42G - Stuck at Welcome screen clevoip 1 612 10-15-2021 01:28 AM
Last Post: complex1
  Increase BLF Label Field T42G redmondsau 0 1,443 09-08-2020 11:12 PM
Last Post: redmondsau
  [SOLVED] OpenVPN not doing anything T42G V83 Danariel 5 8,711 03-27-2020 02:32 PM
Last Post: jamesg224
  T42G with firmware T42-29.83.0.120.rom compsos 1 3,408 02-03-2020 07:48 PM
Last Post: complex1
  Move from SfB to Teams with T42G helios.comms 0 2,164 05-21-2019 07:51 PM
Last Post: helios.comms
  Action URL Firmware Bug in 66.84.0.15 rickstinson 0 2,524 03-25-2019 07:57 AM
Last Post: rickstinson
  Browser Login failed Bernahrd 2 4,032 01-24-2019 09:46 AM
Last Post: Bernahrd
  Echo when using headset on T46S and T42G IZT-crobinson 0 2,761 11-27-2018 02:25 AM
Last Post: IZT-crobinson

Forum Jump:


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

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