[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: #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
Post Reply 


Messages In This Thread
Delete uploaded wallpaper - habile - 06-04-2014, 05:58 AM
RE: Delete uploaded wallpaper - CWR - 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
  Setting up EXP50 wallpaper using a template jleyco 3 7,579 01-11-2022 01:52 AM
Last Post: Yisroel_MongoTEL
  T21 E2 can't play uploaded ringtone coulddee 1 7,501 12-04-2015 05:37 PM
Last Post: Karl_Yealink
  T46G - uploaded ringtone not enabled timalex 9 27,620 03-12-2015 02:43 PM
Last Post: James_Yealink
  T48G not playing uploaded ringtone Barnabas 1 9,391 01-05-2015 05:41 PM
Last Post: Yealink_Daniel
  Unable to upload Wallpaper CraigFox 4 16,591 09-02-2014 09:33 AM
Last Post: CraigFox
  Wallpaper v70 tomp 17 65,270 11-07-2013 10:56 AM
Last Post: myominaungster
  Auto Replace Stock Wallpaper/Logo dbrandphoto 7 28,613 10-17-2013 07:32 PM
Last Post: theweehighlander
  Wallpaper and Ring Tones elementpbx 1 8,075 09-27-2013 02:36 PM
Last Post: Yealink Support

Forum Jump:


User(s) browsing this thread:

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