fix bypass_media mode

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7128 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-01-07 18:02:01 +00:00
parent 66673a4c15
commit b3992a6eee
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -1266,9 +1266,13 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
switch_core_session_t *other_session;
if (switch_channel_test_flag(channel, CF_BYPASS_MEDIA)) {
if (status == 200 && !switch_channel_test_flag(channel, CF_ANSWERED) && !switch_channel_test_flag(channel, CF_EARLY_MEDIA)) {
return;
}
if ((uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE)) && (other_session = switch_core_session_locate(uuid))) {
switch_core_session_message_t msg;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Passing %d %s to other leg\n", status, phrase);
msg.message_id = SWITCH_MESSAGE_INDICATE_RESPOND;