]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
push recordings to real channels when doing bowout
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Oct 2012 16:49:58 +0000 (12:49 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Oct 2012 16:49:58 +0000 (12:49 -0400)
src/mod/endpoints/mod_loopback/mod_loopback.c

index b34670d36be188a7272ce969c9f29db483346b9a..f5a2046fb6bbd882360564c40cf2de2b5eff5b0d 100644 (file)
@@ -727,13 +727,16 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc
                        find_non_loopback_bridge(session, &br_a, &a_uuid);
                        find_non_loopback_bridge(tech_pvt->other_session, &br_b, &b_uuid);
 
+
                        
                        if (br_a) {
                                ch_a = switch_core_session_get_channel(br_a);
+                               switch_core_media_bug_transfer_recordings(session, br_a);
                        }
 
                        if (br_b) {
                                ch_b = switch_core_session_get_channel(br_b);
+                               switch_core_media_bug_transfer_recordings(tech_pvt->other_session, br_b);
                        }
                        
                        if (ch_a && ch_b && switch_channel_test_flag(ch_a, CF_BRIDGED) && switch_channel_test_flag(ch_b, CF_BRIDGED)) {