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

FreeSWITCH SVN anthm at freeswitch.org
Tue Nov 11 07:25:46 PST 2008


Author: anthm
Date: Tue Nov 11 10:25:45 2008
New Revision: 10330

Log:
fix err

Modified:
   freeswitch/trunk/src/switch_ivr_bridge.c

Modified: freeswitch/trunk/src/switch_ivr_bridge.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_bridge.c	(original)
+++ freeswitch/trunk/src/switch_ivr_bridge.c	Tue Nov 11 10:25:45 2008
@@ -1159,8 +1159,9 @@
 	switch_channel_pre_answer(channel);
 
 	if ((buuid = switch_channel_get_variable(rchannel, SWITCH_SIGNAL_BOND_VARIABLE))) {
-		bsession = switch_core_session_locate(buuid);
-		bchannel = switch_core_session_get_channel(bsession);
+		if ((bsession = switch_core_session_locate(buuid))) {
+			bchannel = switch_core_session_get_channel(bsession);
+		}
 	}
 
 	if (!switch_channel_test_flag(rchannel, CF_ANSWERED)) {



More information about the Freeswitch-svn mailing list