diff --git a/resources/templates/provision/grandstream/dp750/{$mac}.xml b/resources/templates/provision/grandstream/dp750/{$mac}.xml
index d606da71dd..3467988d94 100644
--- a/resources/templates/provision/grandstream/dp750/{$mac}.xml
+++ b/resources/templates/provision/grandstream/dp750/{$mac}.xml
@@ -2602,18 +2602,18 @@
-0
+{$grandstream_ip_address_mode}
-0
-0
-0
-0
+{if isset($grandstream_ipv4preferdns_1)}{$grandstream_ipv4preferdns_1}{else}0{/if}
+{if isset($grandstream_ipv4preferdns_2)}{$grandstream_ipv4preferdns_2}{else}0{/if}
+{if isset($grandstream_ipv4preferdns_3)}{$grandstream_ipv4preferdns_3}{else}0{/if}
+{if isset($grandstream_ipv4preferdns_4)}{$grandstream_ipv4preferdns_4}{else}0{/if}
-
+phone-{$mac|replace:'-':''}
@@ -2635,34 +2635,34 @@
-
-
-
-
+{if isset($grandstream_ipv4octet_1)}{$grandstream_ipv4octet_1}{else}192{/if}
+{if isset($grandstream_ipv4octet_2)}{$grandstream_ipv4octet_2}{else}168{/if}
+{if isset($grandstream_ipv4octet_3)}{$grandstream_ipv4octet_3}{else}1{/if}
+{if isset($grandstream_ipv4octet_4)}{$grandstream_ipv4octet_4}{else}102{/if}
-
-
-
-
+{if isset($grandstream_ipv4mask_1)}{$grandstream_ipv4mask_1}{else}255{/if}
+{if isset($grandstream_ipv4mask_2)}{$grandstream_ipv4mask_2}{else}255{/if}
+{if isset($grandstream_ipv4mask_3)}{$grandstream_ipv4mask_3}{else}0{/if}
+{if isset($grandstream_ipv4mask_4)}{$grandstream_ipv4mask_4}{else}0{/if}
-
-
-
-
+{if isset($grandstream_ipv4gw_1)}{$grandstream_ipv4gw_1}{else}192{/if}
+{if isset($grandstream_ipv4gw_2)}{$grandstream_ipv4gw_2}{else}168{/if}
+{if isset($grandstream_ipv4gw_3)}{$grandstream_ipv4gw_3}{else}2{/if}
+{if isset($grandstream_ipv4gw_4)}{$grandstream_ipv4gw_4}{else}1{/if}
-
-
-
-
+{if isset($grandstream_ipv4dns1_1)}{$grandstream_ipv4dns1_1}{else}0{/if}
+{if isset($grandstream_ipv4dns1_2)}{$grandstream_ipv4dns1_2}{else}0{/if}
+{if isset($grandstream_ipv4dns1_3)}{$grandstream_ipv4dns1_3}{else}0{/if}
+{if isset($grandstream_ipv4dns1_4)}{$grandstream_ipv4dns1_4}{else}0{/if}
-
-
-
-
+{if isset($grandstream_ipv4dns2_1)}{$grandstream_ipv4dns2_1}{else}0{/if}
+{if isset($grandstream_ipv4dns2_2)}{$grandstream_ipv4dns2_2}{else}0{/if}
+{if isset($grandstream_ipv4dns2_3)}{$grandstream_ipv4dns2_3}{else}0{/if}
+{if isset($grandstream_ipv4dns2_4)}{$grandstream_ipv4dns2_4}{else}0{/if}
diff --git a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml
index 4e4bf25103..d2792d8a3b 100644
--- a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml
@@ -38,7 +38,7 @@
- {$account.1.display_name}
+ {$account.1.user_id}
diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
index 386d0e3533..b50f97d067 100644
--- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
@@ -5848,81 +5848,81 @@
- 192
+ {if isset($grandstream_ipv4octet_1)}{$grandstream_ipv4octet_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4octet_2)}{$grandstream_ipv4octet_2}{else}168{/if}
- 1
+ {if isset($grandstream_ipv4octet_3)}{$grandstream_ipv4octet_3}{else}1{/if}
- 102
+ {if isset($grandstream_ipv4octet_4)}{$grandstream_ipv4octet_4}{else}102{/if}
- 255
+ {if isset($grandstream_ipv4mask_1)}{$grandstream_ipv4mask_1}{else}255{/if}
- 255
+ {if isset($grandstream_ipv4mask_2)}{$grandstream_ipv4mask_2}{else}255{/if}
- 0
+ {if isset($grandstream_ipv4mask_3)}{$grandstream_ipv4mask_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4mask_4)}{$grandstream_ipv4mask_4}{else}0{/if}
- 192
+ {if isset($grandstream_ipv4gw_1)}{$grandstream_ipv4gw_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4gw_2)}{$grandstream_ipv4gw_2}{else}168{/if}
- 2
+ {if isset($grandstream_ipv4gw_3)}{$grandstream_ipv4gw_3}{else}2{/if}
- 1
+ {if isset($grandstream_ipv4gw_4)}{$grandstream_ipv4gw_4}{else}1{/if}
- 0
+ {if isset($grandstream_ipv4dns1_1)}{$grandstream_ipv4dns1_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_2)}{$grandstream_ipv4dns1_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_3)}{$grandstream_ipv4dns1_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_4)}{$grandstream_ipv4dns1_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_1)}{$grandstream_ipv4dns2_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_2)}{$grandstream_ipv4dns2_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_3)}{$grandstream_ipv4dns2_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_4)}{$grandstream_ipv4dns2_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_1)}{$grandstream_ipv4preferdns_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_2)}{$grandstream_ipv4preferdns_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_3)}{$grandstream_ipv4preferdns_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_4)}{$grandstream_ipv4preferdns_4}{else}0{/if}
diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
index 06965dbc9a..35f5bb980a 100644
--- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
@@ -5848,81 +5848,81 @@
- 192
+ {if isset($grandstream_ipv4octet_1)}{$grandstream_ipv4octet_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4octet_2)}{$grandstream_ipv4octet_2}{else}168{/if}
- 1
+ {if isset($grandstream_ipv4octet_3)}{$grandstream_ipv4octet_3}{else}1{/if}
- 102
+ {if isset($grandstream_ipv4octet_4)}{$grandstream_ipv4octet_4}{else}102{/if}
- 255
+ {if isset($grandstream_ipv4mask_1)}{$grandstream_ipv4mask_1}{else}255{/if}
- 255
+ {if isset($grandstream_ipv4mask_2)}{$grandstream_ipv4mask_2}{else}255{/if}
- 0
+ {if isset($grandstream_ipv4mask_3)}{$grandstream_ipv4mask_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4mask_4)}{$grandstream_ipv4mask_4}{else}0{/if}
- 192
+ {if isset($grandstream_ipv4gw_1)}{$grandstream_ipv4gw_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4gw_2)}{$grandstream_ipv4gw_2}{else}168{/if}
- 2
+ {if isset($grandstream_ipv4gw_3)}{$grandstream_ipv4gw_3}{else}2{/if}
- 1
+ {if isset($grandstream_ipv4gw_4)}{$grandstream_ipv4gw_4}{else}1{/if}
- 0
+ {if isset($grandstream_ipv4dns1_1)}{$grandstream_ipv4dns1_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_2)}{$grandstream_ipv4dns1_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_3)}{$grandstream_ipv4dns1_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_4)}{$grandstream_ipv4dns1_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_1)}{$grandstream_ipv4dns2_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_2)}{$grandstream_ipv4dns2_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_3)}{$grandstream_ipv4dns2_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_4)}{$grandstream_ipv4dns2_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_1)}{$grandstream_ipv4preferdns_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_2)}{$grandstream_ipv4preferdns_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_3)}{$grandstream_ipv4preferdns_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_4)}{$grandstream_ipv4preferdns_4}{else}0{/if}
diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
index 386d0e3533..b50f97d067 100644
--- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
@@ -5848,81 +5848,81 @@
- 192
+ {if isset($grandstream_ipv4octet_1)}{$grandstream_ipv4octet_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4octet_2)}{$grandstream_ipv4octet_2}{else}168{/if}
- 1
+ {if isset($grandstream_ipv4octet_3)}{$grandstream_ipv4octet_3}{else}1{/if}
- 102
+ {if isset($grandstream_ipv4octet_4)}{$grandstream_ipv4octet_4}{else}102{/if}
- 255
+ {if isset($grandstream_ipv4mask_1)}{$grandstream_ipv4mask_1}{else}255{/if}
- 255
+ {if isset($grandstream_ipv4mask_2)}{$grandstream_ipv4mask_2}{else}255{/if}
- 0
+ {if isset($grandstream_ipv4mask_3)}{$grandstream_ipv4mask_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4mask_4)}{$grandstream_ipv4mask_4}{else}0{/if}
- 192
+ {if isset($grandstream_ipv4gw_1)}{$grandstream_ipv4gw_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4gw_2)}{$grandstream_ipv4gw_2}{else}168{/if}
- 2
+ {if isset($grandstream_ipv4gw_3)}{$grandstream_ipv4gw_3}{else}2{/if}
- 1
+ {if isset($grandstream_ipv4gw_4)}{$grandstream_ipv4gw_4}{else}1{/if}
- 0
+ {if isset($grandstream_ipv4dns1_1)}{$grandstream_ipv4dns1_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_2)}{$grandstream_ipv4dns1_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_3)}{$grandstream_ipv4dns1_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_4)}{$grandstream_ipv4dns1_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_1)}{$grandstream_ipv4dns2_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_2)}{$grandstream_ipv4dns2_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_3)}{$grandstream_ipv4dns2_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_4)}{$grandstream_ipv4dns2_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_1)}{$grandstream_ipv4preferdns_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_2)}{$grandstream_ipv4preferdns_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_3)}{$grandstream_ipv4preferdns_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_4)}{$grandstream_ipv4preferdns_4}{else}0{/if}
diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
index f3d569ed36..71514ff3c6 100644
--- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
@@ -5848,81 +5848,81 @@
- 192
+ {if isset($grandstream_ipv4octet_1)}{$grandstream_ipv4octet_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4octet_2)}{$grandstream_ipv4octet_2}{else}168{/if}
- 1
+ {if isset($grandstream_ipv4octet_3)}{$grandstream_ipv4octet_3}{else}1{/if}
- 102
+ {if isset($grandstream_ipv4octet_4)}{$grandstream_ipv4octet_4}{else}102{/if}
- 255
+ {if isset($grandstream_ipv4mask_1)}{$grandstream_ipv4mask_1}{else}255{/if}
- 255
+ {if isset($grandstream_ipv4mask_2)}{$grandstream_ipv4mask_2}{else}255{/if}
- 0
+ {if isset($grandstream_ipv4mask_3)}{$grandstream_ipv4mask_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4mask_4)}{$grandstream_ipv4mask_4}{else}0{/if}
- 192
+ {if isset($grandstream_ipv4gw_1)}{$grandstream_ipv4gw_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4gw_2)}{$grandstream_ipv4gw_2}{else}168{/if}
- 2
+ {if isset($grandstream_ipv4gw_3)}{$grandstream_ipv4gw_3}{else}2{/if}
- 1
+ {if isset($grandstream_ipv4gw_4)}{$grandstream_ipv4gw_4}{else}1{/if}
- 0
+ {if isset($grandstream_ipv4dns1_1)}{$grandstream_ipv4dns1_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_2)}{$grandstream_ipv4dns1_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_3)}{$grandstream_ipv4dns1_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_4)}{$grandstream_ipv4dns1_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_1)}{$grandstream_ipv4dns2_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_2)}{$grandstream_ipv4dns2_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_3)}{$grandstream_ipv4dns2_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_4)}{$grandstream_ipv4dns2_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_1)}{$grandstream_ipv4preferdns_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_2)}{$grandstream_ipv4preferdns_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_3)}{$grandstream_ipv4preferdns_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_4)}{$grandstream_ipv4preferdns_4}{else}0{/if}
diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
index 1f30aaa682..6ae0ffde13 100644
--- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
@@ -5848,81 +5848,81 @@
- 192
+ {if isset($grandstream_ipv4octet_1)}{$grandstream_ipv4octet_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4octet_2)}{$grandstream_ipv4octet_2}{else}168{/if}
- 1
+ {if isset($grandstream_ipv4octet_3)}{$grandstream_ipv4octet_3}{else}1{/if}
- 102
+ {if isset($grandstream_ipv4octet_4)}{$grandstream_ipv4octet_4}{else}102{/if}
- 255
+ {if isset($grandstream_ipv4mask_1)}{$grandstream_ipv4mask_1}{else}255{/if}
- 255
+ {if isset($grandstream_ipv4mask_2)}{$grandstream_ipv4mask_2}{else}255{/if}
- 0
+ {if isset($grandstream_ipv4mask_3)}{$grandstream_ipv4mask_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4mask_4)}{$grandstream_ipv4mask_4}{else}0{/if}
- 192
+ {if isset($grandstream_ipv4gw_1)}{$grandstream_ipv4gw_1}{else}192{/if}
- 168
+ {if isset($grandstream_ipv4gw_2)}{$grandstream_ipv4gw_2}{else}168{/if}
- 2
+ {if isset($grandstream_ipv4gw_3)}{$grandstream_ipv4gw_3}{else}2{/if}
- 1
+ {if isset($grandstream_ipv4gw_4)}{$grandstream_ipv4gw_4}{else}1{/if}
- 0
+ {if isset($grandstream_ipv4dns1_1)}{$grandstream_ipv4dns1_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_2)}{$grandstream_ipv4dns1_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_3)}{$grandstream_ipv4dns1_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns1_4)}{$grandstream_ipv4dns1_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_1)}{$grandstream_ipv4dns2_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_2)}{$grandstream_ipv4dns2_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_3)}{$grandstream_ipv4dns2_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4dns2_4)}{$grandstream_ipv4dns2_4}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_1)}{$grandstream_ipv4preferdns_1}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_2)}{$grandstream_ipv4preferdns_2}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_3)}{$grandstream_ipv4preferdns_3}{else}0{/if}
- 0
+ {if isset($grandstream_ipv4preferdns_4)}{$grandstream_ipv4preferdns_4}{else}0{/if}