提交 0c13b704 authored 作者: Brian West's avatar Brian West 提交者: Andrey Volk

FS-10913: [mod_sofia] do not mark pre_answer unless status is less than 200

上级 6c739b3d
...@@ -7332,7 +7332,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, ...@@ -7332,7 +7332,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
} else { } else {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Remote SDP:\n%s\n", r_sdp); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Remote SDP:\n%s\n", r_sdp);
tech_pvt->mparams.remote_sdp_str = switch_core_session_strdup(session, r_sdp); tech_pvt->mparams.remote_sdp_str = switch_core_session_strdup(session, r_sdp);
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) { if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND && status < 200) {
switch_channel_mark_pre_answered(channel); switch_channel_mark_pre_answered(channel);
} }
//if ((sofia_test_flag(tech_pvt, TFLAG_LATE_NEGOTIATION) || switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND)) { //if ((sofia_test_flag(tech_pvt, TFLAG_LATE_NEGOTIATION) || switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论