提交 7efc1f3b authored 作者: Mike Jerris's avatar Mike Jerris 提交者: Brian West

FS-7135: [mod_sofia] fix response to re-invite with duplicate sdp (such as we…

FS-7135: [mod_sofia] fix response to re-invite with duplicate sdp (such as we get from seesion refresh) when soa is disabled to include an sdp.  Fixes t.38 fax failure on session refresh
上级 eefe2153
......@@ -7013,6 +7013,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
su_home_t *home = NULL;
switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "RECEIVED");
sofia_set_flag_locked(tech_pvt, TFLAG_READY);
if (switch_channel_get_state(channel) == CS_NEW) {
switch_channel_set_state(channel, CS_INIT);
} else {
......@@ -7140,6 +7141,11 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
}
nua_respond(tech_pvt->nh, SIP_200_OK, TAG_END());
goto done;
} else if (r_sdp && !sofia_use_soa(tech_pvt)) {
nua_respond(tech_pvt->nh, SIP_200_OK,
NUTAG_MEDIA_ENABLE(0),
SIPTAG_CONTACT_STR(tech_pvt->profile->url),
SIPTAG_CONTENT_TYPE_STR("application/sdp"), SIPTAG_PAYLOAD_STR(tech_pvt->mparams.local_sdp_str), TAG_END());
} else {
ss_state = nua_callstate_completed;
goto state_process;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论