diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
index 2aff9e620e..6a84381ab6 100644
--- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
@@ -9,7 +9,7 @@
-
+
@@ -716,7 +716,7 @@
-0
+1
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5970,11 +5970,17 @@
-{$grandstream_city_code_auto}
+{if isset($grandstream_city_code)}
+0
+{else}
+1
+{/if}
-
-
+
+
+
{$grandstream_city_code}
+
@@ -5983,7 +5989,11 @@
-c
+{if isset($grandstream_temp_unit)}
+{$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
index dd15082533..074a6103fb 100644
--- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
@@ -716,7 +716,7 @@
-0
+1
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5970,11 +5970,16 @@
+{if isset($grandstream_city_code)}
+0
+{else}
1
+{/if}
-
-
-
+
+
+
+{$grandstream_city_code}
@@ -5984,7 +5989,11 @@
-c
+{if isset($grandstream_temp_unit)}
+{$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
index dd15082533..074a6103fb 100644
--- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
@@ -716,7 +716,7 @@
-0
+1
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5970,11 +5970,16 @@
+{if isset($grandstream_city_code)}
+0
+{else}
1
+{/if}
-
-
-
+
+
+
+{$grandstream_city_code}
@@ -5984,7 +5989,11 @@
-c
+{if isset($grandstream_temp_unit)}
+{$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
index 74bc3e0cd0..47657146e0 100644
--- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
@@ -716,7 +716,7 @@
-0
+1
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5970,10 +5970,15 @@
-{$grandstream_city_code_auto}
+{if isset($grandstream_city_code)}
+0
+{else}
+1
+{/if}
-
-
+
+
+
{$grandstream_city_code}
@@ -5984,7 +5989,11 @@
-c
+{if isset ($grandstream_temp_unit)}
+{}$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
index 7e1efe30a5..8bd7f5997a 100644
--- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
@@ -670,33 +670,33 @@
-ring1
+
-1
+0
-ring2
+
-2
+0
-ring
+
-3
+0
@@ -731,7 +731,7 @@
-0
+1
@@ -7243,11 +7243,16 @@
+{if isset($grandstream_city_code)}
+0
+{else}
1
+{/if}
+
-
+{$grandstream_city_code}
@@ -7257,7 +7262,11 @@
+{if isset ($grandstream_temp_unit)}
+{}$grandstream_temp_unit}
+{else}
auto
+{/if}