]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: On INVITE retransmission, don't add an extra 503 response.
authorWalter Doekes <walter+asterisk@wjd.nu>
Mon, 22 Sep 2014 19:48:29 +0000 (19:48 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Mon, 22 Sep 2014 19:48:29 +0000 (19:48 +0000)
INVITE arrives to asterisk, asterisk responds Busy(). If the INVITE is
retransmitted, asterisk would generate a 503 in addition to the 486.

Thanks Torrey Searle for providing a working regression test.

ASTERISK-24335 #close

Review: https://reviewboard.asterisk.org/r/4003/
Patches:
  retrans_486_invite.patch uploaded by Torrey Searle (License #5334)
........

Merged revisions 423720 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 423721 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 423722 from http://svn.asterisk.org/svn/asterisk/branches/12

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

channels/chan_sip.c

index 4a2ff08a9434731184c6d9a74e6d454c631bc42f..0b24b175602146a635e412ad9ea9646c87e45ea0 100644 (file)
@@ -25761,7 +25761,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, str
                        break;
                }
        } else {
-               if (p && (p->autokillid == -1)) {
+               if (!req->ignore && p && (p->autokillid == -1)) {
                        const char *msg;
 
                        if ((!ast_format_cap_count(p->jointcaps)))