From 418cc0c75997b4a06b2933959aaa754eff8a96bc Mon Sep 17 00:00:00 2001 From: TekMason Date: Thu, 10 Aug 2017 11:12:05 -0400 Subject: [PATCH] Yealink Template Updates (#2789) Set firmware.url = {$yealink_firmware_url}/{$yealink_firmware_} Also changed user agent for VP530 to match what the phone actually sends --- app/provision/resources/classes/provision.php | 2 +- resources/templates/provision/yealink/cp860/y000000000037.cfg | 2 +- resources/templates/provision/yealink/t19p/y000000000053.cfg | 2 +- resources/templates/provision/yealink/t20p/y000000000007.cfg | 2 +- resources/templates/provision/yealink/t21p/y000000000052.cfg | 2 +- resources/templates/provision/yealink/t22p/y000000000005.cfg | 2 +- resources/templates/provision/yealink/t23g/y000000000044.cfg | 2 +- resources/templates/provision/yealink/t23p/y000000000044.cfg | 2 +- resources/templates/provision/yealink/t26p/y000000000004.cfg | 2 +- resources/templates/provision/yealink/t27g/y000000000069.cfg | 2 +- resources/templates/provision/yealink/t27p/y000000000045.cfg | 2 +- resources/templates/provision/yealink/t28p/y000000000000.cfg | 2 +- resources/templates/provision/yealink/t29g/y000000000046.cfg | 2 +- resources/templates/provision/yealink/t32g/y000000000032.cfg | 2 +- resources/templates/provision/yealink/t38g/y000000000038.cfg | 2 +- resources/templates/provision/yealink/t40p/y000000000054.cfg | 2 +- resources/templates/provision/yealink/t41p/y000000000036.cfg | 2 +- resources/templates/provision/yealink/t41s/y000000000068.cfg | 2 +- resources/templates/provision/yealink/t42g/y000000000029.cfg | 2 +- resources/templates/provision/yealink/t46g/y000000000028.cfg | 2 +- resources/templates/provision/yealink/t46s/y000000000066.cfg | 2 +- resources/templates/provision/yealink/t48g/y000000000035.cfg | 2 +- resources/templates/provision/yealink/t48s/y000000000065.cfg | 2 +- resources/templates/provision/yealink/t49g/y000000000051.cfg | 2 +- resources/templates/provision/yealink/vp530/y000000000023.cfg | 2 +- resources/templates/provision/yealink/w52p/y000000000025.cfg | 2 +- resources/templates/provision/yealink/w56p/y000000000025.cfg | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 7c75e5ec8c..400bb1fe78 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -587,7 +587,7 @@ include "root.php"; $templates['Yealink SIP-T48G'] = 'yealink/t48g'; $templates['Yealink SIP-T48S'] = 'yealink/t48s'; $templates['Yealink SIP-T49G'] = 'yealink/t49g'; - $templates['Yealink SIP-VP530'] = 'yealink/vp530'; + $templates['VP530P'] = 'yealink/vp530'; $templates['Yealink SIP-W52P'] = 'yealink/w52p'; $templates['Yealink SIP-W56P'] = 'yealink/w56p'; $templates['HW DP750'] = 'grandstream/dp750'; diff --git a/resources/templates/provision/yealink/cp860/y000000000037.cfg b/resources/templates/provision/yealink/cp860/y000000000037.cfg index ff805ca5fa..fe1fb8de82 100644 --- a/resources/templates/provision/yealink/cp860/y000000000037.cfg +++ b/resources/templates/provision/yealink/cp860/y000000000037.cfg @@ -1590,4 +1590,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_cp860_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_cp860} diff --git a/resources/templates/provision/yealink/t19p/y000000000053.cfg b/resources/templates/provision/yealink/t19p/y000000000053.cfg index 2ab612c85e..6613435cd8 100644 --- a/resources/templates/provision/yealink/t19p/y000000000053.cfg +++ b/resources/templates/provision/yealink/t19p/y000000000053.cfg @@ -1178,7 +1178,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure the access URL of firmware ## ####################################################################################### -firmware.url = {$yealink_t20p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t19p} ####################################################################################### ## Configure the access URL of the customized ringtones ## diff --git a/resources/templates/provision/yealink/t20p/y000000000007.cfg b/resources/templates/provision/yealink/t20p/y000000000007.cfg index 2ab612c85e..6f4edb5140 100644 --- a/resources/templates/provision/yealink/t20p/y000000000007.cfg +++ b/resources/templates/provision/yealink/t20p/y000000000007.cfg @@ -1178,7 +1178,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure the access URL of firmware ## ####################################################################################### -firmware.url = {$yealink_t20p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t20p} ####################################################################################### ## Configure the access URL of the customized ringtones ## diff --git a/resources/templates/provision/yealink/t21p/y000000000052.cfg b/resources/templates/provision/yealink/t21p/y000000000052.cfg index f03c9116f4..c577ae31bd 100644 --- a/resources/templates/provision/yealink/t21p/y000000000052.cfg +++ b/resources/templates/provision/yealink/t21p/y000000000052.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t21p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t21p} diff --git a/resources/templates/provision/yealink/t22p/y000000000005.cfg b/resources/templates/provision/yealink/t22p/y000000000005.cfg index 8bfbee34fe..b22b1d4295 100644 --- a/resources/templates/provision/yealink/t22p/y000000000005.cfg +++ b/resources/templates/provision/yealink/t22p/y000000000005.cfg @@ -1178,7 +1178,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure the access URL of firmware ## ####################################################################################### -firmware.url = {$yealink_t22p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t22p} ####################################################################################### ## Configure the access URL of the customized ringtones ## diff --git a/resources/templates/provision/yealink/t23g/y000000000044.cfg b/resources/templates/provision/yealink/t23g/y000000000044.cfg index 5d9af9b9a7..deed3b42e1 100644 --- a/resources/templates/provision/yealink/t23g/y000000000044.cfg +++ b/resources/templates/provision/yealink/t23g/y000000000044.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t23g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t23g} diff --git a/resources/templates/provision/yealink/t23p/y000000000044.cfg b/resources/templates/provision/yealink/t23p/y000000000044.cfg index 801227c018..421096749a 100644 --- a/resources/templates/provision/yealink/t23p/y000000000044.cfg +++ b/resources/templates/provision/yealink/t23p/y000000000044.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t23p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t23p} diff --git a/resources/templates/provision/yealink/t26p/y000000000004.cfg b/resources/templates/provision/yealink/t26p/y000000000004.cfg index 6ab14392c6..5ba7f3b435 100644 --- a/resources/templates/provision/yealink/t26p/y000000000004.cfg +++ b/resources/templates/provision/yealink/t26p/y000000000004.cfg @@ -1178,7 +1178,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure the access URL of firmware ## ####################################################################################### -firmware.url = {$yealink_t26p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t26p} ####################################################################################### ## Configure the access URL of the customized ringtones ## diff --git a/resources/templates/provision/yealink/t27g/y000000000069.cfg b/resources/templates/provision/yealink/t27g/y000000000069.cfg index d670386c97..2c60792ae7 100644 --- a/resources/templates/provision/yealink/t27g/y000000000069.cfg +++ b/resources/templates/provision/yealink/t27g/y000000000069.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t27g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t27g} diff --git a/resources/templates/provision/yealink/t27p/y000000000045.cfg b/resources/templates/provision/yealink/t27p/y000000000045.cfg index b3d8f9d437..dcb6686a3b 100644 --- a/resources/templates/provision/yealink/t27p/y000000000045.cfg +++ b/resources/templates/provision/yealink/t27p/y000000000045.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t27p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t27p} diff --git a/resources/templates/provision/yealink/t28p/y000000000000.cfg b/resources/templates/provision/yealink/t28p/y000000000000.cfg index a5224e68ea..5157c897ec 100644 --- a/resources/templates/provision/yealink/t28p/y000000000000.cfg +++ b/resources/templates/provision/yealink/t28p/y000000000000.cfg @@ -1178,7 +1178,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure the access URL of firmware ## ####################################################################################### -firmware.url = +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t28p} ####################################################################################### ## Configure the access URL of the customized ringtones ## diff --git a/resources/templates/provision/yealink/t29g/y000000000046.cfg b/resources/templates/provision/yealink/t29g/y000000000046.cfg index 9d1286cd61..3c86744783 100644 --- a/resources/templates/provision/yealink/t29g/y000000000046.cfg +++ b/resources/templates/provision/yealink/t29g/y000000000046.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t29p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t29g} diff --git a/resources/templates/provision/yealink/t32g/y000000000032.cfg b/resources/templates/provision/yealink/t32g/y000000000032.cfg index a49922dd0c..cd9ab1df7d 100644 --- a/resources/templates/provision/yealink/t32g/y000000000032.cfg +++ b/resources/templates/provision/yealink/t32g/y000000000032.cfg @@ -1175,7 +1175,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure the access URL of firmware ## ####################################################################################### -firmware.url = {$yealink_t32g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t32g} ####################################################################################### ## 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 213b55c3cb..86960575fe 100644 --- a/resources/templates/provision/yealink/t38g/y000000000038.cfg +++ b/resources/templates/provision/yealink/t38g/y000000000038.cfg @@ -1178,7 +1178,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure the access URL of firmware ## ####################################################################################### -firmware.url = {$yealink_t38g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t38g} ####################################################################################### ## Configure the access URL of the customized ringtones ## diff --git a/resources/templates/provision/yealink/t40p/y000000000054.cfg b/resources/templates/provision/yealink/t40p/y000000000054.cfg index efcd2df272..f8835b0d8d 100644 --- a/resources/templates/provision/yealink/t40p/y000000000054.cfg +++ b/resources/templates/provision/yealink/t40p/y000000000054.cfg @@ -1564,5 +1564,5 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t41p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t41p} diff --git a/resources/templates/provision/yealink/t41p/y000000000036.cfg b/resources/templates/provision/yealink/t41p/y000000000036.cfg index a8299094c2..3919accc1e 100644 --- a/resources/templates/provision/yealink/t41p/y000000000036.cfg +++ b/resources/templates/provision/yealink/t41p/y000000000036.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t41p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t41p} diff --git a/resources/templates/provision/yealink/t41s/y000000000068.cfg b/resources/templates/provision/yealink/t41s/y000000000068.cfg index a1fec32a9c..18d1d1b02b 100644 --- a/resources/templates/provision/yealink/t41s/y000000000068.cfg +++ b/resources/templates/provision/yealink/t41s/y000000000068.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t41s_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t41s} diff --git a/resources/templates/provision/yealink/t42g/y000000000029.cfg b/resources/templates/provision/yealink/t42g/y000000000029.cfg index 45cbe93df0..49f6ca48dd 100644 --- a/resources/templates/provision/yealink/t42g/y000000000029.cfg +++ b/resources/templates/provision/yealink/t42g/y000000000029.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t42g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t42g} diff --git a/resources/templates/provision/yealink/t46g/y000000000028.cfg b/resources/templates/provision/yealink/t46g/y000000000028.cfg index b7ba798855..e6447c5e51 100644 --- a/resources/templates/provision/yealink/t46g/y000000000028.cfg +++ b/resources/templates/provision/yealink/t46g/y000000000028.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t46g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t46g} diff --git a/resources/templates/provision/yealink/t46s/y000000000066.cfg b/resources/templates/provision/yealink/t46s/y000000000066.cfg index 02dcc54b94..21e39720df 100644 --- a/resources/templates/provision/yealink/t46s/y000000000066.cfg +++ b/resources/templates/provision/yealink/t46s/y000000000066.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t46s_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t46s} diff --git a/resources/templates/provision/yealink/t48g/y000000000035.cfg b/resources/templates/provision/yealink/t48g/y000000000035.cfg index 7edd609e3a..a1d43ad2d3 100644 --- a/resources/templates/provision/yealink/t48g/y000000000035.cfg +++ b/resources/templates/provision/yealink/t48g/y000000000035.cfg @@ -1572,4 +1572,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t48g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t48g} diff --git a/resources/templates/provision/yealink/t48s/y000000000065.cfg b/resources/templates/provision/yealink/t48s/y000000000065.cfg index cc85cf1639..5f96773c1e 100644 --- a/resources/templates/provision/yealink/t48s/y000000000065.cfg +++ b/resources/templates/provision/yealink/t48s/y000000000065.cfg @@ -1572,4 +1572,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t48s_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t48s} diff --git a/resources/templates/provision/yealink/t49g/y000000000051.cfg b/resources/templates/provision/yealink/t49g/y000000000051.cfg index b5c5c5ee61..b6cd81c3d5 100644 --- a/resources/templates/provision/yealink/t49g/y000000000051.cfg +++ b/resources/templates/provision/yealink/t49g/y000000000051.cfg @@ -1573,4 +1573,4 @@ directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_userna ## 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 = {$yealink_t49g_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t49g} diff --git a/resources/templates/provision/yealink/vp530/y000000000023.cfg b/resources/templates/provision/yealink/vp530/y000000000023.cfg index c69bc1af70..f27617d0f6 100644 --- a/resources/templates/provision/yealink/vp530/y000000000023.cfg +++ b/resources/templates/provision/yealink/vp530/y000000000023.cfg @@ -1008,7 +1008,7 @@ phone_setting.missed_call_power_led_flash.enable = 0 ####################################################################################### ## Configure a server URL for firmware update ## ####################################################################################### -firmware.url = +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_vp530} ####################################################################################### ## Configure a server URL for customizing a ringtones ## diff --git a/resources/templates/provision/yealink/w52p/y000000000025.cfg b/resources/templates/provision/yealink/w52p/y000000000025.cfg index 7cf1b87848..0a13f79f79 100644 --- a/resources/templates/provision/yealink/w52p/y000000000025.cfg +++ b/resources/templates/provision/yealink/w52p/y000000000025.cfg @@ -331,7 +331,7 @@ phone_setting.predial_autodial = 1 ####################################################################################### ## Base_Upgrade ## ####################################################################################### -firmware.url = {$yealink_w52p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_w52p} ####################################################################################### ## Handset_upgrade ## diff --git a/resources/templates/provision/yealink/w56p/y000000000025.cfg b/resources/templates/provision/yealink/w56p/y000000000025.cfg index 7cf1b87848..0627686a5b 100644 --- a/resources/templates/provision/yealink/w56p/y000000000025.cfg +++ b/resources/templates/provision/yealink/w56p/y000000000025.cfg @@ -331,7 +331,7 @@ phone_setting.predial_autodial = 1 ####################################################################################### ## Base_Upgrade ## ####################################################################################### -firmware.url = {$yealink_w52p_firmware_url} +firmware.url = {$yealink_firmware_url}/{$yealink_firmware_w56p} ####################################################################################### ## Handset_upgrade ##