[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: 4
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
  not able to get sip and account related details using action uri rajat_asthana 0 639 12-26-2023 03:51 PM
Last Post: rajat_asthana
  T42G - Stuck at Welcome screen Maciejp 1 883 12-22-2023 01:47 AM
Last Post: complex1
  Model T42s and T42g, the speakerphone is enable on incoming calls Lissvazquez 6 2,926 07-28-2023 10:27 PM
Last Post: complex1
  Cannot export any files T42G Telcopc 1 2,362 10-07-2022 01:26 AM
Last Post: Telcopc
  Yealink T42G Phone stuck at Welcome LFC 12 30,661 08-08-2022 04:16 PM
Last Post: markvdheijden
  Yealink T42S and T42G Phone stuck at Welcome Pierre06 7 11,600 01-10-2022 11:36 PM
Last Post: Pierre06
  Action URI response asszem 0 2,337 10-21-2021 12:30 AM
Last Post: asszem
  T42G - Stuck at Welcome screen clevoip 1 5,250 10-15-2021 01:28 AM
Last Post: complex1
  Increase BLF Label Field T42G redmondsau 0 3,528 09-08-2020 11:12 PM
Last Post: redmondsau
  [SOLVED] OpenVPN not doing anything T42G V83 Danariel 5 16,617 03-27-2020 02:32 PM
Last Post: jamesg224

Forum Jump:


User(s) browsing this thread:

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