diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-24 13:15:13 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-24 13:15:13 +0000 |
commit | 7411e901a5594766ea70160e8fc613bfcfc50dc5 (patch) | |
tree | cd5a04bfd200b4fd2d6e060fedbc5dabb81bbc76 | |
parent | 407886f2525a7e436421dc630d30306b8541f561 (diff) |
Issue #6308 - never send response to ACK. (Reported by whiskerp)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8537 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6500d90c0..d6fb905bd 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10944,8 +10944,10 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc 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)) { - ast_log(LOG_DEBUG, "Ignoring too old SIP packet packet %d (expecting >= %d)\n", seqno, p->icseq); - transmit_response(p, "503 Server error", req); /* We must respond according to RFC 3261 sec 12.2 */ + if (option_debug) + ast_log(LOG_DEBUG, "Ignoring too old SIP packet packet %d (expecting >= %d)\n", seqno, p->icseq); + if (req->method != SIP_ACK) + transmit_response(p, "503 Server error", req); /* We must respond according to RFC 3261 sec 12.2 */ return -1; } 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 |