Compare commits

...

2 Commits

Author SHA1 Message Date
avimar 44c4969df6
Merge e8fc42c3f1 into 5cb74797fe 2025-01-17 16:40:19 +00:00
avimar e8fc42c3f1
[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.
2020-05-10 11:50:02 +03:00
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,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;