fix obvious seg in setting a record file name to every participant and not checking for the recording member which does not have a session

This commit is contained in:
Anthony Minessale 2014-10-07 12:48:53 -05:00
parent a4f840b947
commit 2514de94d2
1 changed files with 1 additions and 0 deletions

View File

@ -3183,6 +3183,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
}
/* Set the conference recording variable for each member */
for (omember = conference->members; omember; omember = omember->next) {
if (!omember->session) continue;
channel = switch_core_session_get_channel(omember->session);
switch_channel_set_variable(channel, "conference_recording", conference->record_filename);
}