From: Russell Bryant Date: Wed, 11 Oct 2006 13:38:37 +0000 (+0000) Subject: Revert Luigi's accidental commit of his local changes when debugging some SIP X-Git-Tag: 1.6.0-beta1~3^2~4443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e2abab8fa8816999e8f91b24496de5a41cda1a4;p=thirdparty%2Fasterisk.git 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 --- 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);