[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:
parent
43614fd12a
commit
e8fc42c3f1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue