Yealink Forums

Full Version: T32/T38 template issues with 3CX
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am having an issue getting a T32/T38 config file to generate properly with 3CX v11 SP4. Here's what I've done.

I have taken the stock T32/T38 template and copied it to a new template called "T32/T38 - Custom". The only settings I have changed in this template are the wallpaper settings. I have left the stock locations and simply changed the name of the .png from yealinkt32.png to yealinkt32custom.png. When I generate a new config with the custom template it does not populate any of the three wallpaper settings.

Here are the three settings in the template that were modified:

Code:
################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######
{IF model=Yealink T32}
wallpaper_upload.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt32custom.png
screen_saver.pic.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt32custom.png
{ENDIF}

################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######
{IF model=Yealink T38}
wallpaper_upload.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt38custom.png
screen_saver.pic.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt38custom.png
{ENDIF}

#Configure the phone background.
#If you set the custom image (new.png) as phone backgroup, the value is: phone_setting.backgrounds = Config:new.png
#If you set the system image (pictures(01).png) as phone backgroup, the value is: phone_setting.backgrounds = Resource:pictures(01).png

{IF model=Yealink T32}
phone_setting.backgrounds = Config:yealinkt32custom.png
{ENDIF}

{IF model=Yealink T38}
phone_setting.backgrounds = Config:yealinkt38custom.png
{ENDIF}

And here is the settings in the generated config file. As you can see they are blank.

Code:
################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######


################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######

#Configure the phone background.
#If you set the custom image (new.png) as phone backgroup, the value is: phone_setting.backgrounds = Config:new.png
#If you set the system image (pictures(01).png) as phone backgroup, the value is: phone_setting.backgrounds = Resource:pictures(01).png

Any ideas?
Hey Seth
I just replaced the png file with a new one... with the same name.
You didn't mention what firmware... I have 1 phone right now running 38.70.0.143 and this is what I find in the cfg file for that device:

Code:
################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######


################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######

wallpaper_upload.url = http://10.0.0.12:5000/provisioning/logo/yealinkt38.png
screen_saver.pic.url = http://10.0.0.12:5000/provisioning/logo/yealinkt38.png


#Configure the phone background.
#If you set the custom image (new.png) as phone backgroup, the value is: phone_setting.backgrounds = Config:new.png
#If you set the system image (pictures(01).png) as phone backgroup, the value is: phone_setting.backgrounds = Resource:pictures(01).png



phone_setting.backgrounds = Config:yealinkt38.png

and this is what I have in 3cx:
Code:
################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######
{IF model=Yealink T32}
wallpaper_upload.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt32.png
screen_saver.pic.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt32.png
{ENDIF}

################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######
{IF model=Yealink T38 v70}
wallpaper_upload.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt38.png
screen_saver.pic.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt38.png
{ENDIF}

#Configure the phone background.
#If you set the custom image (new.png) as phone backgroup, the value is: phone_setting.backgrounds = Config:new.png
#If you set the system image (pictures(01).png) as phone backgroup, the value is: phone_setting.backgrounds = Resource:pictures(01).png
{IF model=Yealink T32}
phone_setting.backgrounds = Config:yealinkt32.png
{ENDIF}

{IF model=Yealink T38 v70}
phone_setting.backgrounds = Config:yealinkt38.png
{ENDIF}

Seems to be working ok. just fior the heck of it - maybe try a shorter file name? send me your file if you want, and I will try creating a new template and see what happens...

Oh - and I just caught this - be sure to change the model of the phone within the template (like 6 or 8 places) to match the name and model at the top:
Code:
<type>phone-template</type>
    <version>29739</version>
    <time>2011-12-12 09:00:00</time>
    <name>Yealink T38 v70</name>
    <url>http://www.yealink.com</url>
    <models>
      <model>Yealink T32</model>
      <model>Yealink T38 v70</model>
Hey, what's up man, long time no talk? Smile

The problem with just replacing the stock image is that opens the doors for 3CX overwriting it down the road, same reason why you modify a copied template and not the original, it will eventually get overwritten by a service pack.

It may be a length issue now that you mention it, because originally I had yealinkt32-custom.png as the name and I couldn't even upload that to the phone manually until I removed the hyphen, so it's obviously picky. What's weird about that though is if you look at the stock wallpapers they have special characters in them "pictures (01)".png.

(05-16-2013 06:16 AM)craigreilly Wrote: [ -> ]Hey Seth
I just replaced the png file with a new one... with the same name.
You didn't mention what firmware... I have 1 phone right now running 38.70.0.143 and this is what I find in the cfg file for that device:

Code:
################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######


################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######

wallpaper_upload.url = http://10.0.0.12:5000/provisioning/logo/yealinkt38.png
screen_saver.pic.url = http://10.0.0.12:5000/provisioning/logo/yealinkt38.png


#Configure the phone background.
#If you set the custom image (new.png) as phone backgroup, the value is: phone_setting.backgrounds = Config:new.png
#If you set the system image (pictures(01).png) as phone backgroup, the value is: phone_setting.backgrounds = Resource:pictures(01).png



phone_setting.backgrounds = Config:yealinkt38.png

and this is what I have in 3cx:
Code:
################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######
{IF model=Yealink T32}
wallpaper_upload.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt32.png
screen_saver.pic.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt32.png
{ENDIF}

################################################################################​#######
##            Configure the access URL of the  Wallpaper and Screensaver             ##                                            
################################################################################​#######
{IF model=Yealink T38 v70}
wallpaper_upload.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt38.png
screen_saver.pic.url = http://%%pbx_ip%%:%%pbx_http_port%%/provisioning/logo/yealinkt38.png
{ENDIF}

#Configure the phone background.
#If you set the custom image (new.png) as phone backgroup, the value is: phone_setting.backgrounds = Config:new.png
#If you set the system image (pictures(01).png) as phone backgroup, the value is: phone_setting.backgrounds = Resource:pictures(01).png
{IF model=Yealink T32}
phone_setting.backgrounds = Config:yealinkt32.png
{ENDIF}

{IF model=Yealink T38 v70}
phone_setting.backgrounds = Config:yealinkt38.png
{ENDIF}

Seems to be working ok. just fior the heck of it - maybe try a shorter file name? send me your file if you want, and I will try creating a new template and see what happens...
Oh - and I just caught this - be sure to change the model of the phone within the template (like 6 or 8 places) to match the name and model at the top:


Code:
<type>phone-template</type>
     <version>29739</version>
     <time>2011-12-12 09:00:00</time>
     <name>Yealink T38 v70</name>
     <url>http://www.yealink.com</url>
     <models>
       <model>Yealink T32</model>
       <model>Yealink T38 v70</model>

I also uploaded my working template... filename is not custom... but check to ensure "model" is replaced everywhere. I found strange issues here.
(05-16-2013 06:42 AM)craigreilly Wrote: [ -> ]I also uploaded my working template... filename is not custom... but check to ensure "model" is replaced everywhere. I found strange issues here.

This was exactly it. Every field that referenced the old model name (the default Yealink T32) was not getting populated because it didn't match. Thanks.
Reference URL's