diff --git a/resources/templates/provision/grandstream/ht502/{$mac}.xml b/resources/templates/provision/grandstream/ht502/{$mac}.xml index 17a6a3ac75..26e5c8cacc 100644 --- a/resources/templates/provision/grandstream/ht502/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht502/{$mac}.xml @@ -40,15 +40,23 @@ 2 - {if isset($grandstream_firmware_path) && isset($firmware_version)} - {$grandstream_firmware_path}/ht502/{$firmware_version} - {elseif isset($grandstream_firmware_path)} - {$grandstream_firmware_path}/ht502 - {else} - {$domain_name}{$project_path}/app/provision - {/if} + {if isset($grandstream_firmware_path) && isset($firmware_version)} + {$grandstream_firmware_path}/ht502/{$firmware_version} + {elseif isset($grandstream_firmware_path)} + {$grandstream_firmware_path}/ht502 + {else} + {$domain_name}{$project_path}/app/provision + {/if} + - {$domain_name}{$project_path}/app/provision + {if $grandstream_config_server_path=="none"} + + {elseif isset($grandstream_config_server_path)} + {$grandstream_config_server_path} + {else} + {$domain_name}{$project_path}/app/provision + {/if} +