From 519078b23ee3e020e633f6788b6ba38b1b60edfd Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 18 Oct 2011 14:07:30 -0500 Subject: [PATCH] FS-3551 --- src/mod/endpoints/mod_sofia/sofia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {