diff --git a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml
index 86e4f4bb02..41ed4aeb41 100644
--- a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml
@@ -2959,7 +2959,11 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 -->
+ {if isset($grandstream_stun_server)}
+ {$grandstream_stun_server}
+ {else}
+ {/if}