T38 wallpaper change - Printable Version +- Yealink Forums (http://forum.yealink.com/forum) +-- Forum: IP Phone Series (/forumdisplay.php?fid=4) +--- Forum: Phone specific topic (/forumdisplay.php?fid=12) +---- Forum: T3xP Series (/forumdisplay.php?fid=22) +---- Thread: T38 wallpaper change (/showthread.php?tid=1667) Pages: 1 2 |
RE: T38 wallpaper change - cptjack - 06-19-2014 06:48 AM There are several ways to achieve this. Either all in the dialplan, or all in the PHP script or a combination of both. I haven't played around with AGI, but I'm sure you it can also call the curl script from the dialplan if needed. 1) You can include this macro-wallaper in your dialplan and call it from the night-mode extensions like this: Code: [macro-wallpaper] 2) You can change the PHP script above to use URI=DIAL:*3x instead of URI=Key:Cancel. It will accomplish the same thing, but via the external script: PHP Code: <?php 3) Lastly, you can call the php script from the dialplan too: Code: exten => *32,1,NoOp(CLOSED - Nightmode) RE: T38 wallpaper change - CWR - 06-19-2014 07:49 AM So the code in section 2 makes the call to the 83x number - but doesn't seem to change my wallpaper. I have 4 loaded on the phone and confirm they work. wall01.jpg wall02.jpg wall03.jpg wall04.jpg If I put these 2 lines back in - nothing occurs. Code: setWallpaper("wall0$id.jpg", $phoneip, $username, $password); RE: T38 wallpaper change - cptjack - 06-19-2014 04:19 PM Hi, I updated the PHP in section 2) and replaced the setWallpaper function with the one I posted before. Seems some tweaks didn't work out the way I expected. I have been testing with serveral methods and this one should be the most robust. First make sure the wallpaper gets changed, then you can test the Dial URI string. If it doesn't work, try calling the script from a webbrowser directly using http://server/script.php?id1&phoneip=10.x.x.x RE: T38 wallpaper change - CWR - 06-19-2014 10:53 PM thank you... just needed to change this to 1 line... the formatting was adding unwanted spaces at the beginning of each line. Code: CLOSED'."\t".'Nightmode'."\n".'BACK'."\t".'Backline-Group/Weekend'."\n".'HERE'."\t".'Recept answering'."\n".'AWAY'."\t".'Ring-Group answering (Lunch) RE: T38 wallpaper change - cptjack - 06-21-2014 04:22 AM Your welcome. I'm glad it worked out the way you wanted. RE: T38 wallpaper change - lorn10 - 01-22-2015 11:35 PM Hi to all Little and somewhat stupid question, - into which config file I have to put the "wallpaper_upload.url = " auto provision parameter rightly? Into the y0000000000x8.cfg or the mac.cfg or into both of them? Some people write it into y0000000000x8.cfg while others into mac.cfg, and another into both. Very confusing... Whats here Yealink's position? Thanks for any hints! RE: T38 wallpaper change - CWR - 01-23-2015 12:15 AM the "y" file is common file. so if you want same wallpaper on all phones put it in here. RE: T38 wallpaper change - lorn10 - 01-24-2015 01:03 AM (01-23-2015 12:15 AM)craigreilly Wrote: the "y" file is common file. so if you want same wallpaper on all phones put it in here. Great, thanks for this information. Now I understand, the "y" config is for all phones of same type / model. While the "mac" config file is individual for each phone specific. RE: T38 wallpaper change - CWR - 01-24-2015 01:09 AM (01-24-2015 01:03 AM)lorn10 Wrote:(01-23-2015 12:15 AM)craigreilly Wrote: the "y" file is common file. so if you want same wallpaper on all phones put it in here. In case you did not get this... the mac.cfg is usually more like 00156548f407.cfg - uses the actual phone MAC address. RE: T38 wallpaper change - lorn10 - 01-24-2015 01:20 AM (01-23-2015 12:15 AM)craigreilly Wrote: In case you did not get this... the mac.cfg is usually more like 00156548f407.cfg - uses the actual phone MAC address. Yes, it's a dynamic $mac.cfg file. So OSS PBX End Point Manager in FreePBX will automatically assign the corresponding MAC address of the relevant phone. |