Update index.lua (#5239)

This commit is contained in:
agree
2020-04-24 12:08:40 -04:00
committed by GitHub
parent ef116cedd9
commit effb8c74ea

View File

@@ -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 .."}";