]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3551
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Oct 2011 19:07:30 +0000 (14:07 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Oct 2011 19:07:30 +0000 (14:07 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 183af3c44be96a21ee295a4c6ea8cd182207bc1a..fd95d9addb8b6e7cef85959569de1bad2f061f6b 100644 (file)
@@ -884,7 +884,8 @@ static void our_sofia_event_callback(nua_event_t event,
                }
        }
        
-       if (sofia_test_pflag(profile, PFLAG_AUTH_ALL) && tech_pvt && tech_pvt->key && sip) {
+
+       if (sofia_test_pflag(profile, PFLAG_AUTH_ALL) && tech_pvt && tech_pvt->key && sip && (event < nua_r_set_params || event > nua_r_authenticate)) {
                sip_authorization_t const *authorization = NULL;
 
                if (sip->sip_authorization) {