[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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete uploaded wallpaper
Author Message
habile Offline
Junior Member
**

Posts: 27
Joined: Jun 2014
Reputation: 1
Post: #1
Delete uploaded wallpaper
Hi,

I was attempting to change the wallpaper on the T48G by providing a random (correctly sized) JPG as the wallpaper_upload.url and switching to it using phone_setting.backgrounds = Config:random.jpg

The problem I have is that although I'm updating the JPG on the tftpserver the phone is not replacing the existing JPG even though it is downloaded from the tftp server.

How can I delete the existing wallpaper through provisioning? I could find only how to delete logos and ringtones but not wallpaper.

I could give the random image a unique name but with no way to delete them they will just pile up.

Thanks
Chris
06-04-2014 05:58 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: #2
RE: Delete uploaded wallpaper
If I recall, there is no way to delete via provisioning. I asked this recently.

Craig Reilly
MCSA, 3cx Advanced Certified
Scottsdale, AZ
06-04-2014 07:26 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
habile Offline
Junior Member
**

Posts: 27
Joined: Jun 2014
Reputation: 1
Post: #3
RE: Delete uploaded wallpaper
(06-04-2014 07:26 AM)craigreilly Wrote:  If I recall, there is no way to delete via provisioning. I asked this recently.

Thanks for the response Craig. That's unfortunate - I was planning on generating a system status JPG and update every 5/10 minutes - maybe that's not a good use of Push XML? I don't know of any other way to dynamically change/update the background.

I just noticed a wishlist on the forum, maybe I should post the request there.

C.
06-04-2014 04:55 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #4
RE: Delete uploaded wallpaper
Hi habile,

You can submit your request or wishlist to support@yealink.com or support.usa@yealink.com.
06-04-2014 05:52 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
habile Offline
Junior Member
**

Posts: 27
Joined: Jun 2014
Reputation: 1
Post: #5
RE: Delete uploaded wallpaper
I found a kind of workaround by using curl to login and delete the wallpaper before provisioning the new one:
Code:
<?php
function deleteWP($rname, $host)
{
        $username = 'admin';
        $password = 'password';
        $loginUrl = 'http://'.$host.'/servlet?p=login&q=login';

        $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $loginUrl);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, 'username='.$username.'&pwd='.$password);
        curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        $store = curl_exec($ch);

        curl_setopt($ch, CURLOPT_POSTFIELDS, 'p=settings-preference&q=deleteWallpaper&Wallpapertype=Config:'.$rname);

        $content = curl_exec($ch);
        return $content;
}
?>

You can call this function with deleteWP('image name','phoneip') before provisioning the new image.

It's not the most efficient way I guess but it works... for me at least. I now have a DSS key which will change the background to a random image any time you like..

C.
(This post was last modified: 06-05-2014 08:30 PM by habile.)
06-05-2014 08:28 PM
Find all posts by this user    like1    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #6
RE: Delete uploaded wallpaper
You are awesome!!
06-06-2014 11:01 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
habile Offline
Junior Member
**

Posts: 27
Joined: Jun 2014
Reputation: 1
Post: #7
RE: Delete uploaded wallpaper
(06-06-2014 11:01 AM)Yealink Support Wrote:  You are awesome!!

No, your diligence and attention to this forum is however. Get nothing like this from C**co!

Thank you.
06-06-2014 05:12 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
logiccenter Offline
Junior Member
**

Posts: 8
Joined: May 2014
Reputation: 0
Post: #8
RE: Delete uploaded wallpaper
Hi,

I try over and over again to do same code in java but it doesn't work. Can you help me how to do it in Java please?
07-21-2014 05:42 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #9
RE: Delete uploaded wallpaper
Wallpaper can be uploaded by auto provisioning . Input URL and backgrounds parameters in below area:

phone_setting.backgrounds = Config:Penguins.jpg
wallpaper_upload.url =http://10.2.5.161:8080/Penguins.jpg

The wallpaper format should follow:
Phone Model Format Resolution Single File Size Total File Size
SIP - T48G .jpg/.png/.bmp <=800*480 <=5MB <=20MB

Sorry that Delete wallpaper by Auto provisioning is not available at the moment. Your kindly suggestion will be delivered to our product department. Please stay tuned.
08-20-2014 06:26 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
habile Offline
Junior Member
**

Posts: 27
Joined: Jun 2014
Reputation: 1
Post: #10
RE: Delete uploaded wallpaper
(08-20-2014 06:26 PM)Yealink Support Wrote:  Sorry that Delete wallpaper by Auto provisioning is not available at the moment. Your kindly suggestion will be delivered to our product department. Please stay tuned.

I'm still tuned Smile - is there anything in v73 for this because now it seems that I cannot login via CURL without emulating the encryption of the login.

I just want to be able to 'refresh' the image which does not happen if you upload an image with the same name.

Thanks
Chris
10-03-2014 06:26 AM
Find all posts by this user    like2    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Setting up EXP50 wallpaper using a template jleyco 3 7,498 01-11-2022 01:52 AM
Last Post: Yisroel_MongoTEL
  T21 E2 can't play uploaded ringtone coulddee 1 7,449 12-04-2015 05:37 PM
Last Post: Karl_Yealink
  T46G - uploaded ringtone not enabled timalex 9 27,439 03-12-2015 02:43 PM
Last Post: James_Yealink
  T48G not playing uploaded ringtone Barnabas 1 9,325 01-05-2015 05:41 PM
Last Post: Yealink_Daniel
  Unable to upload Wallpaper CraigFox 4 16,447 09-02-2014 09:33 AM
Last Post: CraigFox
  Wallpaper v70 tomp 17 64,904 11-07-2013 10:56 AM
Last Post: myominaungster
  Auto Replace Stock Wallpaper/Logo dbrandphoto 7 28,383 10-17-2013 07:32 PM
Last Post: theweehighlander
  Wallpaper and Ring Tones elementpbx 1 8,016 09-27-2013 02:36 PM
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