From 49d562a36a4f6b7305e914b9a89042ba38277a30 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 2 Jun 2011 11:59:40 +0000 Subject: Added callwaitingenable and speeddialenable parameters, supported on polycom --- templates/polycom-template.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'templates/polycom-template.lua') 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 -- cgit v1.2.3