From 1dceb16781c62319119d9ef70cc959b7acc92452 Mon Sep 17 00:00:00 2001 From: dvossel Date: Tue, 27 Jul 2010 16:09:15 +0000 Subject: 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 --- channels/chan_sip.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'channels') 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; } } -- cgit v1.2.3