Hi All,
I'm having some issues with generating provisioning files with my FusionPBX installation. The default setup works, however I need to add a few lines to the templates to meet a customer requirement.
Yealink has a way of uploading and storing user configured settings using the MAC-local.cfg file. Adding the necessary config lines to the relevant templates works fine and the actual upload/download function also works fine.
I created a variable named yealink_autop_sync_local with type text and set the value to 0 on the Default Settings section and to 1 under the relevant domain.
Next I added the following code bit to the Yealink template files.
Now the bit that doesn't work for some reason. Irrespective of the value I set for the yealink_autop_sync_local at the Advanced -> Default Settings or at domain level, when generating the config file FusionPBX shows the value as "True". However, if I set the same setting under Devices -> MAC -> Settings, it works correctly.
I've even tried setting the variable type to text, boolean and numeric and still the results are the same.
Fusion PBX 4.4.2
Debian 8.8
PHP 7.1.22
It would be a big help if someone point me to the correct path to get this fixed.
Kind Regards,
Asanka
I'm having some issues with generating provisioning files with my FusionPBX installation. The default setup works, however I need to add a few lines to the templates to meet a customer requirement.
Yealink has a way of uploading and storing user configured settings using the MAC-local.cfg file. Adding the necessary config lines to the relevant templates works fine and the actual upload/download function also works fine.
I created a variable named yealink_autop_sync_local with type text and set the value to 0 on the Default Settings section and to 1 under the relevant domain.
Next I added the following code bit to the Yealink template files.
Code:
{if $yealink_autop_sync_local == 1}
static.auto_provision.custom.sync = 1
static.auto_provision.custom.protect = 1
static.auto_provision.custom.sync.path = ftp://ftp.domain.tld/upload
{else}
static.auto_provision.custom.sync = 0
static.auto_provision.custom.protect = 0
{/if}
Now the bit that doesn't work for some reason. Irrespective of the value I set for the yealink_autop_sync_local at the Advanced -> Default Settings or at domain level, when generating the config file FusionPBX shows the value as "True". However, if I set the same setting under Devices -> MAC -> Settings, it works correctly.
I've even tried setting the variable type to text, boolean and numeric and still the results are the same.
Fusion PBX 4.4.2
Debian 8.8
PHP 7.1.22
It would be a big help if someone point me to the correct path to get this fixed.
Kind Regards,
Asanka