Yealink Forums

Full Version: t48G xml push does not work on new phones
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
We have 8 T48G phones running. I periodically push xml to them and it works fine. I just bought 3 more and none of them will display the
xml that is pushed. I upgraded all the phones to the latest firmware
and reset to factory defaults but it did not fix the problem.

I wiresharked the push and the xml is sending and the phone sends an "OK" response back. It's just that the data never displays.

Below is a test script...

10.0.2.27 works - old phone
10.0.2.28 does not work - new phone (tried two different new phones)
10.0.2.29 works - old phone
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=\"ISO-8859-1\"?>\n <YealinkIPPhoneStatus Beep = \"no\" SessionID=\"String\" Timeout = \"0\">\n";
$xml .="<Message Size=\"large\" Align=\"left\" Color=\"green\"  >" .date("F j, Y, g:i a") . "</Message>\n";
$xml .= "</YealinkIPPhoneStatus >\n";


push2phone("10.0.0.3","10.0.2.28",$xml);
push2phone("10.0.0.3","10.0.2.27",$xml);
push2phone("10.0.0.3","10.0.2.29",$xml);


?>
Hi ,
I used T48 here with phone version 35.73.0.50, it can work well .
my phone IP is :10.15.5.58,my pc ( push xml server) is 10.2.5.165. please refer to my steps and let me know if any question .
1. Configure Push XML Server IP Address with the xml server Ip address 10.2.5.165 , you can refer to attached file.
2. The use your php file , changing the phone's IP and server's IP as mine.
3. Push the php file to my phone, it show like attached file.


<?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=\"ISO-8859-1\"?>\n <YealinkIPPhoneStatus Beep = \"no\" SessionID=\"String\" Timeout = \"0\">\n";
$xml .="<Message Size=\"large\" Align=\"left\" Color=\"green\" >" .date("F j, Y, g:i a") . "</Message>\n";
$xml .= "</YealinkIPPhoneStatus >\n";


push2phone("10.2.5.165","10.15.5.58",$xml);
push2phone("10.0.0.3","10.0.2.27",$xml);
push2phone("10.0.0.3","10.0.2.29",$xml);


?>

In this case, would you please try again using the latest 35.73.0.50 version and reset the phone to factory default ?
If it still can't work , please share us config.bin file , level 6 syslog and pcap trace that we can sumit them to the R&D for check .
And you have three new phones, all can't work ,right ?
Best Regards!
Flora
Hmmm.... I don't think they are picking up the the mac.cfg file for some reason. I'm doing more testing.

What seems to be happening is that the phone is not reliably applying the settings from mac.cfg. Using wireshark I can see the file being read from the tftp server. The settings near the end of the file do not appear to apply correctly. The end of my mac.cfg files looked like this...

Code:
programablekey.4.line =
programablekey.4.value =
programablekey.4.label =
push_xml.server = 10.0.0.3

This never seemed to apply the "push_xml.server = 10.0.0.3" line. Then I added

Code:
programablekey.3.line =
programablekey.3.value =
programablekey.3.label =
programablekey.4.type =
programablekey.4.line =
programablekey.4.value =
programablekey.4.label =
push_xml.server = 10.0.0.3
features.power_led_on = 1

Then I got "push_xml.server = 10.0.0.3" to apply but "features.power_led_on = 1" didn't.

Next I changed to....
Code:
programablekey.3.line =
programablekey.3.value =
programablekey.3.label =
programablekey.4.type =
programablekey.4.line =
programablekey.4.value =
programablekey.4.label =
push_xml.server = 10.0.0.3
features.power_led_on = 1
phone_setting.active_backlight_level = 1

...and at that point "push_xml.server = 10.0.0.3" and "phone_setting.active_backlight_level = 1" applied but "features.power_led_on = 1" did not.

Then I reverted back to...

Code:
programablekey.3.line =
programablekey.3.value =
programablekey.3.label =
programablekey.4.type =
programablekey.4.line =
programablekey.4.value =
programablekey.4.label =
push_xml.server = 10.0.0.3

...and "push_xml.server = 10.0.0.3" server applied. So it really doesn't follow any logic as to what settings are applying and what settings are not but it does not appear to be always working correctly.
I can post the entire mac.cfg file and you can see what happens if you wish.
Yes, pleaes send me the all provisioning files that I can test it in my side , you can send them to support@yealink.com if you don't want to upload it to the forum, you used the 35.73.0.50 right ? just want to sure I can use the same steps as yours to test .
Best Regards!
Flora
(04-22-2015 04:35 PM)Flora Wrote: [ -> ]Yes, pleaes send me the all provisioning files that I can test it in my side , you can send them to support@yealink.com if you don't want to upload it to the forum, you used the 35.73.0.50 right ? just want to sure I can use the same steps as yours to test .
Best Regards!
Flora


mac.cfg file is attached

...and yes I used 35.73.0.50
Hi ,
I used your file to do auto provisioning, it work well, the push xml file are configured.
and I found features.power_led_on = and phone_setting.active_backlight_level = in the file is empty ,right ?

Best Regards!
(04-29-2015 06:18 AM)Flora Wrote: [ -> ]Hi ,
I used your file to do auto provisioning, it work well, the push xml file are configured.
and I found features.power_led_on = and phone_setting.active_backlight_level = in the file is empty ,right ?

Best Regards!

Yes those two were empty.

Did you use tftp?
not ,I use http ,I will try to use tftp but I don't think it will casue any difference.
I will test and let you know the result.
Reference URL's