Yealink Forums
Delete uploaded wallpaper - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Auto Provisioning (/forumdisplay.php?fid=14)
+--- Thread: Delete uploaded wallpaper (/showthread.php?tid=1855)

Pages: 1 2


Delete uploaded wallpaper - habile - 06-04-2014 05:58 AM

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


RE: Delete uploaded wallpaper - CWR - 06-04-2014 07:26 AM

If I recall, there is no way to delete via provisioning. I asked this recently.


RE: Delete uploaded wallpaper - habile - 06-04-2014 04:55 PM

(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.


RE: Delete uploaded wallpaper - Yealink Support - 06-04-2014 05:52 PM

Hi habile,

You can submit your request or wishlist to support@yealink.com or support.usa@yealink.com.


RE: Delete uploaded wallpaper - habile - 06-05-2014 08:28 PM

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.


RE: Delete uploaded wallpaper - Yealink Support - 06-06-2014 11:01 AM

You are awesome!!


RE: Delete uploaded wallpaper - habile - 06-06-2014 05:12 PM

(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.


RE: Delete uploaded wallpaper - logiccenter - 07-21-2014 05:42 PM

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?


RE: Delete uploaded wallpaper - Yealink Support - 08-20-2014 06:26 PM

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.


RE: Delete uploaded wallpaper - habile - 10-03-2014 06:26 AM

(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