summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/process_put.lua4
-rw-r--r--config/templates/polycom-template.lua2
2 files changed, 6 insertions, 0 deletions
diff --git a/config/process_put.lua b/config/process_put.lua
index 83eaeb4..0222ddf 100644
--- a/config/process_put.lua
+++ b/config/process_put.lua
@@ -61,6 +61,10 @@ function process_polycom()
elseif string.find(n, "localClockEnabled") then
params.value.device.value.clockenable.value = (v == "1")
+ -- this attribute enables screen saver
+ elseif n == "up.screenSaver.enabled" then
+ params.value.device.value.screensaverenable.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 892d8e6..2e3725d 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -24,6 +24,7 @@
clockenable
displaylang
dectenable
+ screensaverenable
}
regX (where X is a number 1-34) = {
extension = EXTEN
@@ -122,6 +123,7 @@ if values.device.displaylang then
end
xml_attr({ 'feature.dect.enabled' }, values.device.dectenable)
+xml_attr({ 'up.screenSaver.enabled' }, values.device.screensaverenable)
-- Override the default admin password of '456'
if values.device.adminpassword then