summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-12-08 18:13:50 +0000
committerTed Trask <ttrask01@yahoo.com>2011-12-08 18:13:50 +0000
commit9ee9ea6c8f3faa1fdc4f713471aa087cfd585feb (patch)
tree85abdba3e28db8351b93e5d375136eda5b1b368b /config
parente1cc630ef8a6a43ecd98144000d5ba9995e74881 (diff)
downloadacf-provisioning-9ee9ea6c8f3faa1fdc4f713471aa087cfd585feb.tar.bz2
acf-provisioning-9ee9ea6c8f3faa1fdc4f713471aa087cfd585feb.tar.xz
Added polycomringtone to template and process_put
Diffstat (limited to 'config')
-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."