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)"

This commit is contained in:
Lewis Hutchinson 2023-03-22 08:54:37 +00:00
parent 652a9d938e
commit 800e347e26
1 changed files with 1 additions and 1 deletions

View File

@ -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;