summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/polycom-template.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/polycom-template.lua b/templates/polycom-template.lua
index 597c09e..5644c2b 100644
--- a/templates/polycom-template.lua
+++ b/templates/polycom-template.lua
@@ -34,9 +34,11 @@
-- Assuming that services will not be nil
services = {
callhistoryenable = boolean
+ callwaitingenable = boolean
forwarding = boolean
hotlinedestination = string
hotlineenable = boolean
+ speeddialenable = boolean
}
--]]
%>
@@ -228,12 +230,18 @@ if values.services then
if not values.services.callhistoryenable then
xml_attr({ 'feature.callList.enabled' }, '0')
end
+ if not values.services.callwaitingenable then
+ -- only allow one call per line key
+ xml_attr({ 'call.callsPerLineKey', '1' })
+ end
if values.services.forwarding then
enable.forwarding = true
end
if values.services.hotlineenable then
enable.hotline = true
end
+ -- set local contact directory to be readonly or readwrite
+ xml_attr({ 'dir.local.readonly' }, values.services.speeddialenable)
end