[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
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
  SIP/Teams Hybrid Mode Sticky cjohnston 0 4,926 04-06-2021 03:58 AM
Last Post: cjohnston
  Change VendorId to yealink<model> Courtney 0 27,400 06-15-2018 02:49 PM
Last Post: Courtney
  T46G RTP Multicast - re-activate stream briankelly63 3 13,734 09-21-2016 01:52 AM
Last Post: joshua@itstel.com
  Change behaviour of Headset button Ret 8 27,708 05-19-2016 08:06 AM
Last Post: fatcatpro
  T46G Backlight options briankelly63 5 17,461 05-04-2016 04:08 PM
Last Post: tikky
  Add ability to change app-name on syslog jcaruso 2 12,154 09-21-2015 08:09 PM
Last Post: jcaruso
  Video on T46G/T48G HaraldL 5 18,525 06-30-2015 02:01 PM
Last Post: fire555
  Ability to remove DSS key type image on T46g tsukraw 5 19,195 02-17-2015 01:53 AM
Last Post: CWR
  T48 Wallpaper (White Text or Black Text) elementpbx 1 8,197 12-01-2014 04:05 PM
Last Post: tb303
  Ability to change BLF status text habile 1 10,212 06-09-2014 11:04 AM
Last Post: Yealink Support

Forum Jump:


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

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