summaryrefslogtreecommitdiffstats
path: root/config/templates/polycom-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/polycom-template.lua')
-rw-r--r--config/templates/polycom-template.lua7
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