summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach LeBar <zach@zachlebar.com>1980-02-08 22:08:35 +0000
committerZach LeBar <zach@zachlebar.com>1980-02-08 22:08:35 +0000
commitcea78124e1649ae7b36a1dc504ccc6d2f2c42357 (patch)
treea9a38c95d67cce2feffa7d1c1e02135c809a7d9a
parent82984dcb0b0495859e67662dc4a4f5a9ca83d1de (diff)
parentf5a8c4b60d15244ab2b0dd237430a595e9174c90 (diff)
downloadacf-provisioning-master.tar.bz2
acf-provisioning-master.tar.xz
Merge ssh://git.alpinelinux.org/home/zelebar/cgit/acf-provisioningHEADmaster
Fixing weirdness with personal repos vs. main repo.
-rw-r--r--config/process_put.lua10
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