From: Olle Johansson Date: Tue, 7 Nov 2006 13:02:30 +0000 (+0000) Subject: Don't ever reply to an ACK. (Issue 8265) X-Git-Tag: 1.2.14~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4392d33edb864bddbde2d3b334c67cfed723e3e;p=thirdparty%2Fasterisk.git Don't ever reply to an ACK. (Issue 8265) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47248 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c50dd91c6d..2c3eaa8fd7 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3240,9 +3240,10 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si ast_mutex_unlock(&iflock); /* If this is a response and we have ignoring of out of dialog responses turned on, then drop it */ + /* ...and never respond to a SIP ACK message */ if (!sip_methods[intended_method].can_create) { /* Can't create dialog */ - if (intended_method != SIP_RESPONSE) + if (intended_method != SIP_RESPONSE && intended_method != SIP_ACK) transmit_response_using_temp(callid, sin, 1, intended_method, req, "481 Call leg/transaction does not exist"); } else if (sip_methods[intended_method].can_create == 2) { char *response = "481 Call leg/transaction does not exist";