diff --git a/resources/templates/provision/grandstream/ht502/{$mac}.xml b/resources/templates/provision/grandstream/ht502/{$mac}.xml
index ccf4ae7baf..5b77f7d685 100644
--- a/resources/templates/provision/grandstream/ht502/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht502/{$mac}.xml
@@ -39,12 +39,15 @@
2
-
- fm.grandstream.com/gs
+ {if isset($grandstream_firmware_path)}
+ {$grandstream_firmware_path}
+ {else}
+ {$domain_name}{$project_path}/app/provision
+ {/if}
{$domain_name}{$project_path}/app/provision
-
+ {$http_auth_password}
{$http_auth_username}