]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't "ignore" on CANCEL (bug #2670)
authorRussell Bryant <russell@russellbryant.com>
Sat, 23 Oct 2004 12:23:25 +0000 (12:23 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 23 Oct 2004 12:23:25 +0000 (12:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4062 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 54c3b2541f04cb6371d1b8c5895f2ca7c37bd9fc..8847eea284f9491dce40b2cefae7ac0e23f591e6 100755 (executable)
@@ -7106,7 +7106,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                if (p->icseq && (p->icseq > seqno)) {
                        ast_log(LOG_DEBUG, "Ignoring too old packet packet %d (expecting >= %d)\n", seqno, p->icseq);
                        return -1;
-               } else if (p->icseq && (p->icseq == seqno)) {
+               } else if (p->icseq && (p->icseq == seqno) && (strcasecmp(cmd, "CANCEL") || p->alreadygone)) {
                        /* ignore means "don't do anything with it" but still have to 
                           respond appropriately.  We do this if we receive a repeat of
                           the last sequence number  */