]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
do not pause callers when they come out of a bridge
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Mar 2013 20:18:54 +0000 (15:18 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Mar 2013 20:18:54 +0000 (15:18 -0500)
src/mod/applications/mod_fifo/mod_fifo.c

index b232349643df20e383ca352b8ad68fb6f6e8c752..7e75326147e7d34e04f063bf652ce537f1ef83c5 100644 (file)
@@ -3108,8 +3108,9 @@ SWITCH_STANDARD_APP(fifo_function)
                                fifo_execute_sql_queued(&sql, SWITCH_TRUE, SWITCH_FALSE);
 
 
-                               switch_core_media_bug_pause(session);
-                               switch_core_media_bug_pause(other_session);
+                               if (switch_channel_ready(channel)) {
+                                       switch_core_media_bug_pause(session);
+                               }
 
                                if (record_template) {
                                        switch_ivr_stop_record_session(session, expanded);