Don't ignore ACk packets (bug #4861)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6266 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
d2fa26daf2
commit
9df792a0de
|
@ -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 */
|
||||
|
|
Reference in New Issue