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

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!

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 :

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: #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:
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..

(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
Post Reply 

Messages In This Thread
Delete uploaded wallpaper - habile - 06-04-2014, 05:58 AM
RE: Delete uploaded wallpaper - ModCraig - 06-04-2014, 07:26 AM
RE: Delete uploaded wallpaper - habile - 06-04-2014, 04:55 PM
RE: Delete uploaded wallpaper - habile - 06-05-2014 08:28 PM
RE: Delete uploaded wallpaper - habile - 06-06-2014, 05:12 PM
RE: Delete uploaded wallpaper - habile - 10-03-2014, 06:26 AM
RE: Delete uploaded wallpaper - cptjack - 10-10-2014, 03:32 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T21 E2 can't play uploaded ringtone coulddee 1 2,529 12-04-2015 05:37 PM
Last Post: Karl_Yealink
  T46G - uploaded ringtone not enabled timalex 9 12,424 03-12-2015 02:43 PM
Last Post: James_Yealink
  T48G not playing uploaded ringtone Barnabas 1 4,351 01-05-2015 05:41 PM
Last Post: Yealink_Daniel
  Unable to upload Wallpaper CraigFox 4 5,625 09-02-2014 09:33 AM
Last Post: CraigFox
  Wallpaper v70 tomp 17 27,244 11-07-2013 10:56 AM
Last Post: myominaungster
  Auto Replace Stock Wallpaper/Logo dbrandphoto 7 13,639 10-17-2013 07:32 PM
Last Post: theweehighlander
  Wallpaper and Ring Tones elementpbx 1 3,297 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