diff --git a/resources/templates/provision/cisco/spa501g/{$mac}.xml b/resources/templates/provision/cisco/spa501g/{$mac}.xml
index 3d6db05ad..8fc8cb57b 100644
--- a/resources/templates/provision/cisco/spa501g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa501g/{$mac}.xml
@@ -198,7 +198,7 @@
Yes
3600
-
+{$cisco_spa50x_firmware_rule}
$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH
$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR
$PN $MAC -- Upgrade failed: $ERR
diff --git a/resources/templates/provision/cisco/spa502g/{$mac}.xml b/resources/templates/provision/cisco/spa502g/{$mac}.xml
index 85570a7d5..e2f01cc73 100644
--- a/resources/templates/provision/cisco/spa502g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa502g/{$mac}.xml
@@ -200,7 +200,7 @@
Yes
3600
-
+{$cisco_spa50x_firmware_rule}
$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH
$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR
$PN $MAC -- Upgrade failed: $ERR
diff --git a/resources/templates/provision/cisco/spa504g/{$mac}.xml b/resources/templates/provision/cisco/spa504g/{$mac}.xml
index 67a537213..40d023bd1 100644
--- a/resources/templates/provision/cisco/spa504g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa504g/{$mac}.xml
@@ -141,7 +141,7 @@
Yes
3600
-
+{$cisco_spa50x_firmware_rule}
$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH
$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR
$PN $MAC -- Upgrade failed: $ERR
diff --git a/resources/templates/provision/cisco/spa508g/{$mac}.xml b/resources/templates/provision/cisco/spa508g/{$mac}.xml
index 0403c4d9c..a52f84303 100644
--- a/resources/templates/provision/cisco/spa508g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa508g/{$mac}.xml
@@ -200,7 +200,7 @@
Yes
3600
-
+{$cisco_spa50x_firmware_rule}
$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH
$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR
$PN $MAC -- Upgrade failed: $ERR
diff --git a/resources/templates/provision/cisco/spa509g/{$mac}.xml b/resources/templates/provision/cisco/spa509g/{$mac}.xml
index 799982c47..6bda8e246 100644
--- a/resources/templates/provision/cisco/spa509g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa509g/{$mac}.xml
@@ -200,7 +200,7 @@
Yes
3600
-
+{$cisco_spa50x_firmware_rule}
$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH
$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR
$PN $MAC -- Upgrade failed: $ERR
diff --git a/resources/templates/provision/cisco/spa512g/{$mac}.xml b/resources/templates/provision/cisco/spa512g/{$mac}.xml
index 6405f557b..e5a3dbe4e 100644
--- a/resources/templates/provision/cisco/spa512g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa512g/{$mac}.xml
@@ -200,7 +200,7 @@
Yes
3600
-
+{$cisco_spa51x_firmware_rule}
$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH
$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR
$PN $MAC -- Upgrade failed: $ERR
diff --git a/resources/templates/provision/cisco/spa514g/{$mac}.xml b/resources/templates/provision/cisco/spa514g/{$mac}.xml
index 522fda594..e1df53a9b 100644
--- a/resources/templates/provision/cisco/spa514g/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa514g/{$mac}.xml
@@ -101,7 +101,7 @@
Yes
3600
-
+{$cisco_spa51x_firmware_rule}
$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH
$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR
$PN $MAC -- Upgrade failed: $ERR
diff --git a/resources/templates/provision/yealink/t20p/y000000000007.cfg b/resources/templates/provision/yealink/t20p/y000000000007.cfg
index 759f45e64..7d964f2f2 100644
--- a/resources/templates/provision/yealink/t20p/y000000000007.cfg
+++ b/resources/templates/provision/yealink/t20p/y000000000007.cfg
@@ -1136,7 +1136,7 @@ phone_setting.hold_power_led_flash_enable =
#######################################################################################
## Configure the access URL of firmware ##
#######################################################################################
-firmware.url =
+firmware.url = {$yealink_t20p_firmware_url}
#######################################################################################
## Configure the access URL of the customized ringtones ##
diff --git a/resources/templates/provision/yealink/t22p/y000000000005.cfg b/resources/templates/provision/yealink/t22p/y000000000005.cfg
index 08139237d..e87afe9c9 100644
--- a/resources/templates/provision/yealink/t22p/y000000000005.cfg
+++ b/resources/templates/provision/yealink/t22p/y000000000005.cfg
@@ -1136,7 +1136,7 @@ phone_setting.hold_power_led_flash_enable =
#######################################################################################
## Configure the access URL of firmware ##
#######################################################################################
-firmware.url =
+firmware.url = {$yealink_t22p_firmware_url}
#######################################################################################
## Configure the access URL of the customized ringtones ##
diff --git a/resources/templates/provision/yealink/t26p/y000000000004.cfg b/resources/templates/provision/yealink/t26p/y000000000004.cfg
index f96e35edb..9037d2c10 100644
--- a/resources/templates/provision/yealink/t26p/y000000000004.cfg
+++ b/resources/templates/provision/yealink/t26p/y000000000004.cfg
@@ -1136,7 +1136,7 @@ phone_setting.hold_power_led_flash_enable =
#######################################################################################
## Configure the access URL of firmware ##
#######################################################################################
-firmware.url =
+firmware.url = {$yealink_t26p_firmware_url}
#######################################################################################
## Configure the access URL of the customized ringtones ##
diff --git a/resources/templates/provision/yealink/t32g/y000000000032.cfg b/resources/templates/provision/yealink/t32g/y000000000032.cfg
index 58d96b0ec..f2d354d6c 100644
--- a/resources/templates/provision/yealink/t32g/y000000000032.cfg
+++ b/resources/templates/provision/yealink/t32g/y000000000032.cfg
@@ -1133,7 +1133,7 @@ phone_setting.hold_power_led_flash_enable =
#######################################################################################
## Configure the access URL of firmware ##
#######################################################################################
-firmware.url =
+firmware.url = {$yealink_t32g_firmware_url}
#######################################################################################
## Configure the access URL of the customized ringtones ##
diff --git a/resources/templates/provision/yealink/t38g/y000000000038.cfg b/resources/templates/provision/yealink/t38g/y000000000038.cfg
index e8bbd5ad8..e7b618b2c 100644
--- a/resources/templates/provision/yealink/t38g/y000000000038.cfg
+++ b/resources/templates/provision/yealink/t38g/y000000000038.cfg
@@ -1136,7 +1136,7 @@ phone_setting.hold_power_led_flash_enable =
#######################################################################################
## Configure the access URL of firmware ##
#######################################################################################
-firmware.url =
+firmware.url = {$yealink_t38g_firmware_url}
#######################################################################################
## Configure the access URL of the customized ringtones ##
diff --git a/resources/templates/provision/yealink/t42g/y000000000029.cfg b/resources/templates/provision/yealink/t42g/y000000000029.cfg
index 63a320c86..a9d165b04 100644
--- a/resources/templates/provision/yealink/t42g/y000000000029.cfg
+++ b/resources/templates/provision/yealink/t42g/y000000000029.cfg
@@ -1531,4 +1531,4 @@ directory_setting.url =
## Configure the access URL of firmware ##
#######################################################################################
#Before using this parameter, you should store the desired firmware (x.71.x.x.rom) to the provisioning server.
-firmware.url =
+firmware.url = {$yealink_t42g_firmware_url}
diff --git a/resources/templates/provision/yealink/t46g/y000000000028.cfg b/resources/templates/provision/yealink/t46g/y000000000028.cfg
index 115f2b6f7..3bf35892f 100644
--- a/resources/templates/provision/yealink/t46g/y000000000028.cfg
+++ b/resources/templates/provision/yealink/t46g/y000000000028.cfg
@@ -1531,4 +1531,4 @@ directory_setting.url =
## Configure the access URL of firmware ##
#######################################################################################
#Before using this parameter, you should store the desired firmware (x.71.x.x.rom) to the provisioning server.
-firmware.url =
+firmware.url = {$yealink_t46g_firmware_url}
diff --git a/resources/templates/provision/yealink/t48g/y000000000035.cfg b/resources/templates/provision/yealink/t48g/y000000000035.cfg
index e0468db79..fc16fb6ff 100644
--- a/resources/templates/provision/yealink/t48g/y000000000035.cfg
+++ b/resources/templates/provision/yealink/t48g/y000000000035.cfg
@@ -1531,4 +1531,4 @@ directory_setting.url =
## Configure the access URL of firmware ##
#######################################################################################
#Before using this parameter, you should store the desired firmware (x.71.x.x.rom) to the provisioning server.
-firmware.url =
+firmware.url = {$yealink_t48g_firmware_url}
diff --git a/resources/templates/provision/yealink/w52p/y000000000025.cfg b/resources/templates/provision/yealink/w52p/y000000000025.cfg
index 23ab73731..502d1ec7b 100644
--- a/resources/templates/provision/yealink/w52p/y000000000025.cfg
+++ b/resources/templates/provision/yealink/w52p/y000000000025.cfg
@@ -314,7 +314,7 @@ phone_setting.predial_autodial = 1
#######################################################################################
## Base_Upgrade ##
#######################################################################################
-firmware.url =
+firmware.url = {$yealink_w52p_firmware_url}
#######################################################################################
## Handset_upgrade ##