summaryrefslogtreecommitdiffstats
path: root/config/templates/polycom-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/polycom-template.lua')
-rw-r--r--config/templates/polycom-template.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index 20cb1b8..55dd71b 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -33,6 +33,8 @@
forwardnoanswer = EXTEN
forwardnoanswerenable = boolean
polycomringtone = select
+ callwaitingenable = boolean
+ scaenable = boolean
}
-- Assuming that services will not be nil
services = {
@@ -44,6 +46,7 @@
mailbox = string
mailcallback = string
speeddialenable = boolean
+ dndenable = boolean
}
--]]
%>
@@ -214,6 +217,13 @@ if values.services then
xml_attr({ 'prov.polling.time' }, values.services.provpollingtime)
xml_attr({ 'prov.polling.timeRandomEnd' }, string.gsub(values.services.provpollingtime, "(%d%d):(%d%d)", "%1:59"))
end
+ -- Set DND on the server-side only, the phone does not perform local DND
+ if not values.services.dndenable then
+ xml_attr({ 'voIpProt.SIP.serverFeatureControl.dnd' }, '1')
+ xml_attr({ 'voIpProt.SIP.serverFeatureControl.localProcessing.dnd' }, '0')
+ -- For VVXs DND soft key does not display and the option is removed from the phone menu system at Menu > Settings > Features
+ xml_attr({ 'feature.doNotDisturb.enable' }, '0')
+ end
end
@@ -243,6 +253,14 @@ for pg, pg_t in pairs(values) do
if pg_t.polycomringtone then
xml_attr({ 'reg', num, 'ringType'}, 'ringer'..pg_t.polycomringtone)
end
+ -- Only allow one call in this line key
+ if not pg_t.callwaitingenable then
+ xml_attr({ 'reg', num, 'callsPerLineKey'}, '1' )
+ end
+ -- Configure Shared Call Appearance for this line
+ if pg_t.scaenable then
+ xml_attr({ 'reg', num, 'type'}, 'shared')
+ end
-- From Admin_Guide_UCS_v3.3.0:
-- "The phone has a flexible call forward/diversion feature for each registration. In all cases, a call will only be diverted if a non-Null contact has been configured."