diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-12-28 21:30:05 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2017-01-01 03:51:37 +0000 |
commit | 6e2cf4da8bee8dbc180c6011ecf98b70a215bf71 (patch) | |
tree | 5f6deeb65b7f0b4b2e82297f74ca365ea60e090c /config | |
parent | 4408dbcd47dbcf88a5b4edce878a979cbaf7163e (diff) | |
download | acf-provisioning-6e2cf4da8bee8dbc180c6011ecf98b70a215bf71.tar.bz2 acf-provisioning-6e2cf4da8bee8dbc180c6011ecf98b70a215bf71.tar.xz |
Add Polycom clockenable parameter
Diffstat (limited to 'config')
-rw-r--r-- | config/process_put.lua | 4 | ||||
-rw-r--r-- | config/templates/polycom-template.lua | 3 |
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) |