diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-10-28 13:30:08 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-10-28 13:30:08 +0000 |
commit | a6b7b8bb05546258ce26d0a6721fbf6e872c6ff0 (patch) | |
tree | 6edca8499e9b4574dee151fe20e9249656113a5d /config | |
parent | fed65bf99b00a89f6815095444ec6a335bf094f5 (diff) | |
download | acf-provisioning-a6b7b8bb05546258ce26d0a6721fbf6e872c6ff0.tar.bz2 acf-provisioning-a6b7b8bb05546258ce26d0a6721fbf6e872c6ff0.tar.xz |
Added mailcallback parameter
Diffstat (limited to 'config')
-rw-r--r-- | config/templates/polycom-template.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index 1e1b775..7bed28e 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -39,6 +39,7 @@ hotlinedestination = string hotlineenable = boolean mailbox = string + mailcallback = string speeddialenable = boolean } --]] @@ -173,7 +174,11 @@ if values.services then if values.services.mailbox then xml_attr({ 'msg.mwi.1.subscribe' }, values.services.mailbox) xml_attr({ 'msg.mwi.1.callBackMode' }, "contact") - xml_attr({ 'msg.mwi.1.callBack' }, string.gsub(values.services.mailbox, "@.*", "")) + if values.services.mailcallback and values.services.mailcallback ~= "" then + xml_attr({ 'msg.mwi.1.callBack' }, values.services.mailcallback) + else + xml_attr({ 'msg.mwi.1.callBack' }, string.gsub(values.services.mailbox, "@.*", "")) + end end -- set local contact directory to be readonly or readwrite if not values.services.speeddialenable then |