[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
bondingAC Offline
Junior Member
**

Posts: 3
Joined: Jul 2014
Reputation: 0
Post: #1
T46G - Change Wallpaper in DND Mode
We make heavily use of the DND feature of our new T46G.
However it is not always obvious which state is active, since it's just a small icon in the status bar.

It would be really nice, if the phone would display different wallpapers depending on the DND state. So we could create really different images ourself and everybody would see at a glance, if DND is activated or not.

Would love to see this feature in next release.
Thanks in advance!
07-15-2014 07:18 PM
Find all posts by this user    like1    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #2
RE: T46G - Change Wallpaper in DND Mode
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.

Line 21 changes the wallpaper to wall01.jpg, wall02.jpg, etc

We also added * codes to affect the PBX.
$extensions = array(1=>"*32",2=>"*34",3=>"*30",4=>"*31");
Line 22 executes this action.


Attached File(s)
.zip  change_phone.zip (Size: 1.22 KB / Downloads: 16)

Craig Reilly
MCSA, 3cx Advanced Certified
Scottsdale, AZ
(This post was last modified: 07-16-2014 06:26 AM by CWR.)
07-16-2014 06:24 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
bondingAC Offline
Junior Member
**

Posts: 3
Joined: Jul 2014
Reputation: 0
Post: #3
RE: T46G - Change Wallpaper in DND Mode
Thanks a lot for the code. In theory it would be possible to use the same approach with our Askozia PBX system, but it would be hard to implement. All phones have different passwords managed by Askozia and it is quite hard to get all these passwords back. Also the phone IP might be hidden by NAT in the future, and it is not always possible to install a small webserver for this purpose locally at a remote site.

I think the best, most robust and easiest way to implement this feature would be an added option in the Yealink phone, so it is completely indepentent of the used PBX system and network infrastructure.
07-17-2014 12:18 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #4
RE: T46G - Change Wallpaper in DND Mode
Mine is not PBX based... I have the PHP on an internal IIS Server - easy as a Windows 7 machine and add PHP.
The dial codes I added so the 3cx Presence screen would be up to date.

Can't say much for the password... I am able to control my phone passwords within 3cx and/or my config files.

Craig Reilly
MCSA, 3cx Advanced Certified
Scottsdale, AZ
07-17-2014 01:53 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
cptjack Offline
Member
***

Posts: 97
Joined: Jan 2014
Reputation: 8
Post: #5
RE: T46G - Change Wallpaper in DND Mode
I do not own a T4xG (yet), but in this thread it was suggested by user habile that this might work on these phones, as V72 adds additional PhoneConfiguration parameters:

Code:
<YealinkIPPhoneConfiguration>
<Item>phone_setting.backgrounds=Config:wall01.jpg</Item>
</YealinkIPPhoneConfiguration>

You would still need a script or host the XML files on a server somewhere, but it removes the curl workaround with ip and password needed for the T38G phones.

Please use the reputation button below if you like this post.
08-15-2014 04:46 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
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 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  SIP/Teams Hybrid Mode Sticky cjohnston 0 4,942 04-06-2021 03:58 AM
Last Post: cjohnston
  Change VendorId to yealink<model> Courtney 0 27,427 06-15-2018 02:49 PM
Last Post: Courtney
  T46G RTP Multicast - re-activate stream briankelly63 3 13,774 09-21-2016 01:52 AM
Last Post: joshua@itstel.com
  Change behaviour of Headset button Ret 8 27,820 05-19-2016 08:06 AM
Last Post: fatcatpro
  T46G Backlight options briankelly63 5 17,550 05-04-2016 04:08 PM
Last Post: tikky
  Add ability to change app-name on syslog jcaruso 2 12,200 09-21-2015 08:09 PM
Last Post: jcaruso
  Video on T46G/T48G HaraldL 5 18,603 06-30-2015 02:01 PM
Last Post: fire555
  Ability to remove DSS key type image on T46g tsukraw 5 19,248 02-17-2015 01:53 AM
Last Post: CWR
  T48 Wallpaper (White Text or Black Text) elementpbx 1 8,224 12-01-2014 04:05 PM
Last Post: tb303
  Ability to change BLF status text habile 1 10,243 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