Refined this logic due to some issues in the testing phase.

Unable to test 183 SDP early media yet as we have a bug around that ongoing with FreeSWITCH support
This commit is contained in:
Lewis Hutchinson 2023-04-28 14:07:52 +01:00
parent 800e347e26
commit bf1ab93cbc
1 changed files with 2 additions and 2 deletions

View File

@ -2409,8 +2409,8 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
switch_core_session_pass_indication(session, SWITCH_MESSAGE_INDICATE_ANSWER); switch_core_session_pass_indication(session, SWITCH_MESSAGE_INDICATE_ANSWER);
} }
} else { } else {
if (msg->numeric_arg && !(switch_channel_test_flag(channel, CF_ANSWERED) && code == 488)) { if (msg->numeric_arg && !(switch_channel_test_flag(channel, CF_ANSWERED) && code == 488) && code != 180 && code != 183) {
if (code === 180 || code == 183 || code > 399) { if (code > 399) {
switch_call_cause_t cause = sofia_glue_sip_cause_to_freeswitch(code); switch_call_cause_t cause = sofia_glue_sip_cause_to_freeswitch(code);
if (code == 401 || cause == 407) cause = SWITCH_CAUSE_USER_CHALLENGE; if (code == 401 || cause == 407) cause = SWITCH_CAUSE_USER_CHALLENGE;