From 56e56aa6f9c778d070ac368bdef1f26bfb75cff3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 11 Sep 2020 10:29:15 -0600 Subject: [PATCH] Comment out get variable record_name --- .../resources/scripts/app/ring_groups/index.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app/scripts/resources/scripts/app/ring_groups/index.lua b/app/scripts/resources/scripts/app/ring_groups/index.lua index 2a8f78fad0..1b9251b4a7 100644 --- a/app/scripts/resources/scripts/app/ring_groups/index.lua +++ b/app/scripts/resources/scripts/app/ring_groups/index.lua @@ -245,10 +245,19 @@ --set the recording file name if (session:ready()) then - record_name = session:getVariable("record_name"); - if (not record_name) then + --record_name = session:getVariable("record_name"); + --sip_from_user = session:getVariable("sip_from_user"); + --sip_to_user = session:getVariable("sip_to_user"); + + --record_name = record_name:gsub("${caller_id_name}", caller_id_name); + --record_name = record_name:gsub("${caller_id_number}", caller_id_number); + --record_name = record_name:gsub("${sip_from_user}", sip_from_user); + --record_name = record_name:gsub("${sip_to_user}", sip_to_user); + --record_name = record_name:gsub("${dialed_user}", ring_group_extension); + + --if (not record_name) then record_name = uuid .. "." .. record_ext; - end + --end end ---set the call_timeout to a higher value to prevent the early timeout of the ring group