From: David Vossel Date: Mon, 2 Aug 2010 14:30:50 +0000 (+0000) Subject: if totag is not present for an ACK request, do not send an error response X-Git-Tag: 11.0.0-beta1~2508 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f507546498e4e805370e5376ed374ad4b31c9fd0;p=thirdparty%2Fasterisk.git if totag is not present for an ACK request, do not send an error response git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@280627 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 38b1974266..7ba2171863 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7363,7 +7363,9 @@ static struct sip_pvt *find_call(struct sip_request *req, struct ast_sockaddr *a } /* reject requests that must always have a To: tag */ if (ast_strlen_zero(totag) && (req->method == SIP_ACK || req->method == SIP_BYE || req->method == SIP_INFO )) { - transmit_response_using_temp(callid, addr, 1, intended_method, req, "481 Call leg/transaction does not exist"); + if (req->method != SIP_ACK) { + transmit_response_using_temp(callid, addr, 1, intended_method, req, "481 Call leg/transaction does not exist"); + } ast_debug(5, "%s must have a to tag. dropping callid: %s from: %s\n", sip_methods[req->method].text , callid, from ); return NULL; }