]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] Map 607 to CAUSE_UNWANTED and add 608 to CALL_REJECTED
authorBrian West <brian@freeswitch.org>
Wed, 18 Aug 2021 15:16:55 +0000 (15:16 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:52 +0000 (22:00 +0300)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 644848a01064ed7cd1c0c0e448a3a4282a8eb646..9fd0cea4e90cabb5cca436079b23caf7db01b37c 100644 (file)
@@ -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: