[commit] r9611 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: anthm Date: Mon Sep 22 10:40:13 2008 New Revision: 9611 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Log: close MODENDP-136 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Mon Sep 22 10:40:13 2008 @@ -728,9 +728,13 @@ } if (!authorization || stale) { - sofia_reg_auth_challenge(nua, profile, nh, regtype, to_host, stale); - if (regtype == REG_REGISTER && profile->debug) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Requesting Registration from: [%s@%s]\n", to_user, to_host); + if (regtype == REG_REGISTER) { + sofia_reg_auth_challenge(nua, profile, nh, regtype, to_host, stale); + if (profile->debug) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Requesting Registration from: [%s@%s]\n", to_user, to_host); + } + } else { + sofia_reg_auth_challenge(nua, profile, nh, regtype, from_host, stale); } return 1; }
participants (1)
-
Freeswitch SVN