diff options
Diffstat (limited to 'config/templates/polycom-template.lua')
-rw-r--r-- | config/templates/polycom-template.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index 9b02cb2..7c3b46c 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -187,6 +187,13 @@ if values.services then if not values.services.speeddialenable then xml_attr({ 'dir.local.contacts.maxNum' }, 0) end + -- Set Provisioning Polling to enable as random starting at the time configured in the provpollingtime param and stoping 59 minutes later + if values.services.provpollingtime then + xml_attr({ 'prov.polling.enabled' }, 1) + xml_attr({ 'prov.polling.mode' }, "random") + xml_attr({ 'prov.polling.time' }, values.services.provpollingtime) + xml_attr({ 'prov.polling.timeRandomEnd' }, string.gsub(values.services.provpollingtime, "(%d%d):(%d%d)", "%1:59")) + end end |