aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 13:21:13 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 13:21:13 +0000
commit1f4ef32c8f91bada9c29f12389caedaae3196f52 (patch)
tree60e2a737d08b29a2d2fb0177f4ac24ece0004ded /channels/chan_sip.c
parent1e6538d0ccb90bd3fae7fa8a9f7ef82be4826b42 (diff)
Importing rev #8537 from 1.2, never send response to ACK (issue #6308)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8538 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e38dc1115..2b4692c58 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11040,8 +11040,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