summaryrefslogtreecommitdiffstats
path: root/config/process_put.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/process_put.lua')
-rw-r--r--config/process_put.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/process_put.lua b/config/process_put.lua
index 662b038..569ecf0 100644
--- a/config/process_put.lua
+++ b/config/process_put.lua
@@ -10,7 +10,7 @@ function process_polycom()
local before, xml, after = string.match(data, "(.*<OVERRIDES)([^/]*)(/>.*)")
if not xml then return end
local attrs = {}
- for str in string.gmatch(xml, "%S+\".+\"") do
+ for str in string.gmatch(xml, "%S+") do
local n,v = string.match(str, "([^=]+)=\"(.*)\"")
if not attrs[n] then
attrs[n] = v
@@ -27,7 +27,6 @@ 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
@@ -57,7 +56,7 @@ function process_polycom()
end
end
- data = before.."\n"..table.concat(xmlout, " ").."\n"..after
+ data = before.." "..table.concat(xmlout, " ").." "..after
end
-- Determine the template