diff --git a/resources/templates/provision/grandstream/ht502/{$mac}.xml b/resources/templates/provision/grandstream/ht502/{$mac}.xml
index 26e5c8cacc..4f849515a1 100644
--- a/resources/templates/provision/grandstream/ht502/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht502/{$mac}.xml
@@ -431,7 +431,13 @@
0
+
+ {if isset($grandstream_fax_mode)}
+ 1
+ {else}
0
+ {/if}
+
0