diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/polycom-template.lua | 9 |
1 files changed, 7 insertions, 2 deletions
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) |