提交 5b71dffb authored 作者: Spencer Thomason's avatar Spencer Thomason

FS-9183: [mod_sofia] Handle 415 Unsupported Media Type as 488

Handle 415 Unsupported Media Type the same as 488 Not Acceptable Here
after t.38 ReINVITE. This resolves an issue where the call would fail and
translates the response code to the more standard 488 Not Acceptable Here
allowing the call to continue in audio mode.

FS-9183 #resolve
上级 35eae5c9
...@@ -6526,6 +6526,12 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status ...@@ -6526,6 +6526,12 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
switch_core_media_proxy_remote_addr(session, NULL); switch_core_media_proxy_remote_addr(session, NULL);
} }
if (status == 415) {
int new_status = 488;
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Overriding %d %s with %d\n", status, phrase, new_status);
status = new_status;
}
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Passing %d %s to other leg\n%s\n", status, phrase, switch_str_nil(r_sdp)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Passing %d %s to other leg\n%s\n", status, phrase, switch_str_nil(r_sdp));
if (switch_core_session_compare(session, other_session)) { if (switch_core_session_compare(session, other_session)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论