aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-29 19:35:34 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-29 19:35:34 +0000
commit99a9a025c3e040569aaf4f6c3c9121089dde6248 (patch)
treeb949ff1d28dfb430bb669ed3cf3cf3c15193756a /channels/chan_sip.c
parent876638bf5c3d7c65bf64250dd54e06f597c1fa28 (diff)
respond with 481 when request requiring totag has no totag to match against
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@280518 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d340115e4..6e825b007 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;
}