From: David Vossel Date: Thu, 29 Jul 2010 19:35:34 +0000 (+0000) Subject: respond with 481 when request requiring totag has no totag to match against X-Git-Tag: 11.0.0-beta1~2516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91cfe9a93ef01403075e500f77740e3e35c8ebaa;p=thirdparty%2Fasterisk.git respond with 481 when request requiring totag has no totag to match against git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@280518 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d340115e4a..6e825b0074 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7334,6 +7334,7 @@ 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"); ast_debug(5, "%s must have a to tag. dropping callid: %s from: %s\n", sip_methods[req->method].text , callid, from ); return NULL; }