Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (14201 => 14202)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c 2009-07-10 20:01:01 UTC (rev 14201)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c 2009-07-10 20:19:20 UTC (rev 14202)
@@ -1555,7 +1555,8 @@
}
if (profile->debug) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Authenticating '%s' with '%s'.\n", profile->username, authentication);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Authenticating '%s' with '%s'.\n",
+ (sip_auth_username && sip_auth_password) ? sip_auth_username : gateway->auth_username, authentication);
}
ss_state = nua_callstate_authenticating;