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

index da2f6762ad4131911b04d9595bd496e8be0dfe68..33c5b748b51147d50b37080314d6f32c3e2ea514 100644 (file)
@@ -4622,6 +4622,9 @@ static void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *th
                conference_add_event_data(conference, event);
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Action", "stop-recording");
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Path", rec->path);
+               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Samples-Out", "%ld", (long) fh.samples_out);  
+               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Samplerate", "%ld", (long) fh.samplerate);  
+               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Milliseconds-Elapsed", "%ld", (long) fh.samples_out / (fh.samplerate / 1000));  
                switch_event_fire(&event);
        }