From a8d311bb1cca224eca21a402c5bf7ab89c8d98df Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 18 Aug 2021 15:16:55 +0000 Subject: [PATCH] [mod_sofia] Map 607 to CAUSE_UNWANTED and add 608 to CALL_REJECTED --- src/mod/endpoints/mod_sofia/sofia_glue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 644848a010..9fd0cea4e9 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1813,8 +1813,10 @@ switch_call_cause_t sofia_glue_sip_cause_to_freeswitch(int status) case 403: case 407: case 603: - case 607: + case 608: return SWITCH_CAUSE_CALL_REJECTED; + case 607: + return SWITCH_CAUSE_UNWANTED; case 404: return SWITCH_CAUSE_UNALLOCATED_NUMBER; case 485: