Revert Luigi's accidental commit of his local changes when debugging some SIP
authorRussell Bryant <russell@russellbryant.com>
Wed, 11 Oct 2006 13:38:37 +0000 (13:38 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 11 Oct 2006 13:38:37 +0000 (13:38 +0000)
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

index 2f79f7e..7057c81 100644 (file)
@@ -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);