[Freeswitch-svn] [commit] r9787 - freeswitch/trunk/src/mod/endpoints/mod_loopback
Freeswitch SVN
anthm at freeswitch.org
Thu Oct 2 12:25:15 EDT 2008
Author: anthm
Date: Thu Oct 2 12:25:13 2008
New Revision: 9787
Modified:
freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
Log:
wait till both channels are answered to jump out of the way
Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c Thu Oct 2 12:25:13 2008
@@ -514,7 +514,9 @@
switch_test_flag(tech_pvt, TFLAG_BRIDGE) &&
switch_test_flag(tech_pvt->other_tech_pvt, TFLAG_BRIDGE) &&
switch_channel_test_flag(tech_pvt->channel, CF_BRIDGED) &&
- switch_channel_test_flag(tech_pvt->other_channel, CF_BRIDGED)
+ switch_channel_test_flag(tech_pvt->other_channel, CF_BRIDGED) &&
+ switch_channel_test_flag(tech_pvt->channel, CF_ANSWERED) &&
+ switch_channel_test_flag(tech_pvt->other_channel, CF_ANSWERED)
) {
const char *a_uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE);
const char *b_uuid = switch_channel_get_variable(tech_pvt->other_channel, SWITCH_SIGNAL_BOND_VARIABLE);
More information about the Freeswitch-svn
mailing list