From 90e2b034304dcdca1b2e9384d2a706e680bbd103 Mon Sep 17 00:00:00 2001 From: Len Date: Fri, 26 Aug 2016 15:08:14 -0400 Subject: [PATCH] Update {$mac}.cfg (#1864) t26p changes to the provision class --- .../provision/yealink/t26p/{$mac}.cfg | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/resources/templates/provision/yealink/t26p/{$mac}.cfg b/resources/templates/provision/yealink/t26p/{$mac}.cfg index 8eb7dc30b2..62ed9810f1 100644 --- a/resources/templates/provision/yealink/t26p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t26p/{$mac}.cfg @@ -1954,8 +1954,8 @@ forward.international.enable = #The default value equals to the value of x. For example, the default value of the parameter "linekey.1.line" is 1. #linekey.x.lable--Define the label for each line key. -{foreach $keys as $row} -{if $row.device_key_category == "line"} +{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} @@ -1964,7 +1964,7 @@ 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} -{/if} + {/foreach} @@ -1985,8 +1985,8 @@ linekey.{$row.device_key_id}.label = {$row.device_key_label} #memorykey.x.xml_phonebook--Specify the desired remote phonebook/local group/BSFT phonebook for the DSS key. This parameter is only appilicable to the feature XML Group/Local Group/Broadsoft Group. #memorykey.x.sub_type = -{foreach $keys as $row} -{if $row.device_key_category == "memory"} +{foreach $keys["memory"] as $row} + #Expansion Memory Key {$row.device_key_id} memorykey.{$row.device_key_id}.type = {$row.device_key_type} memorykey.{$row.device_key_id}.line = {$row.device_key_line} @@ -1996,7 +1996,7 @@ memorykey.{$row.device_key_id}.label = {$row.device_key_label} memorykey.{$row.device_key_id}.xml_phonebook = memorykey.{$row.device_key_id}.sub_type = -{/if} + {/foreach} @@ -2013,15 +2013,15 @@ 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 $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} #programablekey.x.value = @@ -2076,8 +2076,8 @@ programablekey.3.label = {$rownum = 1} -{foreach $keys as $row} -{if $row.device_key_category == "expansion"} +{foreach $keys["expansion"] as $row} + {if $rownum <= 40} #Expansion module 1 key {$row.device_key_id} expansion_module.1.key.{$row.device_key_id}.type = {$row.device_key_type} @@ -2095,7 +2095,7 @@ 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} -{/if} + {/foreach} ##########################################################################################