From 9e2abab8fa8816999e8f91b24496de5a41cda1a4 Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Wed, 11 Oct 2006 13:38:37 +0000
Subject: [PATCH] Revert Luigi's accidental commit of his local changes when
 debugging some SIP authentication issues.  This was committed in revision
 44844, where the commit message was just "small formatting cleanup", so I am
 pretty sure he didn't mean to commit this part.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2f79f7e05b..7057c81816 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8711,16 +8711,6 @@ static enum check_auth_result check_user_full(struct sip_pvt *p, struct sip_requ
 	if (ast_strlen_zero(of))
 		return AUTH_SUCCESSFUL;
 
-	if (1) {
-		const char *hdr = (sipmethod == SIP_REGISTER || sipmethod == SIP_SUBSCRIBE) ?
-			"Authorization" : "Proxy-Authorization";
-		if ( (hdr = get_header(req, hdr)) && (hdr = strstr(hdr, "username=\"")) ) {
-			ast_copy_string(from, hdr + strlen("username=\""), sizeof(from));
-			of = from;
-			of = strsep(&of, "\"");
-		}
-	}
-
 	if (!authpeer)	/* If we are looking for a peer, don't check the user objects (or realtime) */
 		user = find_user(of, 1);
 
-- 
GitLab