From c7d3c161a48222d9bd062b183bd61159550a4725 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 29 Sep 2017 10:39:05 -0600 Subject: [PATCH] Update y000000000058.cfg --- .../provision/yealink/t58v/y000000000058.cfg | 103 +++++++++++++----- 1 file changed, 75 insertions(+), 28 deletions(-) diff --git a/resources/templates/provision/yealink/t58v/y000000000058.cfg b/resources/templates/provision/yealink/t58v/y000000000058.cfg index 44ac9de06a..832842cb6b 100644 --- a/resources/templates/provision/yealink/t58v/y000000000058.cfg +++ b/resources/templates/provision/yealink/t58v/y000000000058.cfg @@ -1011,29 +1011,44 @@ static.server_certificates.delete = ###linekey.X.extension ###It configures the desired line to apply the key feature.Integer from 1 to 16 -linekey.1.line = +#linekey.1.line = ###It configures the value of the line key feature. ###For example, when setting the key feature to BLF, it configures the number of the monitored user. ###The default value is blank. -linekey.1.value = +#linekey.1.value = ###It configures the pickup code for BLF feature or conference ID followed by the # sign for Meet-Me conference feature. ###It only applies to BLF and Meet-Me conference features. ###The default value is blank. -linekey.1.pickup_value = -linekey.1.extension +#linekey.1.pickup_value = +#linekey.1.extension ###It configures the key feature for the line key X. -linekey.1.type = +#linekey.1.type = ###It configures the desired local group/XML group/network group for the line key X. ###It only applies to the Local Group, XML Group and Network Group features. -linekey.1.xml_phonebook = +#linekey.1.xml_phonebook = ###It configures the label displayed on the LCD screen for each line key. ###The default value is blank. -linekey.1.label = +#linekey.1.label = + +{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} ####################################################################################### ## Programable Key ## @@ -1058,41 +1073,51 @@ linekey.1.label = ###programablekey.X.extension = ###It configures the key feature for the programmable key X. -programablekey.1.type = +#programablekey.1.type = ###It configures the desired line to apply the programmable key feature. -programablekey.1.line = +#programablekey.1.line = ###It configures the value of the programmable key feature. ###For example, when configuring the key feature to be Speed Dial, it configures the number. ###The default value is blank. -programablekey.1.value = +#programablekey.1.value = ###It configures the desired local group/XML group/network group for the programmable key. ###It only applies to the Local Group, XML Group and Network Group features. ###XML Group and Network Group features are not applicable to SIP-T20P IP phones. -programablekey.1.xml_phonebook = +#programablekey.1.xml_phonebook = ###It configures the history type of programmable key. ###0-Local History,1-Network History. ###The default value is 0. -programablekey.1.history_type = +#programablekey.1.history_type = ###It configures the label displayed on the LCD screen for each soft key. ###The default value is blank. -programablekey.1.label = +#programablekey.1.label = ###It configures conference ID followed by the # sign for Meet-Me conference feature. ###It only applies to Meet-Me conference feature. ###The default value is blank. -programablekey.1.pickup_value = -programablekey.2.type = -programablekey.2.line = -programablekey.2.value = -programablekey.2.xml_phonebook = -programablekey.2.history_type = -programablekey.2.label = -programablekey.2.pickup_value = +#programablekey.1.pickup_value = +#programablekey.2.type = +#programablekey.2.line = +#programablekey.2.value = +#programablekey.2.xml_phonebook = +#programablekey.2.history_type = +#programablekey.2.label = +#programablekey.2.pickup_value = + +{foreach $keys["programmable"] as $row} +programablekey.{$row.device_key_id}.type = {$row.device_key_type} +programablekey.{$row.device_key_id}.line = {$row.device_key_line} +programablekey.{$row.device_key_id}.value = {$row.device_key_value} +programablekey.{$row.device_key_id}.xml_phonebook = +programablekey.{$row.device_key_id}.history_type = +programablekey.{$row.device_key_id}.label = {$row.device_key_label} + +{/foreach} ####################################################################################### ## Expansion Key(Only for T26P/T28P/T46G Models) ## @@ -1108,27 +1133,49 @@ programablekey.2.pickup_value = ###expansion_module.X.key.Y.extension = ###It configures the key feature of the expansion module X key Y. -expansion_module.1.key.1.type = +#expansion_module.1.key.1.type = ###It configures the desired line to apply the expansion module key feature.Integer from 1 to 6 -expansion_module.1.key.1.line = +#expansion_module.1.key.1.line = ###It configures the value of the expansion module key feature. ###The default value is blank. -expansion_module.1.key.1.value = +#expansion_module.1.key.1.value = ###It configures the pickup code for BLF feature or conference ID followed by the # sign for Meet-Me conference feature. ###It only applies to BLF and Meet-Me conference features. ###The default value is blank. -expansion_module.1.key.1.pickup_value = -expansion_module.X.key.Y.extension = +#expansion_module.1.key.1.pickup_value = +#expansion_module.X.key.Y.extension = ###It configures the label displayed on the LCD screen of the expansion module for each key. ###The default value is blank. -expansion_module.1.key.1.label = +#expansion_module.1.key.1.label = ###It only applies to the Local Group, XML Group and Network Group features.Integer from 0 to 48. -expansion_module.1.key.1.xml_phonebook = +#expansion_module.1.key.1.xml_phonebook = + +{$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} ####################################################################################### ## Forward Always ##