New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details
http://forum.yealink.com/forum/showthread.php?tid=40344

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!
http://forum.yealink.com/forum/announcements.php?aid=18

We just had the YMCS online and we are also working on the features plan on the future versions, in this regard we are need to hear your voice about the YMCS.
Please visit : http://forum.yealink.com/forum/showthread.php?tid=42322


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PUSH XML PROBLEM
Author Message
Flora_Yealink Offline
Senior Member
****

Posts: 265
Joined: Oct 2012
Reputation: 1
Post: #4
RE: PUSH XML PROBLEM
Hi Alex,
I have tested T28 with the latest V73 version and configure the Push XML Server IP Address with the server's IP , please make sure it can't be left as blank or any.

<?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 = "<YealinkIPPhoneTextScreen Beep=\"yes\">\n";
$xml .= "<Title>Push test</Title>\n";
$xml .= "<Text>This is a test for pushing text to a phone.</Text>\n";
$xml .= "</YealinkIPPhoneTextScreen>\n";

push2phone("10.2.5.134","10.15.5.24",$xml);
push2phone("10.2.5.134","10.15.5.59",$xml);
push2phone("10.2.5.134","10.3.5.183",$xml);

#replace 10.2.5.134 with your Apache ip address
#replace 10.15.5.24 with your phone ip address
?>


Best Regards!
Flora
05-22-2015 06:59 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
PUSH XML PROBLEM - ademeo - 05-22-2015, 03:44 PM
RE: PUSH XML PROBLEM - Flora_Yealink - 05-22-2015, 04:58 PM
RE: PUSH XML PROBLEM - ademeo - 05-22-2015, 05:07 PM
RE: PUSH XML PROBLEM - Flora_Yealink - 05-22-2015 06:59 PM
RE: PUSH XML PROBLEM - ademeo - 05-22-2015, 07:26 PM
RE: PUSH XML PROBLEM - ademeo - 05-22-2015, 10:52 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  "On hook" event problem Rafal 1 595 07-13-2019 02:59 AM
Last Post: Brenda_Yealink
  Problem with low-level firmware of telephone T21 E2 protaganist 5 1,909 01-21-2019 11:50 AM
Last Post: protaganist
  T21P dial problem oguzhan 2 1,637 06-20-2018 09:27 AM
Last Post: oguzhan
  Known problem - redial from history Rafal 4 2,462 03-21-2018 06:24 AM
Last Post: Rafal
  Problem with alert BLF in T27P hercross 5 2,685 03-01-2018 05:58 PM
Last Post: Evan_Yealink
  Yealink T21P E2 Communication Problem Windland_Support 1 2,701 08-16-2017 02:44 AM
Last Post: Kevin_Yealink
  SIP T22P Problem liamretrams 2 3,496 06-01-2017 11:22 AM
Last Post: wcolato
  T22P push xml v61 version Qwerty 0 1,248 12-05-2016 11:02 AM
Last Post: Qwerty
  Push XML v61 guide Qwerty 0 1,066 12-02-2016 12:44 PM
Last Post: Qwerty
Question T27P, Attend transfer problem with yeastar Atontel 0 2,120 09-14-2016 07:57 PM
Last Post: Atontel

Forum Jump:


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

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