[mod_conference] don't auto-record if waiting on moderator

The conference option `wait-mod` means there's only music on hold until a moderator joins.
This flag, `CFLAG_WAIT_MOD` is cleared when the moderator joins (15ad4c23e2/src/mod/applications/mod_conference/conference_member.c (L871-L873))

This patch adds checking that flag before beginning auto-record.
This commit is contained in:
avimar 2020-05-10 11:50:02 +03:00 committed by GitHub
parent 43614fd12a
commit e8fc42c3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
}
/* Start auto recording if there's the minimum number of required participants. */
if (conference->auto_record && !conference->auto_recording && (conference->count >= conference->min_recording_participants)) {
if (conference->auto_record && !conference->auto_recording && !conference_utils_test_flag(conference, CFLAG_WAIT_MOD) && (conference->count >= conference->min_recording_participants)) {
conference->auto_recording++;
conference->record_count++;
imember = conference->members;