提交 3359f04a authored 作者: Anthony Minessale's avatar Anthony Minessale

only use the wait_for_aleg_ack when the call is unanswered

上级 e74d4ac6
...@@ -6419,9 +6419,11 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, ...@@ -6419,9 +6419,11 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
break; break;
case nua_callstate_completing: case nua_callstate_completing:
{ {
const char *wait_for_ack = switch_channel_get_variable(channel, "sip_wait_for_aleg_ack");
int send_ack = 1; int send_ack = 1;
if (!switch_channel_test_flag(channel, CF_ANSWERED)) {
const char *wait_for_ack = switch_channel_get_variable(channel, "sip_wait_for_aleg_ack");
if (switch_true(wait_for_ack)) { if (switch_true(wait_for_ack)) {
switch_core_session_t *other_session; switch_core_session_t *other_session;
...@@ -6434,6 +6436,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, ...@@ -6434,6 +6436,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
switch_core_session_rwunlock(other_session); switch_core_session_rwunlock(other_session);
} }
} }
}
if (r_sdp && sofia_test_flag(tech_pvt, TFLAG_3PCC_INVITE) && !sofia_test_flag(tech_pvt, TFLAG_SDP)) { if (r_sdp && sofia_test_flag(tech_pvt, TFLAG_3PCC_INVITE) && !sofia_test_flag(tech_pvt, TFLAG_SDP)) {
sofia_set_flag(tech_pvt, TFLAG_SDP); sofia_set_flag(tech_pvt, TFLAG_SDP);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论