Fix lua stream file

This commit is contained in:
FusionPBX 2024-10-31 19:33:38 -06:00 committed by GitHub
parent 37ff548fa8
commit b55e542cbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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);