From 503b59267ecd4252eb6e1c9b3488fc14894cf185 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 9 Aug 2023 11:13:09 -0600 Subject: [PATCH] Fix call center agent call recording Issue was caused by xml sanitize and this change allows using strftime. --- .../resources/scripts/configuration/callcenter.conf.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua b/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua index e0ae342f20..3fcf69cfb7 100644 --- a/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua +++ b/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua @@ -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([[