diff --git a/resources/templates/provision/yealink/t46g/{$mac}.cfg b/resources/templates/provision/yealink/t46g/{$mac}.cfg index 6697f6391e..b8fd3792e7 100644 --- a/resources/templates/provision/yealink/t46g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t46g/{$mac}.cfg @@ -2968,6 +2968,17 @@ memorykey.{$row.device_key_id}.sub_type = #The value 0 of the "proramablekey.x.line" stands for Auto, it means the first available line. #But, when the programmable key is configured as Pick Up, the value 0 stands for line 1. +{foreach $keys as $row} + {if $row.device_key_category == "programmable"} + 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} + {/if} +{/foreach} + #programablekey.x.value = #programablekey.x.xml_phonebook--Specify the desired remote phonebook/local group/BSFT phonebook for the programmable key. This parameter is only appilicable to the feature XML Group/Local Group/Broadsoft Group. #programablekey.x.history_type =