diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-03-19 15:23:52 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-03-19 15:23:52 +0000 |
commit | 0c25cb523206e49188e15388167be9b71fa1c692 (patch) | |
tree | e37c1bda6f57d0ecc8637ebd3a9e1254efa4001a | |
parent | 077a801df0fa3dcb940ac1fdfe6d95e5f3b98e69 (diff) | |
download | acf-provisioning-0c25cb523206e49188e15388167be9b71fa1c692.tar.bz2 acf-provisioning-0c25cb523206e49188e15388167be9b71fa1c692.tar.xz |
Fix null string concatination errors in polycom template
-rw-r--r-- | config/templates/polycom-template.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index db01510..cf456d1 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -163,7 +163,7 @@ if values.services then if values.services.forwarding then enable.forwarding = true end - if values.services.hotlineenable then + if values.services.hotlineenable and values.services.hotlinedestination then enable.hotline = true -- Set phone to replace any dialed digits with the hotline destination instead xml_attr({ 'dialplan.digitmap' }, 'R[#*0123456789].R'..values.services.hotlinedestination..'R') @@ -211,7 +211,9 @@ for pg, pg_t in pairs(values) do -- Caller ID string xml_attr({ 'reg', num, 'displayName' }, pg_t.callerid) -- Ringtone - xml_attr({ 'reg', num, 'ringType'}, 'ringer'..pg_t.polycomringtone) + if pg_t.polycomringtone then + xml_attr({ 'reg', num, 'ringType'}, 'ringer'..pg_t.polycomringtone) + end -- From Admin_Guide_UCS_v3.3.0: -- "The phone has a flexible call forward/diversion feature for each registration. In all cases, a call will only be diverted if a non-Null contact has been configured." |