From 3666c33a024c9fd6c2f2aba95facbf161e2f7064 Mon Sep 17 00:00:00 2001 From: aalatchm Date: Tue, 28 Jun 2011 20:09:36 +0000 Subject: Modify Hotline behavior on Polycom to override on-hook dialing using digitmap. --- templates/polycom-template.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'templates/polycom-template.lua') diff --git a/templates/polycom-template.lua b/templates/polycom-template.lua index 2ae995a..ec91450 100644 --- a/templates/polycom-template.lua +++ b/templates/polycom-template.lua @@ -140,7 +140,6 @@ end xml_attr({ 'voIpProt.server.1.address' }, values.device.registrar) xml_attr({ 'mb.main.home' }, values.device.homepage) xml_attr({ 'voIpProt.SIP.musicOnHold.uri' }, values.device.musiconhold) -xml_attr({ 'dialplan.digitmap' }, values.device.digitmap) xml_attr({ 'dialplan.digitmap.timeOut' }, values.device.digitmaptimeout) xml_attr({ 'feature.urlDialing.enabled' }, values.device.urldialingenable) @@ -245,13 +244,19 @@ if values.services then end if not values.services.callwaitingenable then -- only allow one call per line key - xml_attr({ 'call.callsPerLineKey', '1' }) + xml_attr({ 'call.callsPerLineKey' }, '1' ) end if values.services.forwarding then enable.forwarding = true end if values.services.hotlineenable then enable.hotline = true + -- Set phone to replace any dialed digits with the hotline destination instead + xml_attr({ 'dialplan.digitmap' }, 'R[#*0123456789].R'..values.services.hotlinedestination..'R') + xml_attr({ 'dialplan.applyToUserDial' }, '1') + xml_attr({ 'dialplan.applyToUserSend' }, '1') + else + xml_attr({ 'dialplan.digitmap' }, values.device.digitmap) end if values.services.mailbox then xml_attr({ 'msg.mwi.1.subscribe' }, values.services.mailbox) -- cgit v1.2.3