diff options
author | Joao Arruda <joao.arruda@gmail.com> | 2015-05-20 15:59:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-05-20 13:41:15 -0400 |
commit | 2e8e2b4454547e97625912e201fe1877ad800654 (patch) | |
tree | c3f3352b986e8c327541a0dcaaeb374c5557f9ab /config | |
parent | 58bb13aeef6896f4b6f3185410ff6b018de2b397 (diff) | |
download | acf-provisioning-2e8e2b4454547e97625912e201fe1877ad800654.tar.bz2 acf-provisioning-2e8e2b4454547e97625912e201fe1877ad800654.tar.xz |
Add provisioning polling time option for Polycom
Signed-off-by: Ted Trask <ttrask01@yahoo.com>
Diffstat (limited to 'config')
-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 |