FSCORE-556
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16736 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f70813a90e
commit
cd4cb502f8
|
@ -390,8 +390,8 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
|
|||
switch_channel_hangup(chan_a, SWITCH_CAUSE_ALLOTTED_TIMEOUT);
|
||||
}
|
||||
|
||||
if (!ans_a && originator) {
|
||||
|
||||
if (!ans_a) {
|
||||
if (originator) {
|
||||
if (!ans_b && switch_channel_test_flag(chan_b, CF_ANSWERED)) {
|
||||
switch_channel_pass_callee_id(chan_b, chan_a);
|
||||
if (switch_channel_answer(chan_a) != SWITCH_STATUS_SUCCESS) {
|
||||
|
@ -410,6 +410,9 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
|
|||
switch_yield(10000);
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
ans_a = switch_channel_test_flag(chan_b, CF_ANSWERED);
|
||||
}
|
||||
}
|
||||
|
||||
if (ans_a != ans_b) {
|
||||
|
|
Loading…
Reference in New Issue