diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-19 03:17:26 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-19 03:17:26 +0000 |
commit | b75d2252b6b59bdab54c0be68f4c9136610a913c (patch) | |
tree | d76667700e4e38dbdc992a219cf99be0311361c9 /channels | |
parent | 852e93e07c03c5289067af53f2d7a3294f0b725f (diff) |
Don't "ignore" on CANCEL (bug #2670)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4034 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5e37ce4ce..1a7f04bee 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7045,7 +7045,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 */ |