summaryrefslogtreecommitdiffstats
path: root/config/templates/polycom-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/polycom-template.lua')
-rw-r--r--config/templates/polycom-template.lua22
1 files changed, 21 insertions, 1 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index 3bc21a5..20cb1b8 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -20,6 +20,8 @@
sntpserver
timezone
urldialingenable
+ militarytimeenable
+ displaylang
}
regX (where X is a number 1-34) = {
extension = EXTEN
@@ -80,6 +82,24 @@ if not values.device.pcportenable then
xml_attr({ 'device.net.etherModePC.set' }, '1')
end
+-- Enable 24-hour Clock Mode
+if values.device.militarytimeenable then
+ xml_attr({'lcl.datetime.time.24HourClock'}, true)
+ for langid=19,1,-1 do
+ xml_attr({'lcl.ml.lang.clock.'..langid..'.24HourClock'}, true)
+ end
+else
+ xml_attr({'lcl.datetime.time.24HourClock'}, false)
+ for langid=19,1,-1 do
+ xml_attr({'lcl.ml.lang.clock.'..langid..'.24HourClock'}, false)
+ end
+end
+
+-- Set the Display screen language
+if values.device.displaylang then
+ xml_attr({'lcl.ml.lang'}, values.device.displaylang)
+end
+
-- Override the default admin password of '456'
if values.device.adminpassword then
xml_attr({ 'device.auth.localAdminPassword' }, values.device.adminpassword)
@@ -255,4 +275,4 @@ for pg, pg_t in pairs(values) do
end
%>
-/>
+/> \ No newline at end of file