From 0fef06f8ab99360521acdba3ec66aaa3558e4dbe Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Mon, 22 Sep 2014 19:45:50 +0000 Subject: [PATCH] chan_sip: On INVITE retransmission, don't add an extra 503 response. 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@423720 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a8e7eb277b..58575f9739 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23830,7 +23830,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int break; } } else { - if (p && (p->autokillid == -1)) { + if (!req->ignore && p && (p->autokillid == -1)) { const char *msg; if (!p->jointcapability)