summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-10-28 20:46:52 +0000
committerTed Trask <ttrask01@yahoo.com>2011-10-28 20:46:52 +0000
commite705c74958f5407ec67d5f588671e9e15df00c15 (patch)
tree2c5be243ebfe614a51df7d253a65abd4c1b3f453 /templates
parentf8cccd7fba66862a074070e7ac1e9b1e9eab3d8f (diff)
downloadacf-provisioning-e705c74958f5407ec67d5f588671e9e15df00c15.tar.bz2
acf-provisioning-e705c74958f5407ec67d5f588671e9e15df00c15.tar.xz
Added mailcallback parameter and fixed Standard Phone to have null value for mailbox
Diffstat (limited to 'templates')
-rw-r--r--templates/polycom-template.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/polycom-template.lua b/templates/polycom-template.lua
index 5ed35a3..81ad18f 100644
--- a/templates/polycom-template.lua
+++ b/templates/polycom-template.lua
@@ -39,6 +39,7 @@
hotlinedestination = string
hotlineenable = boolean
mailbox = string
+ mailcallback = string
speeddialenable = boolean
}
--]]
@@ -263,7 +264,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