From 3b9ece1c8432456773e368e5bc098e83989eef78 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 25 Jan 2017 11:12:09 -0700 Subject: [PATCH] Update {$mac}.cfg Preventing provisioning an empty admin_password for Polycom. --- resources/templates/provision/polycom/4.x/{$mac}.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/templates/provision/polycom/4.x/{$mac}.cfg b/resources/templates/provision/polycom/4.x/{$mac}.cfg index 46b0234bd3..ca10ac3d45 100644 --- a/resources/templates/provision/polycom/4.x/{$mac}.cfg +++ b/resources/templates/provision/polycom/4.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} />