From e8fc42c3f169f99d714c44ded95dd374b4be7956 Mon Sep 17 00:00:00 2001 From: avimar Date: Sun, 10 May 2020 11:50:02 +0300 Subject: [PATCH] [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 (https://github.com/signalwire/freeswitch/blob/15ad4c23e259c1c2dff58f89e9124e5f36dd2e94/src/mod/applications/mod_conference/conference_member.c#L871-L873) This patch adds checking that flag before beginning auto-record. --- src/mod/applications/mod_conference/mod_conference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index a2b5058656..96181f7db3 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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;