if (argv[2]) {
on = switch_true(argv[2]);
if (on) {
+ if (conference->record_count > 0) {
+ stream->write_function(stream, "-ERR conference is recording, not enabling vid-personal.\n");
+ return SWITCH_STATUS_SUCCESS;
+ }
conference_utils_set_flag(conference, CFLAG_PERSONAL_CANVAS);
} else {
conference_utils_clear_flag(conference, CFLAG_PERSONAL_CANVAS);
return SWITCH_STATUS_GENERR;
}
+ if (conference_utils_test_flag(conference, CFLAG_PERSONAL_CANVAS)) {
+ stream->write_function(stream, "-ERR Personal Canvas enabled, recording not permitted.\n");
+ return SWITCH_STATUS_SUCCESS;
+ }
+
if (argv[3]) {
if (argv[3]) {
return;
}
+ if (conference_utils_test_flag(conference, CFLAG_PERSONAL_CANVAS)) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Personal Canvas enabled, recording not permitted.\n");
+ return;
+ }
+
rec->conference = conference;
rec->path = switch_core_strdup(pool, path);
rec->pool = pool;