From 9ee9ea6c8f3faa1fdc4f713471aa087cfd585feb Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 8 Dec 2011 18:13:50 +0000 Subject: Added polycomringtone to template and process_put --- config/process_put.lua | 2 ++ config/templates/polycom-template.lua | 3 +++ 2 files changed, 5 insertions(+) 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." -- cgit v1.2.3