[Freeswitch-svn] [commit] r9298 - freeswitch/trunk/src
Freeswitch SVN
brian at freeswitch.org
Thu Aug 14 14:19:41 EDT 2008
Author: brian
Date: Thu Aug 14 14:19:41 2008
New Revision: 9298
Modified:
freeswitch/trunk/src/switch_cpp.cpp
Log:
fix cpp bridge
Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp (original)
+++ freeswitch/trunk/src/switch_cpp.cpp Thu Aug 14 14:19:41 2008
@@ -1070,12 +1070,10 @@
if (switch_channel_ready(channel_a) && switch_channel_ready(channel_b)) {
session_a.begin_allow_threads();
- if (!switch_channel_test_flag(channel_a, CF_ANSWERED)) {
- switch_channel_answer(channel_a);
- }
- if (!switch_channel_test_flag(channel_b, CF_ANSWERED)) {
- switch_channel_answer(channel_b);
+ if (!switch_channel_media_ready(channel_a)) {
+ switch_channel_pre_answer(channel_a);
}
+
if (switch_channel_ready(channel_a) && switch_channel_ready(channel_b)) {
args = session_a.get_cb_args(); // get the cb_args data structure for session a
dtmf_func = args.input_callback; // get the call back function
More information about the Freeswitch-svn
mailing list