diff --git a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml
index dc666c3d41..99af016147 100644
--- a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml
@@ -2532,7 +2532,7 @@
- 0
+ {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if}