]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6106 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Jan 2014 22:02:45 +0000 (03:02 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Jan 2014 22:02:45 +0000 (03:02 +0500)
src/mod/applications/mod_conference/mod_conference.c

index 342bc28ccf613c54899bd1e30279e65efa21a647..22c7079dc47830e37c5e58b8bfd1735e7a6fcd3d 100644 (file)
@@ -4501,6 +4501,17 @@ static void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *th
                                                          rec->path, (uint8_t) 1, conference->rate, SWITCH_FILE_FLAG_WRITE | SWITCH_FILE_DATA_SHORT,
                                                          rec->pool) != SWITCH_STATUS_SUCCESS) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Opening File [%s]\n", rec->path);
+
+
+               if (test_eflag(conference, EFLAG_RECORD) &&
+                       switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT) == SWITCH_STATUS_SUCCESS) {
+                       conference_add_event_data(conference, event);
+                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Action", "start-recording");
+                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Path", rec->path);
+                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Error", "File could not be opened for recording");
+                       switch_event_fire(&event);
+               }
+
                goto end;
        }