diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml
index 1ff06f0c43..2c39cd0953 100644
--- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml
@@ -1919,7 +1919,7 @@
- 2
+ {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if}