From effb8c74ea861a29cfc2aa1b0b8f3edfef6436dd Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:08:40 -0400 Subject: [PATCH] Update index.lua (#5239) --- .../resources/scripts/app/conference_center/index.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/scripts/resources/scripts/app/conference_center/index.lua b/app/scripts/resources/scripts/app/conference_center/index.lua index 86f5404f81..7736623fe0 100644 --- a/app/scripts/resources/scripts/app/conference_center/index.lua +++ b/app/scripts/resources/scripts/app/conference_center/index.lua @@ -786,8 +786,12 @@ end --record the conference if (record == "true") then - cmd="sched_api +5 none lua "..scripts_dir.."/app/conference_center/resources/scripts/start_recording.lua "..meeting_uuid.." "..domain_name.." "..record_ext; - api:executeString(cmd); + if (wait_mod == "true" and member_type ~= "moderator") then + --don't start recording yet + else + cmd="sched_api +3 none lua "..scripts_dir.."/app/conference_center/resources/scripts/start_recording.lua "..meeting_uuid.." "..domain_name.." "..record_ext; + api:executeString(cmd); + end end --send the call to the conference cmd = meeting_uuid.."@"..domain_name.."@"..profile.."+flags{".. flags .."}";