summaryrefslogtreecommitdiffstats
path: root/config/templates/polycom-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/polycom-template.lua')
-rw-r--r--config/templates/polycom-template.lua25
1 files changed, 24 insertions, 1 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index 55dd71b..288465d 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -47,6 +47,16 @@
mailcallback = string
speeddialenable = boolean
dndenable = boolean
+ softkey1 = boolean
+ softkey2 = boolean
+ softkey3 = boolean
+ softkey4 = boolean
+ softkey5 = boolean
+ softkey6 = boolean
+ softkey7 = boolean
+ softkey8 = boolean
+ softkey9 = boolean
+ softkey10 = boolean
}
--]]
%>
@@ -224,7 +234,20 @@ if values.services then
-- For VVXs DND soft key does not display and the option is removed from the phone menu system at Menu > Settings > Features
xml_attr({ 'feature.doNotDisturb.enable' }, '0')
end
-end
+ -- Loop through Services Parameter Groups looking for 'softkeyX' params
+ for sfkey,sfkey_v in pairs(values.services) do
+ local sknum = string.match(sfkey, 'softkey(%d+)')
+ if sknum then
+ if sfkey_v then
+ -- Set this softkey to enable
+ xml_attr({ 'softkey', sknum, 'enable' }, '1')
+ else
+ -- Set this softkey to disable
+ xml_attr({ 'softkey', sknum, 'enable' }, '0')
+ end
+ end
+ end
+end
-- Loop through Parameter Groups looking for 'reg' params