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:
Brian West 2006-03-01 23:30:58 +00:00
parent 4799ec8b8a
commit 64ff5192c9

View File

@ -801,7 +801,9 @@ static switch_status audio_bridge_on_hangup(switch_core_session *session)
//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)) {
switch_core_session_kill_channel(other_session, SWITCH_SIG_KILL);
switch_channel_hangup(other_channel);
}
return SWITCH_STATUS_SUCCESS;
}
@ -858,9 +860,13 @@ SWITCH_DECLARE(switch_status) switch_ivr_multi_threaded_bridge(switch_core_sessi
int stream_id = 0;
switch_frame *read_frame;
caller_channel = switch_core_session_get_channel(session);
assert(caller_channel != NULL);
switch_channel_set_flag(caller_channel, CF_ORIGINATOR);
peer_channel = switch_core_session_get_channel(peer_session);
assert(peer_channel != NULL);