From bae9d6fcef13857f01b3879ed8fbf91b6c1851e5 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 16 Oct 2012 06:02:05 +0000 Subject: [PATCH] Update the conference center lua script with an updated recordings_dir --- includes/install/scripts/conference_center.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/install/scripts/conference_center.lua b/includes/install/scripts/conference_center.lua index eeed87611e..b0a47de3e5 100644 --- a/includes/install/scripts/conference_center.lua +++ b/includes/install/scripts/conference_center.lua @@ -173,6 +173,11 @@ end); end + --add the domain to the recording directory + if (domain_count > 1) then + recordings_dir = recordings_dir.."/"..domain_name; + end + --set the sounds path for the language, dialect and voice default_language = session:getVariable("default_language"); default_dialect = session:getVariable("default_dialect"); @@ -362,7 +367,7 @@ --log entry freeswitch.consoleLog("INFO","conference_session_uuid: " .. conference_session_uuid .. "\n"); --record the conference - cmd = "conference "..meeting_uuid.."-"..domain_name.." record /tmp/"..conference_session_uuid..".wav"; + cmd = "conference "..meeting_uuid.."-"..domain_name.." record "..recordings_dir.."/archive/"..os.date("%Y").."/"..os.date("%b").."/"..os.date("%d") .."/"..conference_session_uuid..".wav"; response = api:executeString(cmd); end end