From: Anthony Minessale Date: Tue, 18 Oct 2011 19:07:30 +0000 (-0500) Subject: FS-3551 X-Git-Tag: v1.2-rc1~27^2~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=519078b23ee3e020e633f6788b6ba38b1b60edfd;p=thirdparty%2Ffreeswitch.git FS-3551 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 183af3c44b..fd95d9addb 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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) {