diff options
author | Zach LeBar <zach@zachlebar.com> | 1980-02-08 22:08:35 +0000 |
---|---|---|
committer | Zach LeBar <zach@zachlebar.com> | 1980-02-08 22:08:35 +0000 |
commit | cea78124e1649ae7b36a1dc504ccc6d2f2c42357 (patch) | |
tree | a9a38c95d67cce2feffa7d1c1e02135c809a7d9a | |
parent | 82984dcb0b0495859e67662dc4a4f5a9ca83d1de (diff) | |
parent | f5a8c4b60d15244ab2b0dd237430a595e9174c90 (diff) | |
download | acf-provisioning-master.tar.bz2 acf-provisioning-master.tar.xz |
Fixing weirdness with personal repos vs. main repo.
-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 |