diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-24 14:01:00 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-24 14:01:00 +0000 |
commit | 5534c94a3c28c181e0358b4ecd94d72307e65c93 (patch) | |
tree | e0fab3659c9c629a63b8c76f6c58663fa0b20555 /channels | |
parent | ea761606054bad1a62f2b0dc6fc46786c95d3c52 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@8546 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 b51360433..89c687606 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11054,8 +11054,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 |