]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
go ahead and umm auth
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 12 Dec 2007 23:28:09 +0000 (23:28 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 12 Dec 2007 23:28:09 +0000 (23:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6716 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index daa113fb7bb4e5ce68699e07e6110e30fca77028..d46332e529dae3183c72a6326084d4dfff8a74a7 100644 (file)
@@ -404,7 +404,7 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
                authorization = sip->sip_proxy_authorization;
        }
 
-       if ((profile->pflags & PFLAG_BLIND_REG)) {
+       if (regtype == REG_REGISTER && (profile->pflags & PFLAG_BLIND_REG)) {
                goto reg;
        }
 
@@ -462,7 +462,6 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
 
        if (!authorization || stale) {
                sofia_reg_auth_challange(nua, profile, nh, regtype, to_host, stale);
-
                if (regtype == REG_REGISTER) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Requesting Registration from: [%s@%s]\n", to_user, to_host);
                }
@@ -841,7 +840,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
        dparams = switch_xml_child(domain, "params");
        uparams = switch_xml_child(user, "params");
 
-       if (!(dparams && uparams)) {
+       if (!(dparams || uparams)) {
                ret = AUTH_OK;
                goto skip_auth;
        }