FS-9271: [mod_conference] fix segfault trying to record a canvas that does not exist

This commit is contained in:
Michael Jerris 2016-06-15 18:35:59 -04:00
parent c0499fbb22
commit 2475c2686f
1 changed files with 4 additions and 0 deletions

View File

@ -2529,6 +2529,10 @@ switch_status_t conference_api_sub_record(conference_obj_t *conference, switch_s
if (id == 0 && conference->canvases[0]) id = 1;
if (id > conference->canvas_count) {
id = 1;
}
if (id > 0) {
stream->write_function(stream, "Record file %s canvas %d\n", argv[2], id);
} else {