tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5686 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e912c13f8a
commit
8747fa7684
|
@ -89,9 +89,6 @@ static void *audio_bridge_thread(switch_thread_t * thread, void *obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((b_state = switch_channel_get_state(chan_b)) >= CS_HANGUP) {
|
if ((b_state = switch_channel_get_state(chan_b)) >= CS_HANGUP) {
|
||||||
if (originator && !ans_a && !ans_b) {
|
|
||||||
switch_channel_hangup(chan_a, switch_channel_get_cause(chan_b));
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,6 +180,12 @@ static void *audio_bridge_thread(switch_thread_t * thread, void *obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (switch_channel_get_state(chan_b) >= CS_HANGUP) {
|
||||||
|
if (originator && switch_channel_ready(chan_a) && !switch_channel_test_flag(chan_a, CF_ANSWERED)) {
|
||||||
|
switch_channel_hangup(chan_a, switch_channel_get_cause(chan_b));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
msg.string_arg = data->b_uuid;
|
msg.string_arg = data->b_uuid;
|
||||||
msg.message_id = SWITCH_MESSAGE_INDICATE_UNBRIDGE;
|
msg.message_id = SWITCH_MESSAGE_INDICATE_UNBRIDGE;
|
||||||
msg.from = __FILE__;
|
msg.from = __FILE__;
|
||||||
|
|
Loading…
Reference in New Issue