mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
fix rtp break on blocking sockets
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7829 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -644,10 +644,10 @@ static switch_status_t sofia_kill_channel(switch_core_session_t *session, int si
|
||||
switch (sig) {
|
||||
case SWITCH_SIG_BREAK:
|
||||
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
||||
switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_BREAK);
|
||||
switch_rtp_break(tech_pvt->rtp_session);
|
||||
}
|
||||
if (switch_rtp_ready(tech_pvt->video_rtp_session)) {
|
||||
switch_rtp_set_flag(tech_pvt->video_rtp_session, SWITCH_RTP_FLAG_BREAK);
|
||||
switch_rtp_break(tech_pvt->rtp_session);
|
||||
}
|
||||
break;
|
||||
case SWITCH_SIG_KILL:
|
||||
|
||||
@@ -1436,7 +1436,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
||||
}
|
||||
if (switch_core_session_receive_message(other_session, &msg) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Other leg is not available\n");
|
||||
nua_respond(tech_pvt->nh, 488, "Hangup in progress", TAG_END());
|
||||
nua_respond(tech_pvt->nh, 403, "Hangup in progress", TAG_END());
|
||||
}
|
||||
switch_core_session_rwunlock(other_session);
|
||||
}
|
||||
@@ -1780,7 +1780,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Passing SDP to other leg.\n%s\n", r_sdp);
|
||||
if (switch_core_session_receive_message(other_session, &msg) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Other leg is not available\n");
|
||||
nua_respond(tech_pvt->nh, 488, "Hangup in progress", TAG_END());
|
||||
nua_respond(tech_pvt->nh, 403, "Hangup in progress", TAG_END());
|
||||
}
|
||||
switch_core_session_rwunlock(other_session);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user