From a6b7b8bb05546258ce26d0a6721fbf6e872c6ff0 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 28 Oct 2011 13:30:08 +0000 Subject: Added mailcallback parameter --- config/templates/polycom-template.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3