From 641958b220deee98542e343797ba5220bcd521d5 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 30 May 2015 20:19:36 +0000 Subject: [PATCH] Improve the indentation. --- .../scripts/app/conference_center/index.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/resources/install/scripts/app/conference_center/index.lua b/resources/install/scripts/app/conference_center/index.lua index 048c103824..6d7deab320 100644 --- a/resources/install/scripts/app/conference_center/index.lua +++ b/resources/install/scripts/app/conference_center/index.lua @@ -263,8 +263,7 @@ --freeswitch.consoleLog("notice", "[conference center] sql: " .. sql .. "\n"); --set the conference_recording -conference_recording = recordings_dir.."/archive/"..os.date("%Y", start_epoch).."/"..os.date("%b", start_epoch).."/"..os.date("%d", start_epoch) .."/"..conference_session_uuid; - + conference_recording = recordings_dir.."/archive/"..os.date("%Y", start_epoch).."/"..os.date("%b", start_epoch).."/"..os.date("%d", start_epoch) .."/"..conference_session_uuid; freeswitch.consoleLog("notice", "[conference center] conference_recording: "..conference_recording.."\n"); --conference has ended set the end_epoch local sql = {} @@ -658,9 +657,9 @@ conference_recording = recordings_dir.."/archive/"..os.date("%Y", start_epoch).. --set the recording variable if (conference_session_uuid ~= nil) then if (record == "true") then - recordings_dir2 = recordings_dir.."/archive/"..os.date("%Y", start_epoch).."/"..os.date("%b", start_epoch).."/"..os.date("%d", start_epoch); - mkdir(recordings_dir2); - recording = recordings_dir2.."/"..conference_session_uuid; + recordings_dir_2 = recordings_dir.."/archive/"..os.date("%Y", start_epoch).."/"..os.date("%b", start_epoch).."/"..os.date("%d", start_epoch); + mkdir(recordings_dir_2); + recording = recordings_dir_2.."/"..conference_session_uuid; session:execute("set","recording="..recording); session:execute("set","conference_session_uuid="..conference_session_uuid); end @@ -724,11 +723,11 @@ conference_recording = recordings_dir.."/archive/"..os.date("%Y", start_epoch).. --members in this conference session:execute("playback", sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/conference/conf-members_in_conference.wav"); end - - if (record == "true") then - cmd="sched_api (+5 none lua app/conference_center/resources/scripts/start_recording.lua "..meeting_uuid.." "..domain_name.." )"; - api:executeString(cmd); - end + --record the conference + if (record == "true") then + cmd="sched_api (+5 none lua app/conference_center/resources/scripts/start_recording.lua "..meeting_uuid.." "..domain_name.." )"; + api:executeString(cmd); + end --send the call to the conference cmd = meeting_uuid.."-"..domain_name.."@"..profile.."+flags{".. flags .."}";