]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
SIP Response 410 maps to cause code 22 (or 23), not 1.
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 1 May 2009 20:00:23 +0000 (20:00 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 1 May 2009 20:00:23 +0000 (20:00 +0000)
(closes issue #14993)
 Reported by: BigJimmy
 Patches:
       causepatch uploaded by BigJimmy (license 371)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@191559 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b882f2cb0e26205ab7d9be73fa6cee401c760ac3..82d47d2fb86a17ef30f81e9edd7b010769ba1027 100644 (file)
@@ -3420,7 +3420,7 @@ static int hangup_sip2cause(int cause)
                case 409:       /* Conflict */
                        return AST_CAUSE_NORMAL_TEMPORARY_FAILURE;
                case 410:       /* Gone */
-                       return AST_CAUSE_UNALLOCATED;
+                       return AST_CAUSE_NUMBER_CHANGED;
                case 411:       /* Length required */
                        return AST_CAUSE_INTERWORKING;
                case 413:       /* Request entity too large */