summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/process_put.lua2
-rw-r--r--config/templates/polycom-template.lua3
2 files changed, 5 insertions, 0 deletions
diff --git a/config/process_put.lua b/config/process_put.lua
index 0de6b9c..0a3b8bc 100644
--- a/config/process_put.lua
+++ b/config/process_put.lua
@@ -41,6 +41,8 @@ function process_polycom()
params.value["reg"..num].value.forwardnoanswerenable.value = (v == "1")
elseif rest == "fwdStatus" then
params.value["reg"..num].value.forwardallenable.value = (v == "1")
+ elseif rest == "ringType" then
+ params.value["reg"..num].value.polycomringtone.value = string.match(v, "%d+")
else
xmlout[#xmlout+1] = n.."=\""..v.."\""
end
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index 7bed28e..9751ef8 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -30,6 +30,7 @@
forwardbusyenable = boolean
forwardnoanswer = EXTEN
forwardnoanswerenable = boolean
+ polycomringtone = select
}
-- Assuming that services will not be nil
services = {
@@ -209,6 +210,8 @@ for pg, pg_t in pairs(values) do
xml_attr({ 'reg', num, 'auth.password' }, pg_t.password)
-- Caller ID string
xml_attr({ 'reg', num, 'displayName' }, pg_t.callerid)
+ -- Ringtone
+ xml_attr({ 'reg', num, 'ringType'}, 'ringer'..pg_t.polycomringtone)
-- 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."