From: Russell Bryant Date: Sat, 23 Oct 2004 12:23:25 +0000 (+0000) Subject: Don't "ignore" on CANCEL (bug #2670) X-Git-Tag: 1.0.11.1~424 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=291309df4acdfa7ccc8e5979a6f8136d44686e9e;p=thirdparty%2Fasterisk.git Don't "ignore" on CANCEL (bug #2670) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4062 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 54c3b2541f..8847eea284 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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 */