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

Freeswitch SVN anthm at freeswitch.org
Fri Sep 19 16:59:24 EDT 2008


Author: anthm
Date: Fri Sep 19 16:59:23 2008
New Revision: 9604

Modified:
   freeswitch/trunk/src/switch_ivr.c
   freeswitch/trunk/src/switch_ivr_bridge.c

Log:
tweak

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Fri Sep 19 16:59:23 2008
@@ -910,8 +910,11 @@
 		if (switch_channel_test_flag(channel, CF_PROXY_MODE)) {
 			status = SWITCH_STATUS_SUCCESS;
 			switch_core_session_receive_message(session, &msg);
-			
-			if (!(flags & SMF_IMMEDIATE)) {
+
+			if ((flags & SMF_IMMEDIATE)) {
+				switch_channel_wait_for_flag(channel, CF_REQ_MEDIA, SWITCH_FALSE, 250, NULL);
+				switch_yield(250000);
+			} else {
 				switch_channel_wait_for_flag(channel, CF_REQ_MEDIA, SWITCH_FALSE, 10000, NULL);
 				switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0);
 			}

Modified: freeswitch/trunk/src/switch_ivr_bridge.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_bridge.c	(original)
+++ freeswitch/trunk/src/switch_ivr_bridge.c	Fri Sep 19 16:59:23 2008
@@ -920,7 +920,7 @@
 	if (switch_channel_test_flag(channel, CF_PROXY_MODE)) {
 		const char *sbv = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE);
 		
-		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Restore media to %s\n", switch_channel_get_name(channel));
+		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Restore media to %s\n", switch_channel_get_name(channel));
 		switch_ivr_media(switch_core_session_get_uuid(session), SMF_IMMEDIATE);
 
 		if (!switch_strlen_zero(sbv) && (sbsession = switch_core_session_locate(sbv))) {



More information about the Freeswitch-svn mailing list