From e705c74958f5407ec67d5f588671e9e15df00c15 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 28 Oct 2011 20:46:52 +0000 Subject: Added mailcallback parameter and fixed Standard Phone to have null value for mailbox --- templates/polycom-template.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') 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 -- cgit v1.2.3