Fix call center agent call recording

Issue was caused by xml sanitize and this change allows using strftime.
This commit is contained in:
FusionPBX
2023-08-09 11:13:09 -06:00
committed by GitHub
parent 719912f453
commit 503b59267e

View File

@@ -247,6 +247,9 @@
--sanitize the agent_contact and allow specific variables
agent_contact = xml.sanitize(agent_contact);
agent_contact = string.gsub(agent_contact, "{caller_destination}", "${caller_destination}");
agent_contact = string.gsub(agent_contact, "{strftime", "${strftime");
agent_contact = string.gsub(agent_contact, "{uuid}", "${uuid}");
agent_contact = string.gsub(agent_contact, "{record_ext}", "${record_ext}");
--build the xml string
xml:append([[ <agent ]]);