summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/process_put.lua4
-rw-r--r--config/templates/polycom-template.lua1
2 files changed, 5 insertions, 0 deletions
diff --git a/config/process_put.lua b/config/process_put.lua
index 0222ddf..ff203fd 100644
--- a/config/process_put.lua
+++ b/config/process_put.lua
@@ -65,6 +65,10 @@ function process_polycom()
elseif n == "up.screenSaver.enabled" then
params.value.device.value.screensaverenable.value = (v == "1")
+ -- this attribute enables call waiting (for the entire device, not per line)
+ elseif n == "call.callWaiting.enable" then
+ params.value.services.value.callwaitingenable.value = (v == "1")
+
else
-- search attribute name for reg_name like "reg.1."
-- and for rest like "fwdStatus"
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index 2e3725d..4aa42f8 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -215,6 +215,7 @@ if values.services then
if not values.services.callwaitingenable then
-- only allow one call per line key
xml_attr({ 'call.callsPerLineKey' }, '1' )
+ xml_attr({ 'call.callWaiting.enable' }, '0' )
end
if values.services.forwarding then
enable.forwarding = true