summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-06-02 11:59:40 +0000
committerTed Trask <ttrask01@yahoo.com>2011-06-02 11:59:40 +0000
commit49d562a36a4f6b7305e914b9a89042ba38277a30 (patch)
treee2771608d54057d7880ab2e35959b6832bb5133f /templates
parentab0aa473d352d934510c3d37de5958d82d159690 (diff)
downloadacf-provisioning-49d562a36a4f6b7305e914b9a89042ba38277a30.tar.bz2
acf-provisioning-49d562a36a4f6b7305e914b9a89042ba38277a30.tar.xz
Added callwaitingenable and speeddialenable parameters, supported on polycom
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