03-20-2013, 09:17 PM
How do you change label on "memory13" key on a T28 via a pushed XML file?
I try to use this code
it works, and show right parameters on web gui. But on the phone screen still old label value, and it changes only after reboot.
firmware 2.60.14.16 RUS
I try to use this code
PHP Code:
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 ="<YealinkIPPhoneConfiguration Beep=\"yes\" setType=\"config\">\n";
$xml .="<ConfigurationItem>\n";
$xml .="<Path>/yealink/config/vpPhone/vpPhone.ini</Path>\n";
$xml .="<Session>memory13</Session>\n";
$xml .="<Parameter>DKtype</Parameter>\n";
$xml .="<Value>13</Value>\n";
$xml .="</ConfigurationItem>\n";
$xml .="<ConfigurationItem>\n";
$xml .="<Path>/yealink/config/vpPhone/vpPhone.ini</Path>\n";
$xml .="<Session>memory13</Session>\n";
$xml .="<Parameter>Value</Parameter>\n";
$xml .="<Value>1401</Value>\n";
$xml .="</ConfigurationItem>\n";
$xml .="<ConfigurationItem>\n";
$xml .="<Path>/yealink/config/vpPhone/vpPhone.ini</Path>\n";
$xml .="<Session>memory13</Session>\n";
$xml .="<Parameter>Label</Parameter>\n";
$xml .="<Value>DAY</Value>\n";
$xml .="</ConfigurationItem>\n";
$xml .="</YealinkIPPhoneConfiguration>\n";
push2phone("ip","ip",$xml);
it works, and show right parameters on web gui. But on the phone screen still old label value, and it changes only after reboot.
firmware 2.60.14.16 RUS