From 800e347e2667a1e6954758d102af5fdf71b93a3e Mon Sep 17 00:00:00 2001 From: Lewis Hutchinson Date: Wed, 22 Mar 2023 08:54:37 +0000 Subject: [PATCH] re added (without whitespace changes) 180 and 183 here to allow mod_deptools: respond to trigger a ad-hoc 18X along with ring_ready if (code == 180 || code == 183 || code > 399)" --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 0b74b89c9d..66d8b3a081 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2410,7 +2410,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi } } else { if (msg->numeric_arg && !(switch_channel_test_flag(channel, CF_ANSWERED) && code == 488)) { - if (code > 399) { + if (code === 180 || code == 183 || code > 399) { switch_call_cause_t cause = sofia_glue_sip_cause_to_freeswitch(code); if (code == 401 || cause == 407) cause = SWITCH_CAUSE_USER_CHALLENGE;