diff options
-rw-r--r-- | config/process_put.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/process_put.lua b/config/process_put.lua index 33e918a..569ecf0 100644 --- a/config/process_put.lua +++ b/config/process_put.lua @@ -27,6 +27,14 @@ function process_polycom() -- search attribute name for reg_name like "reg.1." -- and for rest like "fwdStatus" local num, rest = string.match(n, "reg%.(%d+)%.([%.%a]*)$") + -- this parameter controls the default ringtone + if n == "np.normal.ringing.calls.tonePattern" then + for a,b in pairs(params.value) do + if string.match(a, "reg%d") then + params.value[a].value.polycomringtone.value = string.match(v, "%d+") + end + end + end -- if rest is defined, then num is defined also if rest == "fwd.busy.contact" then @@ -48,7 +56,7 @@ function process_polycom() end end - data = before..table.concat(xmlout, " ")..after + data = before.." "..table.concat(xmlout, " ").." "..after end -- Determine the template |