Merge pull request #859 in FS/freeswitch from ~SJTHOMASON/freeswitch:bugfix/FS-9183-call-with-t.38-reinvite-fails-after to master
* commit '5b71dffb8004c6e7045afeaf42c6a785c7496975': FS-9183: [mod_sofia] Handle 415 Unsupported Media Type as 488
This commit is contained in:
commit
ffb93653ab
|
@ -6518,6 +6518,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)) {
|
||||||
|
|
Loading…
Reference in New Issue