diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-04-20 19:02:22 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-04-20 20:47:53 +0000 |
commit | 223035a781ddcc2ecf18c40e2ae5e5d6a8317476 (patch) | |
tree | 6ea2bb1d3dc623004f8a20e5270955ad686827db /config | |
parent | 4ca1b7e24764cd81e8da26723380f2af06edf642 (diff) | |
download | acf-provisioning-223035a781ddcc2ecf18c40e2ae5e5d6a8317476.tar.bz2 acf-provisioning-223035a781ddcc2ecf18c40e2ae5e5d6a8317476.tar.xz |
Fix Polycom pcportenable/entherModePC parameter to properly disable the port
(cherry picked from commit 4a33a237f1f45021039e32dbc7eb04c6a02eaf3d)
Diffstat (limited to 'config')
-rw-r--r-- | config/templates/polycom-template.lua | 11 |
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 |