diff --git a/resources/templates/provision/grandstream/dp750/{$mac}.xml b/resources/templates/provision/grandstream/dp750/{$mac}.xml
index 5ffe0529bc..d606da71dd 100644
--- a/resources/templates/provision/grandstream/dp750/{$mac}.xml
+++ b/resources/templates/provision/grandstream/dp750/{$mac}.xml
@@ -2691,7 +2691,7 @@
{if isset($grandstream_lan_port_vlan) }
-1
+{$grandstream_lan_port_vlan}
{else}
0
{/if}
@@ -2850,12 +2850,12 @@
-1
+{if isset($grandstream_dhcp_option_override)}{$grandstream_dhcp_option_override}{else}1{/if}
-0
+1
@@ -3209,7 +3209,7 @@
-1
+{if isset($grandstream_dhcp_option_2_timezone_override) }{$grandstream_dhcp_option_2_timezone_override}{else}0{/if}
@@ -3268,11 +3268,7 @@
-{if isset($contact_grandstream)}
-1
-{else}
-0
-{/if}
+{$grandstream_phonebook_download}
@@ -3286,23 +3282,25 @@
-{if isset($contact_grandstream)}
-{$grandstream_phonebook_xml_server_path}{$mac}/
-{elseif isset($grandstream_phonebook_xml_server_path)}
-{$grandstream_phonebook_xml_server_path}
+{if isset($grandstream_phonebook_xml_server_path)}
+ {$grandstream_phonebook_xml_server_path}/{$mac}
{else}
-
+
{/if}
-120
+{if isset($grandstream_phonebook_download_interval)}
+ {$grandstream_phonebook_download_interval}
+{else}
+ 0
+{/if}
-1
+0
diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
index 4d4179ff66..e4f94bd4f5 100644
--- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
@@ -631,8 +631,12 @@
+ {if isset ($grandstream_jitter_adapt)}
+ {$grandstream_jitter_adapt}
+ {else}
1
-
+ {/if}
+
@@ -8433,11 +8437,13 @@
-
-
-
-
- XMLApp
+{if isset($xmlappurl)}
+ {$xmlappurl}?token={$xmlapptoken}
+ {$xmlapp}
+{elseif isset($xmlapp)}
+ https://{$server_address_1}/app/change-caller-id/app.php?token={$xmlapptoken}
+ {$xmlapp}
+{/if}
@@ -8469,8 +8475,12 @@
+ {if isset ($grandstream_key_mode)}
+ {$grandstream_key_mode}
+ {else}
1
-
+ {/if}
+
diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
index e42946a0a8..bf1b008429 100644
--- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
@@ -631,8 +631,12 @@
+ {if isset ($grandstream_jitter_adapt)}
+ {$grandstream_jitter_adapt}
+ {else}
1
-
+ {/if}
+
@@ -8433,11 +8437,13 @@
-
-
-
-
- XMLApp
+{if isset($xmlappurl)}
+ {$xmlappurl}?token={$xmlapptoken}
+ {$xmlapp}
+{elseif isset($xmlapp)}
+ https://{$server_address_1}/app/change-caller-id/app.php?token={$xmlapptoken}
+ {$xmlapp}
+{/if}
@@ -8469,8 +8475,12 @@
+ {if isset ($grandstream_key_mode)}
+ {$grandstream_key_mode}
+ {else}
1
-
+ {/if}
+
diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
index 4d4179ff66..e4f94bd4f5 100644
--- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
@@ -631,8 +631,12 @@
+ {if isset ($grandstream_jitter_adapt)}
+ {$grandstream_jitter_adapt}
+ {else}
1
-
+ {/if}
+
@@ -8433,11 +8437,13 @@
-
-
-
-
- XMLApp
+{if isset($xmlappurl)}
+ {$xmlappurl}?token={$xmlapptoken}
+ {$xmlapp}
+{elseif isset($xmlapp)}
+ https://{$server_address_1}/app/change-caller-id/app.php?token={$xmlapptoken}
+ {$xmlapp}
+{/if}
@@ -8469,8 +8475,12 @@
+ {if isset ($grandstream_key_mode)}
+ {$grandstream_key_mode}
+ {else}
1
-
+ {/if}
+
diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
index 4d4179ff66..912b0d6bd2 100644
--- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
@@ -631,7 +631,11 @@
+ {if isset ($grandstream_jitter_adapt)}
+ {$grandstream_jitter_adapt}
+ {else}
1
+ {/if}
@@ -8433,11 +8437,13 @@
-
-
-
-
- XMLApp
+{if isset($xmlappurl)}
+ {$xmlappurl}?token={$xmlapptoken}
+ {$xmlapp}
+{elseif isset($xmlapp)}
+ https://{$server_address_1}/app/change-caller-id/app.php?token={$xmlapptoken}
+ {$xmlapp}
+{/if}
@@ -8469,8 +8475,12 @@
+ {if isset ($grandstream_key_mode)}
+ {$grandstream_key_mode}
+ {else}
1
-
+ {/if}
+
diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
index 4d4179ff66..d04e357173 100644
--- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
@@ -631,7 +631,11 @@
+ {if isset ($grandstream_jitter_adapt)}
+ {$grandstream_jitter_adapt}
+ {else}
1
+ {/if}
@@ -8175,7 +8179,11 @@
- 1
+{if isset($grandstream_dhcp_option_2_timezone_override) }
+ {$grandstream_dhcp_option_2_timezone_override}
+{else}
+ 0
+{/if}
@@ -8433,11 +8441,13 @@
-
-
-
-
- XMLApp
+{if isset($xmlappurl)}
+ {$xmlappurl}?token={$xmlapptoken}
+ {$xmlapp}
+{elseif isset($xmlapp)}
+ https://{$server_address_1}/app/change-caller-id/app.php?token={$xmlapptoken}
+ {$xmlapp}
+{/if}
@@ -8469,7 +8479,11 @@
+ {if isset ($grandstream_key_mode)}
+ {$grandstream_key_mode}
+ {else}
1
+ {/if}
diff --git a/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml b/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml
index 711124ebdb..37ee60eef0 100644
--- a/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml
@@ -3896,12 +3896,12 @@
5060
-{$account.34.user_id}
-{$account.34.user_id}
-{$account.34.password}
-{$account.34.display_name}
+{$account.35.user_id}
+{$account.35.user_id}
+{$account.35.password}
+{$account.35.display_name}
0
-{if !isset($account.34.user_id) && $grandstream_fxs_enabled == 0}
+{if !isset($account.35.user_id) && $grandstream_fxs_enabled == 0}
0
{else}
1
@@ -3993,7 +3993,7 @@
{$account.40.user_id}
{$account.40.user_id}
-{$account.40.password}
+{$account.40.password}
{$account.40.display_name}
0
{if !isset($account.40.user_id) && $grandstream_fxs_enabled == 0}
@@ -4012,7 +4012,7 @@
{$account.41.user_id}
{$account.41.user_id}
-{$account.41.password}
+{$account.41.password}
{$account.41.display_name}
0
{if !isset($account.41.user_id) && $grandstream_fxs_enabled == 0}
@@ -4031,7 +4031,7 @@
{$account.42.user_id}
{$account.42.user_id}
-{$account.42.password}
+{$account.42.password}
{$account.42.display_name}
0
{if !isset($account.42.user_id) && $grandstream_fxs_enabled == 0}
@@ -4050,7 +4050,7 @@
{$account.43.user_id}
{$account.43.user_id}
-{$account.43.password}
+{$account.43.password}
{$account.43.display_name}
0
{if !isset($account.43.user_id) && $grandstream_fxs_enabled == 0}
diff --git a/resources/templates/provision/polycom/4.x/{$mac}.cfg b/resources/templates/provision/polycom/4.x/{$mac}.cfg
index ed3a54904c..c00155db74 100644
--- a/resources/templates/provision/polycom/4.x/{$mac}.cfg
+++ b/resources/templates/provision/polycom/4.x/{$mac}.cfg
@@ -79,6 +79,10 @@
device.sntp.gmtOffset="{$polycom_gmt_offset}"
device.prov.upgradeServer.set="1"
device.prov.upgradeServer="{$polycom_firmware_url}"
+ {if isset($polycom_cdp_enabled)}
+ device.net.cdpEnabled.set="1"
+ device.net.cdpEnabled="{$polycom_cdp_enabled}"
+ {/if}
{if isset($admin_password)}
device.auth.localUserPassword.set="1"
diff --git a/resources/templates/provision/yealink/t46s/y000000000066.cfg b/resources/templates/provision/yealink/t46s/y000000000066.cfg
index d5aeeb72de..d9bf43f026 100644
--- a/resources/templates/provision/yealink/t46s/y000000000066.cfg
+++ b/resources/templates/provision/yealink/t46s/y000000000066.cfg
@@ -1054,7 +1054,7 @@ features.voice_mail_alert.enable=
features.voice_mail_popup.enable = {$yealink_voice_mail_popup_enable}
features.voice_mail_tone_enable=
features.hide_feature_access_codes.enable = {$yealink_hide_feature_access_codes_enable}
-voice_mail.number.1=
+voice_mail.number.1 = {$voicemail_number}
#######################################################################################
@@ -1093,7 +1093,7 @@ voice.handset_send=
voice.handfree_send =
voice.headset_send =
features.intercom.headset_prior.enable=
-features.ringer_device.is_use_headset=
+features.ringer_device.is_use_headset = {$yealink_headset_ringer}
#######################################################################################