summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraalatchm <aalatchm@jamailca.com>2011-06-28 20:09:36 +0000
committerTed Trask <ttrask01@yahoo.com>2011-06-29 08:27:22 -0400
commit3666c33a024c9fd6c2f2aba95facbf161e2f7064 (patch)
tree6bbc2fa4c9f748b4809c2119f8bd1497a70643ee
parent7de41ca28204fedfad544d26e6cd0919a67167af (diff)
downloadacf-provisioning-3666c33a024c9fd6c2f2aba95facbf161e2f7064.tar.bz2
acf-provisioning-3666c33a024c9fd6c2f2aba95facbf161e2f7064.tar.xz
Modify Hotline behavior on Polycom to override on-hook dialing using digitmap.
-rw-r--r--templates/polycom-template.lua9
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)