diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml
index f2d5ed224f..0e805e9f8c 100644
--- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml
@@ -138,7 +138,11 @@
+ {if isset($grandstream_nat_traversal)}
+ - {$grandstream_nat_traversal}
+ {else}
- Auto
+ {/if}
@@ -173,7 +177,7 @@
- - 15
+ - {$row.register_expires}
@@ -784,7 +788,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_1}
@@ -792,7 +796,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_2}
@@ -800,7 +804,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_3}
@@ -808,7 +812,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_4}
@@ -816,7 +820,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_5}
@@ -824,7 +828,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_6}
@@ -832,7 +836,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_7}
@@ -840,7 +844,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_8}
@@ -848,7 +852,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_9}
@@ -856,7 +860,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_10}
@@ -903,21 +907,21 @@
- - *78
+
- - *79
+
- - *72
+
- - *73
+
@@ -1201,13 +1205,13 @@
- - Yes
+ - {if isset($grandstream_lan_port_vlan)}Yes{else}No{/if}
- - 0
+ - {$grandstream_lan_port_vlan}
@@ -1217,11 +1221,15 @@
- - Enabled
+ {if isset($grandstream_pc_mode)}
+ - {if isset($grandstream_pc_mode)}{$grandstream_pc_mode}{/if}
+ {else}
+ - {if isset($grandstream_pc_port_vlan)}Enabled{else}Disabled{/if}
+ {/if}
- - 0
+ - {$grandstream_pc_port_vlan}
@@ -2498,7 +2506,11 @@
+ {if isset($grandstream_stun_server) }
+ - {$grandstream_stun_server}
+ {else}
+ {/if}
@@ -3674,15 +3686,27 @@
+ {if isset($grandstream_headset_key_mode)}
+ - {$grandstream_headset_key_mode}
+ {else}
- DefaultMode
+ {/if}
+ {if isset($grandstream_headset_ringtone)}
+ - {$grandstream_headset_ringtone}
+ {else}
- Normal
+ {/if}
+ {if isset($grandstream_headset_type)}
+ - {$grandstream_headset_type}
+ {else}
- Normal
+ {/if}
@@ -3701,11 +3725,19 @@
- - 0
+ {if isset($grandstream_headset_tx_gain)}
+ - {$grandstream_headset_tx_gain}
+ {else}
+ - 0
+ {/if}
+ {if isset($grandstream_headset_rx_gain)}
+ - {$grandstream_headset_rx_gain}
+ {else}
- 0
+ {/if}
@@ -3993,7 +4025,11 @@
+ {if isset($grandstream_screensaver_enable)}
+ - {$grandstream_screensaver_enable}
+ {else}
- OnIfNoVPKIsActive
+ {/if}
@@ -4001,7 +4037,7 @@
-
+ - {$grandstream_screensaver_source}
diff --git a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml
index f2d5ed224f..e4ca9e1a05 100644
--- a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml
@@ -138,7 +138,11 @@
+ {if isset($grandstream_nat_traversal)}
+ - {$grandstream_nat_traversal}
+ {else}
- Auto
+ {/if}
@@ -173,7 +177,7 @@
- - 15
+ - {$row.register_expires}
@@ -784,7 +788,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_1}
@@ -792,7 +796,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_2}
@@ -800,7 +804,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_3}
@@ -808,7 +812,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_4}
@@ -816,7 +820,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_5}
@@ -824,7 +828,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_6}
@@ -832,7 +836,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_7}
@@ -840,7 +844,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_8}
@@ -848,7 +852,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_9}
@@ -856,7 +860,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_10}
@@ -1201,13 +1205,13 @@
- - Yes
+ - {if isset($grandstream_lan_port_vlan)}Yes{else}No{/if}
- - 0
+ - {$grandstream_lan_port_vlan}
@@ -1217,11 +1221,15 @@
- - Enabled
+ {if isset($grandstream_pc_mode)}
+ - {if isset($grandstream_pc_mode)}{$grandstream_pc_mode}{/if}
+ {else}
+ - {if isset($grandstream_pc_port_vlan)}Enabled{else}Disabled{/if}
+ {/if}
- - 0
+ - {$grandstream_pc_port_vlan}
@@ -2498,7 +2506,11 @@
+ {if isset($grandstream_stun_server) }
+ - {$grandstream_stun_server}
+ {else}
+ {/if}
@@ -3674,15 +3686,27 @@
+ {if isset($grandstream_headset_key_mode)}
+ - {$grandstream_headset_key_mode}
+ {else}
- DefaultMode
+ {/if}
+ {if isset($grandstream_headset_ringtone)}
+ - {$grandstream_headset_ringtone}
+ {else}
- Normal
+ {/if}
+ {if isset($grandstream_headset_type)}
+ - {$grandstream_headset_type}
+ {else}
- Normal
+ {/if}
@@ -3701,11 +3725,19 @@
- - 0
+ {if isset($grandstream_headset_tx_gain)}
+ - {$grandstream_headset_tx_gain}
+ {else}
+ - 0
+ {/if}
+ {if isset($grandstream_headset_rx_gain)}
+ - {$grandstream_headset_rx_gain}
+ {else}
- 0
+ {/if}
@@ -3993,7 +4025,11 @@
+ {if isset($grandstream_screensaver_enable)}
+ - {$grandstream_screensaver_enable}
+ {else}
- OnIfNoVPKIsActive
+ {/if}
@@ -4001,7 +4037,7 @@
-
+ - {$grandstream_screensaver_source}
diff --git a/resources/templates/provision/grandstream/grp2613/{$mac}.xml b/resources/templates/provision/grandstream/grp2613/{$mac}.xml
index f2d5ed224f..0e805e9f8c 100644
--- a/resources/templates/provision/grandstream/grp2613/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2613/{$mac}.xml
@@ -138,7 +138,11 @@
+ {if isset($grandstream_nat_traversal)}
+ - {$grandstream_nat_traversal}
+ {else}
- Auto
+ {/if}
@@ -173,7 +177,7 @@
- - 15
+ - {$row.register_expires}
@@ -784,7 +788,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_1}
@@ -792,7 +796,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_2}
@@ -800,7 +804,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_3}
@@ -808,7 +812,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_4}
@@ -816,7 +820,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_5}
@@ -824,7 +828,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_6}
@@ -832,7 +836,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_7}
@@ -840,7 +844,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_8}
@@ -848,7 +852,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_9}
@@ -856,7 +860,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_10}
@@ -903,21 +907,21 @@
- - *78
+
- - *79
+
- - *72
+
- - *73
+
@@ -1201,13 +1205,13 @@
- - Yes
+ - {if isset($grandstream_lan_port_vlan)}Yes{else}No{/if}
- - 0
+ - {$grandstream_lan_port_vlan}
@@ -1217,11 +1221,15 @@
- - Enabled
+ {if isset($grandstream_pc_mode)}
+ - {if isset($grandstream_pc_mode)}{$grandstream_pc_mode}{/if}
+ {else}
+ - {if isset($grandstream_pc_port_vlan)}Enabled{else}Disabled{/if}
+ {/if}
- - 0
+ - {$grandstream_pc_port_vlan}
@@ -2498,7 +2506,11 @@
+ {if isset($grandstream_stun_server) }
+ - {$grandstream_stun_server}
+ {else}
+ {/if}
@@ -3674,15 +3686,27 @@
+ {if isset($grandstream_headset_key_mode)}
+ - {$grandstream_headset_key_mode}
+ {else}
- DefaultMode
+ {/if}
+ {if isset($grandstream_headset_ringtone)}
+ - {$grandstream_headset_ringtone}
+ {else}
- Normal
+ {/if}
+ {if isset($grandstream_headset_type)}
+ - {$grandstream_headset_type}
+ {else}
- Normal
+ {/if}
@@ -3701,11 +3725,19 @@
- - 0
+ {if isset($grandstream_headset_tx_gain)}
+ - {$grandstream_headset_tx_gain}
+ {else}
+ - 0
+ {/if}
+ {if isset($grandstream_headset_rx_gain)}
+ - {$grandstream_headset_rx_gain}
+ {else}
- 0
+ {/if}
@@ -3993,7 +4025,11 @@
+ {if isset($grandstream_screensaver_enable)}
+ - {$grandstream_screensaver_enable}
+ {else}
- OnIfNoVPKIsActive
+ {/if}
@@ -4001,7 +4037,7 @@
-
+ - {$grandstream_screensaver_source}
diff --git a/resources/templates/provision/grandstream/grp2614/{$mac}.xml b/resources/templates/provision/grandstream/grp2614/{$mac}.xml
index 818ec5fbc7..0e805e9f8c 100644
--- a/resources/templates/provision/grandstream/grp2614/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2614/{$mac}.xml
@@ -138,7 +138,11 @@
+ {if isset($grandstream_nat_traversal)}
+ - {$grandstream_nat_traversal}
+ {else}
- Auto
+ {/if}
@@ -173,7 +177,7 @@
- - 15
+ - {$row.register_expires}
@@ -784,7 +788,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_1}
@@ -792,7 +796,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_2}
@@ -800,7 +804,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_3}
@@ -808,7 +812,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_4}
@@ -816,7 +820,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_5}
@@ -824,7 +828,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_6}
@@ -832,7 +836,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_7}
@@ -840,7 +844,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_8}
@@ -848,7 +852,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_9}
@@ -856,7 +860,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_10}
@@ -903,21 +907,21 @@
- - *78
+
- - *79
+
- - *72
+
- - *73
+
@@ -1201,13 +1205,13 @@
- - Yes
+ - {if isset($grandstream_lan_port_vlan)}Yes{else}No{/if}
- - 0
+ - {$grandstream_lan_port_vlan}
@@ -1217,11 +1221,15 @@
- - Enabled
+ {if isset($grandstream_pc_mode)}
+ - {if isset($grandstream_pc_mode)}{$grandstream_pc_mode}{/if}
+ {else}
+ - {if isset($grandstream_pc_port_vlan)}Enabled{else}Disabled{/if}
+ {/if}
- - 0
+ - {$grandstream_pc_port_vlan}
@@ -2498,7 +2506,11 @@
+ {if isset($grandstream_stun_server) }
+ - {$grandstream_stun_server}
+ {else}
+ {/if}
@@ -3674,15 +3686,27 @@
+ {if isset($grandstream_headset_key_mode)}
+ - {$grandstream_headset_key_mode}
+ {else}
- DefaultMode
+ {/if}
+ {if isset($grandstream_headset_ringtone)}
+ - {$grandstream_headset_ringtone}
+ {else}
- Normal
+ {/if}
+ {if isset($grandstream_headset_type)}
+ - {$grandstream_headset_type}
+ {else}
- Normal
+ {/if}
@@ -3701,11 +3725,19 @@
- - 0
+ {if isset($grandstream_headset_tx_gain)}
+ - {$grandstream_headset_tx_gain}
+ {else}
+ - 0
+ {/if}
+ {if isset($grandstream_headset_rx_gain)}
+ - {$grandstream_headset_rx_gain}
+ {else}
- 0
+ {/if}
@@ -3993,7 +4025,11 @@
+ {if isset($grandstream_screensaver_enable)}
+ - {$grandstream_screensaver_enable}
+ {else}
- OnIfNoVPKIsActive
+ {/if}
@@ -4001,7 +4037,7 @@
-
+ - {$grandstream_screensaver_source}
@@ -4510,7 +4546,7 @@
- - {$key_types[$keys.line.$line.device_key_type]}
+ - {$key_types[$keys.memory.$line.device_key_type]}
@@ -4699,7 +4735,7 @@
- - {$key_types[$keys.line.$line.device_key_type]}
+ - {$key_types[$keys.expansion.$line.device_key_type]}
diff --git a/resources/templates/provision/grandstream/grp2615/{$mac}.xml b/resources/templates/provision/grandstream/grp2615/{$mac}.xml
index f2d5ed224f..0e805e9f8c 100644
--- a/resources/templates/provision/grandstream/grp2615/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2615/{$mac}.xml
@@ -138,7 +138,11 @@
+ {if isset($grandstream_nat_traversal)}
+ - {$grandstream_nat_traversal}
+ {else}
- Auto
+ {/if}
@@ -173,7 +177,7 @@
- - 15
+ - {$row.register_expires}
@@ -784,7 +788,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_1}
@@ -792,7 +796,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_2}
@@ -800,7 +804,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_3}
@@ -808,7 +812,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_4}
@@ -816,7 +820,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_5}
@@ -824,7 +828,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_6}
@@ -832,7 +836,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_7}
@@ -840,7 +844,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_8}
@@ -848,7 +852,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_9}
@@ -856,7 +860,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_10}
@@ -903,21 +907,21 @@
- - *78
+
- - *79
+
- - *72
+
- - *73
+
@@ -1201,13 +1205,13 @@
- - Yes
+ - {if isset($grandstream_lan_port_vlan)}Yes{else}No{/if}
- - 0
+ - {$grandstream_lan_port_vlan}
@@ -1217,11 +1221,15 @@
- - Enabled
+ {if isset($grandstream_pc_mode)}
+ - {if isset($grandstream_pc_mode)}{$grandstream_pc_mode}{/if}
+ {else}
+ - {if isset($grandstream_pc_port_vlan)}Enabled{else}Disabled{/if}
+ {/if}
- - 0
+ - {$grandstream_pc_port_vlan}
@@ -2498,7 +2506,11 @@
+ {if isset($grandstream_stun_server) }
+ - {$grandstream_stun_server}
+ {else}
+ {/if}
@@ -3674,15 +3686,27 @@
+ {if isset($grandstream_headset_key_mode)}
+ - {$grandstream_headset_key_mode}
+ {else}
- DefaultMode
+ {/if}
+ {if isset($grandstream_headset_ringtone)}
+ - {$grandstream_headset_ringtone}
+ {else}
- Normal
+ {/if}
+ {if isset($grandstream_headset_type)}
+ - {$grandstream_headset_type}
+ {else}
- Normal
+ {/if}
@@ -3701,11 +3725,19 @@
- - 0
+ {if isset($grandstream_headset_tx_gain)}
+ - {$grandstream_headset_tx_gain}
+ {else}
+ - 0
+ {/if}
+ {if isset($grandstream_headset_rx_gain)}
+ - {$grandstream_headset_rx_gain}
+ {else}
- 0
+ {/if}
@@ -3993,7 +4025,11 @@
+ {if isset($grandstream_screensaver_enable)}
+ - {$grandstream_screensaver_enable}
+ {else}
- OnIfNoVPKIsActive
+ {/if}
@@ -4001,7 +4037,7 @@
-
+ - {$grandstream_screensaver_source}
diff --git a/resources/templates/provision/grandstream/grp2616/{$mac}.xml b/resources/templates/provision/grandstream/grp2616/{$mac}.xml
index f2d5ed224f..0e805e9f8c 100644
--- a/resources/templates/provision/grandstream/grp2616/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2616/{$mac}.xml
@@ -138,7 +138,11 @@
+ {if isset($grandstream_nat_traversal)}
+ - {$grandstream_nat_traversal}
+ {else}
- Auto
+ {/if}
@@ -173,7 +177,7 @@
- - 15
+ - {$row.register_expires}
@@ -784,7 +788,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_1}
@@ -792,7 +796,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_2}
@@ -800,7 +804,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_3}
@@ -808,7 +812,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_4}
@@ -816,7 +820,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_5}
@@ -824,7 +828,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_6}
@@ -832,7 +836,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_7}
@@ -840,7 +844,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_8}
@@ -848,7 +852,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_9}
@@ -856,7 +860,7 @@
- - 5
+ - {$grandstream_distinctive_ringtone_10}
@@ -903,21 +907,21 @@
- - *78
+
- - *79
+
- - *72
+
- - *73
+
@@ -1201,13 +1205,13 @@
- - Yes
+ - {if isset($grandstream_lan_port_vlan)}Yes{else}No{/if}
- - 0
+ - {$grandstream_lan_port_vlan}
@@ -1217,11 +1221,15 @@
- - Enabled
+ {if isset($grandstream_pc_mode)}
+ - {if isset($grandstream_pc_mode)}{$grandstream_pc_mode}{/if}
+ {else}
+ - {if isset($grandstream_pc_port_vlan)}Enabled{else}Disabled{/if}
+ {/if}
- - 0
+ - {$grandstream_pc_port_vlan}
@@ -2498,7 +2506,11 @@
+ {if isset($grandstream_stun_server) }
+ - {$grandstream_stun_server}
+ {else}
+ {/if}
@@ -3674,15 +3686,27 @@
+ {if isset($grandstream_headset_key_mode)}
+ - {$grandstream_headset_key_mode}
+ {else}
- DefaultMode
+ {/if}
+ {if isset($grandstream_headset_ringtone)}
+ - {$grandstream_headset_ringtone}
+ {else}
- Normal
+ {/if}
+ {if isset($grandstream_headset_type)}
+ - {$grandstream_headset_type}
+ {else}
- Normal
+ {/if}
@@ -3701,11 +3725,19 @@
- - 0
+ {if isset($grandstream_headset_tx_gain)}
+ - {$grandstream_headset_tx_gain}
+ {else}
+ - 0
+ {/if}
+ {if isset($grandstream_headset_rx_gain)}
+ - {$grandstream_headset_rx_gain}
+ {else}
- 0
+ {/if}
@@ -3993,7 +4025,11 @@
+ {if isset($grandstream_screensaver_enable)}
+ - {$grandstream_screensaver_enable}
+ {else}
- OnIfNoVPKIsActive
+ {/if}
@@ -4001,7 +4037,7 @@
-
+ - {$grandstream_screensaver_source}