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
T46G - Change Wallpaper in DND Mode
Author Message
huguley Offline
Junior Member
**

Posts: 2
Joined: Oct 2015
Reputation: 0
Post: #6
RE: T46G - Change Wallpaper in DND Mode
(07-16-2014 06:24 AM)craigreilly Wrote:  We have done this on the T38 and maybe just as easy on the T4x.
We first load the necessary wallpapers on the phone.
Then assign a button to run an XML (PHP) File - gives the user their options.

Your post was one of the first I found when I was looking for ways to work around the teeny tiny DND indicator on the t48 phone. I modified your script to work with it so I figured I would share in case anyone runs across your post the same way I did.

PHP Code:
<?php
$username
="admin";
$password="password";
$phoneip $_SERVER["REMOTE_ADDR"];

if (isset(
$_GET["dndstate"])) { $dndstate $_GET["dndstate"]; }

if ( 
$dndstate == "on" ) {
   
setWallpaper("cdlogodnd.png"$phoneip$username$password);
} else {
   
setWallpaper("cd.png"$phoneip$username$password);
}


function 
setWallpaper($rname$host$username$password) {
$ch curl_init();

$xml_data 'xml=<YealinkIPPhoneConfiguration Beep="yes">' .
                    
'<Item>phone_setting.backgrounds = Config:'$rname .'</Item>'.
                
'</YealinkIPPhoneConfiguration>';

echo 
$xml_data ;
// Login to the web interface
curl_setopt($chCURLOPT_USERPWD$username ":" $password);
curl_setopt($chCURLOPT_URL'http://'.$host.'/');
curl_setopt($chCURLOPT_COOKIEFILE'/dev/null');
curl_setopt($chCURLOPT_RETURNTRANSFER1);
curl_setopt($chCURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($chCURLOPT_POST1);

// Post Wallpaper Choice
curl_setopt($chCURLOPT_POSTFIELDS"$xml_data");
$content curl_exec($ch);

return 
$content;
}

?>

You still need to set the remote control address under the features tab of the phone and put in the action url with dndstate=on/off as a parameter of the get. Also the backgrounds need to be loaded on the phone.

So if for some reason you don't want to use static xml files this works.
(This post was last modified: 11-13-2015 09:41 PM by huguley.)
11-13-2015 09:09 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
RE: T46G - Change Wallpaper in DND Mode - huguley - 11-13-2015 09:09 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Change VendorId to yealink<model> Courtney 0 804 06-15-2018 02:49 PM
Last Post: Courtney
  T46G RTP Multicast - re-activate stream briankelly63 3 6,105 09-21-2016 01:52 AM
Last Post: joshua@itstel.com
  Change behaviour of Headset button Ret 8 11,861 05-19-2016 08:06 AM
Last Post: fatcatpro
  T46G Backlight options briankelly63 5 7,444 05-04-2016 04:08 PM
Last Post: tikky
  Add ability to change app-name on syslog jcaruso 2 4,289 09-21-2015 08:09 PM
Last Post: jcaruso
  Video on T46G/T48G HaraldL 5 9,090 06-30-2015 02:01 PM
Last Post: fire555
  Ability to remove DSS key type image on T46g tsukraw 5 7,922 02-17-2015 01:53 AM
Last Post: ModCraig
  T48 Wallpaper (White Text or Black Text) elementpbx 1 3,704 12-01-2014 04:05 PM
Last Post: tb303
  Ability to change BLF status text habile 1 4,680 06-09-2014 11:04 AM
Last Post: Yealink Support
  Ability to delete/update wallpaper + screensaver habile 2 5,583 06-04-2014 06:50 PM
Last Post: habile

Forum Jump:


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

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