summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-04-20 19:02:22 +0000
committerTed Trask <ttrask01@yahoo.com>2016-04-20 19:02:22 +0000
commit4a33a237f1f45021039e32dbc7eb04c6a02eaf3d (patch)
treee0d91c88d58922f3df93a04666ef0ae9a6c7852e
parentc2f4987f4b6fea7c9da15172a2964fd2723e7e9e (diff)
downloadacf-provisioning-4a33a237f1f45021039e32dbc7eb04c6a02eaf3d.tar.bz2
acf-provisioning-4a33a237f1f45021039e32dbc7eb04c6a02eaf3d.tar.xz
Fix Polycom pcportenable/entherModePC parameter to properly disable the port
-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