From 4a33a237f1f45021039e32dbc7eb04c6a02eaf3d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 20 Apr 2016 19:02:22 +0000 Subject: Fix Polycom pcportenable/entherModePC parameter to properly disable the port --- config/templates/polycom-template.lua | 11 ++++++----- 1 file 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 -- cgit v1.2.3