mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix lua stream file
This commit is contained in:
@@ -129,6 +129,10 @@
|
||||
--phrase_detail_group,phrase_detail_tag,phrase_detail_pattern
|
||||
--phrase_detail_function,phrase_detail_data,phrase_detail_method
|
||||
--phrase_detail_type,phrase_detail_order
|
||||
|
||||
phrase_detail_data = xml.sanitize(row.phrase_detail_data);
|
||||
phrase_detail_data = string.gsub(phrase_detail_data, "{lua streamfile", "${lua streamfile");
|
||||
|
||||
if (previous_phrase_uuid ~= row.phrase_uuid) then
|
||||
if (x > 0) then
|
||||
xml:append([[ </match>]]);
|
||||
@@ -140,7 +144,7 @@
|
||||
xml:append([[ <match>]]);
|
||||
match_open_tag = true
|
||||
end
|
||||
xml:append([[ <action function="]] .. xml.sanitize(row.phrase_detail_function) .. [[" data="]] .. xml.sanitize(row.phrase_detail_data) .. [["/>]]);
|
||||
xml:append([[ <action function="]] .. xml.sanitize(row.phrase_detail_function) .. [[" data="]] .. phrase_detail_data .. [["/>]]);
|
||||
previous_phrase_uuid = row.phrase_uuid;
|
||||
x = x + 1;
|
||||
end);
|
||||
|
||||
Reference in New Issue
Block a user