From ed318d024fbf7b07aef1b4500dfaf4a23907f678 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 25 Jan 2017 11:13:07 -0700 Subject: [PATCH] Update {$mac}.cfg Prevent creating an empty password for Polycom phones. --- resources/templates/provision/polycom/5.x/{$mac}.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/templates/provision/polycom/5.x/{$mac}.cfg b/resources/templates/provision/polycom/5.x/{$mac}.cfg index 46b0234bd3..ca10ac3d45 100755 --- a/resources/templates/provision/polycom/5.x/{$mac}.cfg +++ b/resources/templates/provision/polycom/5.x/{$mac}.cfg @@ -34,10 +34,14 @@ device.set="1" device.sntp.serverName="pool.ntp.org" device.sntp.gmtOffset="{$polycom_gmt_offset}" + {if isset($admin_password)} device.auth.localUserPassword.set="1" - device.auth.localUserPassword="{$admin_password}" + device.auth.localUserPassword="{$admin_password}" + {/if} + {if isset($admin_password)} device.auth.localAdminPassword.set="1" device.auth.localAdminPassword="{$admin_password}" + {/if} {if isset($dns_server_primary)}device.dns.serverAddress="{$dns_server_primary}"{/if} {if isset($dns_server_secondary)}device.dns.altSrvAddress="{$dns_server_secondary}"{/if} />