mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
small fix from over the phone from tony
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@721 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4799ec8b8a
commit
64ff5192c9
@ -801,7 +801,9 @@ static switch_status audio_bridge_on_hangup(switch_core_session *session)
|
|||||||
//switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
|
//switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
|
||||||
if (switch_channel_test_flag(channel, CF_ORIGINATOR) && !switch_channel_test_flag(other_channel, CF_TRANSFER)) {
|
if (switch_channel_test_flag(channel, CF_ORIGINATOR) && !switch_channel_test_flag(other_channel, CF_TRANSFER)) {
|
||||||
switch_core_session_kill_channel(other_session, SWITCH_SIG_KILL);
|
switch_core_session_kill_channel(other_session, SWITCH_SIG_KILL);
|
||||||
|
switch_channel_hangup(other_channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -858,9 +860,13 @@ SWITCH_DECLARE(switch_status) switch_ivr_multi_threaded_bridge(switch_core_sessi
|
|||||||
int stream_id = 0;
|
int stream_id = 0;
|
||||||
switch_frame *read_frame;
|
switch_frame *read_frame;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
caller_channel = switch_core_session_get_channel(session);
|
caller_channel = switch_core_session_get_channel(session);
|
||||||
assert(caller_channel != NULL);
|
assert(caller_channel != NULL);
|
||||||
|
|
||||||
|
switch_channel_set_flag(caller_channel, CF_ORIGINATOR);
|
||||||
|
|
||||||
peer_channel = switch_core_session_get_channel(peer_session);
|
peer_channel = switch_core_session_get_channel(peer_session);
|
||||||
assert(peer_channel != NULL);
|
assert(peer_channel != NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user