summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/templates/polycom-template.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index 1cb15e4..3869e3e 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -89,12 +89,13 @@ xml_attr({ 'voIpProt.SIP.musicOnHold.uri' }, values.device.musiconhold)
xml_attr({ 'dialplan.digitmap.timeOut' }, values.device.digitmaptimeout)
xml_attr({ 'feature.urlDialing.enabled' }, values.device.urldialingenable)
-if not values.device.pcportenable then
- -- set mode to '-1' which disables it
- xml_attr({ 'device.net.etherModePC' }, '-1')
- -- apply settings in 'device' parameter above
- xml_attr({ 'device.net.etherModePC.set' }, '1')
+if values.device.pcportenable then
+ xml_attr({ 'device.net.etherModePC' }, 'Auto')
+else
+ xml_attr({ 'device.net.etherModePC' }, 'Disabled')
end
+-- apply settings in 'device' parameter above
+xml_attr({ 'device.net.etherModePC.set' }, '1')
-- Enable 24-hour Clock Mode
if values.device.militarytimeenable then