[Freeswitch-svn] [commit] r11490 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Mon Jan 26 08:47:00 PST 2009


Author: anthm
Date: Mon Jan 26 10:47:00 2009
New Revision: 11490

Log:
add missing code

Modified:
   freeswitch/trunk/src/switch_core_io.c

Modified: freeswitch/trunk/src/switch_core_io.c
==============================================================================
--- freeswitch/trunk/src/switch_core_io.c	(original)
+++ freeswitch/trunk/src/switch_core_io.c	Mon Jan 26 10:47:00 2009
@@ -328,7 +328,7 @@
 			}
 		}
 
-		if (session->bugs) {
+		if (session->bugs && !switch_channel_test_flag(session->channel, CF_PAUSE_BUGS)) {
 			switch_media_bug_t *bp, *dp, *last = NULL;
 			switch_bool_t ok = SWITCH_TRUE;
 			switch_thread_rwlock_rdlock(session->bug_rwlock);
@@ -493,7 +493,7 @@
 		if (flag & SFF_CNG) {
 			switch_set_flag((*frame), SFF_CNG);
 		}
-		if (session->bugs) {
+		if (session->bugs && !switch_channel_test_flag(session->channel, CF_PAUSE_BUGS)) {
 			switch_media_bug_t *bp, *dp, *last = NULL;
 			switch_bool_t ok = SWITCH_TRUE;
 			switch_thread_rwlock_rdlock(session->bug_rwlock);
@@ -745,7 +745,7 @@
 		switch_mutex_unlock(session->resample_mutex);
 	}
 
-	if (session->bugs) {
+	if (session->bugs && !switch_channel_test_flag(session->channel, CF_PAUSE_BUGS)) {
 		switch_media_bug_t *bp, *dp, *last = NULL;
 
 		switch_thread_rwlock_rdlock(session->bug_rwlock);



More information about the Freeswitch-svn mailing list