From bf1ab93cbc85f1b4e48b9d5ab061333f4e3c14e9 Mon Sep 17 00:00:00 2001 From: Lewis Hutchinson Date: Fri, 28 Apr 2023 14:07:52 +0100 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 66d8b3a081..9c80724932 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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); } } else { - if (msg->numeric_arg && !(switch_channel_test_flag(channel, CF_ANSWERED) && code == 488)) { - if (code === 180 || code == 183 || code > 399) { + if (msg->numeric_arg && !(switch_channel_test_flag(channel, CF_ANSWERED) && code == 488) && code != 180 && code != 183) { + if (code > 399) { switch_call_cause_t cause = sofia_glue_sip_cause_to_freeswitch(code); if (code == 401 || cause == 407) cause = SWITCH_CAUSE_USER_CHALLENGE;