summaryrefslogtreecommitdiffstats
path: root/config/templates/polycom-template.lua
diff options
context:
space:
mode:
authorJoao Arruda <joao.arruda@gmail.com>2015-05-29 18:44:53 -0300
committerTed Trask <ttrask01@yahoo.com>2015-06-01 09:23:54 -0400
commit3e52d0a9b70508a397c5c99bc2ed23f39f27d16c (patch)
tree4d2c56c7d20667aa5d79dc09ea28e3908d2cbe0c /config/templates/polycom-template.lua
parente95d70888118353dbe37b5eb0b260fc2387793f4 (diff)
downloadacf-provisioning-3e52d0a9b70508a397c5c99bc2ed23f39f27d16c.tar.bz2
acf-provisioning-3e52d0a9b70508a397c5c99bc2ed23f39f27d16c.tar.xz
Add option to enable up to 10 softkeys for Polycom
Signed-off-by: Ted Trask <ttrask01@yahoo.com>
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