From b5425fceaa6afcc7306a72efbd8dcb471f1b9e4f Mon Sep 17 00:00:00 2001 From: Len Date: Tue, 10 Oct 2017 20:39:33 -0400 Subject: [PATCH] Update y000000000000.cfg --- .../provision/yealink/t52s/y000000000000.cfg | 67 ++++++++++++++----- 1 file changed, 51 insertions(+), 16 deletions(-) diff --git a/resources/templates/provision/yealink/t52s/y000000000000.cfg b/resources/templates/provision/yealink/t52s/y000000000000.cfg index 0263d6dc10..9ced7a2059 100644 --- a/resources/templates/provision/yealink/t52s/y000000000000.cfg +++ b/resources/templates/provision/yealink/t52s/y000000000000.cfg @@ -806,13 +806,28 @@ programablekey.1.extension = ##LineKeyX ranges(T48G/S: X ranges from 1 to 29. T54S/T46G/T46S/T29G: X ranges from 1 to 27. T42G/T42S/T41P/T41S: X ranges from 1 to 15. T40P/T40G/T23P/T23G: X ranges from 1 to 3. T52S/T27P/T27G: X ranges from 1 to 21. T21(P) E2: X ranges from 1 to 2.)## ## Not support T19P_E2 -linekey.1.label = -linekey.1.line = -linekey.1.value = -linekey.1.pickup_value = -linekey.1.extension = -linekey.1.type = -linekey.1.xml_phonebook = +#linekey.1.label = +#linekey.1.line = +#linekey.1.value = +#linekey.1.pickup_value = +#linekey.1.extension = +#linekey.1.type = +#linekey.1.xml_phonebook = + +{foreach $keys['line'] as $row} +#Configure Line Key {$row.device_key_id} +linekey.{$row.device_key_id}.line = {$row.device_key_line} +linekey.{$row.device_key_id}.value = {$row.device_key_value} +{if $row.device_key_type == "1" || $row.device_key_type == "16"} +linekey.{$row.device_key_id}.pickup_value = {$row.device_key_extension} +{else} +linekey.{$row.device_key_id}.extension = {$row.device_key_extension} +{/if} +linekey.{$row.device_key_id}.type = {$row.device_key_type} +linekey.{$row.device_key_id}.xml_phonebook = +linekey.{$row.device_key_id}.label = {$row.device_key_label} + +{/foreach} ####################################################################################### ## Dsskey ## @@ -842,17 +857,37 @@ phone_setting.idle_dsskey_and_title.transparency= ## Expansion Key X ranges(SIP-T54S/T52S: X ranges from 1 to 3, Y ranges from 1 to 60; SIP-T48G/T48S/T46G/T46S:X ranges from 1 to 6, Y ranges from 1 to 40; SIP-T29G/T27P/T27G:X ranges from 1 to 6, Y ranges from 1 to 20, 22 to 40 (Ext key 21 cannot be configured).)## ## Only SIP-T54S/T52S/T48G/T48S/T46G/T46S/T29G/T27P/T27G Models support the parameter. -expansion_module.1.key.1.type = -expansion_module.1.key.1.label = -expansion_module.1.key.1.value = -expansion_module.1.key.1.line = -expansion_module.1.key.1.pickup_value = -expansion_module.1.key.1.extension = -expansion_module.1.key.1.xml_phonebook = -expansion_module.page_tip.blf_call_in.led = -expansion_module.page_tip.blf_call_in.enable = +#expansion_module.1.key.1.type = +#expansion_module.1.key.1.label = +#expansion_module.1.key.1.value = +#expansion_module.1.key.1.line = +#expansion_module.1.key.1.pickup_value = +#expansion_module.1.key.1.extension = +#expansion_module.1.key.1.xml_phonebook = +#expansion_module.page_tip.blf_call_in.led = +#expansion_module.page_tip.blf_call_in.enable = +{$rownum = 1} +{foreach $keys["expansion"] as $row} +{if $rownum <= 40} +expansion_module.1.key.{$row.device_key_id}.type = {$row.device_key_type} +expansion_module.1.key.{$row.device_key_id}.line = {$row.device_key_line} +expansion_module.1.key.{$row.device_key_id}.value = {$row.device_key_value} +expansion_module.1.key.{$row.device_key_id}.extension = {$row.device_key_extension} +expansion_module.1.key.{$row.device_key_id}.label = {$row.device_key_label} +expansion_module.1.key.{$row.device_key_id}.xml_phonebook = +{else} +expansion_module.2.key.{$row.device_key_id - 40}.type = {$row.device_key_type} +expansion_module.2.key.{$row.device_key_id - 40}.line = {$row.device_key_line} +expansion_module.2.key.{$row.device_key_id - 40}.value = {$row.device_key_value} +expansion_module.2.key.{$row.device_key_id - 40}.extension = {$row.device_key_extension} +expansion_module.2.key.{$row.device_key_id - 40}.label = {$row.device_key_label} +expansion_module.2.key.{$row.device_key_id - 40}.xml_phonebook = +{/if} +{$rownum = $rownum + 1} + +{/foreach} #######################################################################################