summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-12-28 21:30:05 +0000
committerTed Trask <ttrask01@yahoo.com>2017-02-22 22:44:33 +0000
commit5cb9f985768afd8267aaafe7384e6df33da01a06 (patch)
tree652ab720fcb3b078a0387cce36ff82893bd7d609 /config
parent389709e3a3bd4e949417d2056eb5087ee0b5320d (diff)
downloadacf-provisioning-5cb9f985768afd8267aaafe7384e6df33da01a06.tar.bz2
acf-provisioning-5cb9f985768afd8267aaafe7384e6df33da01a06.tar.xz
Add Polycom clockenable parameter
(cherry picked from commit 6e2cf4da8bee8dbc180c6011ecf98b70a215bf71)
Diffstat (limited to 'config')
-rw-r--r--config/process_put.lua4
-rw-r--r--config/templates/polycom-template.lua3
2 files changed, 7 insertions, 0 deletions
diff --git a/config/process_put.lua b/config/process_put.lua
index 0194e46..83eaeb4 100644
--- a/config/process_put.lua
+++ b/config/process_put.lua
@@ -57,6 +57,10 @@ function process_polycom()
elseif string.find(n, "24HourClock") then
params.value.device.value.militarytimeenable.value = (v == "1")
+ -- this attribute enables local clock
+ elseif string.find(n, "localClockEnabled") then
+ params.value.device.value.clockenable.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 6a874ff..e3a4313 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -21,6 +21,7 @@
timezone
urldialingenable
militarytimeenable
+ clockenable
displaylang
}
regX (where X is a number 1-34) = {
@@ -97,6 +98,8 @@ end
-- apply settings in 'device' parameter above
xml_attr({ 'device.net.etherModePC.set' }, '1')
+xml_attr({ 'up.localClockEnabled' }, values.device.clockenable)
+
-- Enable 24-hour Clock Mode
if values.device.militarytimeenable then
xml_attr({'lcl.datetime.time.24HourClock'}, true)