aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-27 16:09:15 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-27 16:09:15 +0000
commit1dceb16781c62319119d9ef70cc959b7acc92452 (patch)
treeaa80ab24532df002c1eb26bbe8ef5d6de4f0e6ef /channels
parent06b4648fa2f3e8d73972525e814e5a077d6eccae (diff)
fix sip transaction match with authentication, fix confusing log message when using getaddrinfo
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@279817 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4dd27f8a0..b74bc2912 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7369,11 +7369,10 @@ static struct sip_pvt *find_call(struct sip_request *req, struct ast_sockaddr *a
/* If this is a Request, set the Via and Authorization header arguments */
if (req->method != SIP_RESPONSE) {
- const char *auth_header;
args.ruri = REQ_OFFSET_TO_STR(req, rlPart2);
get_viabranch(ast_strdupa(get_header(req, "Via")), (char **) &args.viasentby, (char **) &args.viabranch);
- auth_header = get_header(req, "WWW-Authenticate");
- if (!ast_strlen_zero(auth_header)) {
+ if (!ast_strlen_zero(get_header(req, "Authorization")) ||
+ !ast_strlen_zero(get_header(req, "Proxy-Authorization"))) {
args.authentication_present = 1;
}
}