diff options
author | Mark Spencer <markster@digium.com> | 2005-08-03 04:26:10 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-08-03 04:26:10 +0000 |
commit | c57bfc55cf3815c01417dcdfb3755cc5342b6fa7 (patch) | |
tree | 7538050778a1d37ad1b907f2e96d2ec6dbca8494 /channels | |
parent | 6afb367b966d1874ce48804deb878b5f3280e0e4 (diff) |
Don't ignore ACk packets (bug #4861)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 358ba65ac..8370af33f 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9617,10 +9617,10 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc if (option_debug > 2) ast_log(LOG_DEBUG, "**** Received %s (%d) - Command in SIP %s\n", sip_methods[p->method].text, sip_methods[p->method].id, cmd); - if (p->icseq && (p->icseq > seqno)) { + if (p->icseq && (p->icseq > seqno) && req->method != SIP_ACK) { ast_log(LOG_DEBUG, "Ignoring too old SIP packet packet %d (expecting >= %d)\n", seqno, p->icseq); return -1; - } else if (p->icseq && (p->icseq == seqno) && (p->method != SIP_CANCEL|| ast_test_flag(p, SIP_ALREADYGONE))) { + } else if (p->icseq && (p->icseq == seqno) && req->method != SIP_ACK &&(p->method != SIP_CANCEL|| ast_test_flag(p, SIP_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 */ |