From: Michael Jerris Date: Fri, 10 Jul 2009 20:19:20 +0000 (+0000) Subject: fix debug message X-Git-Tag: v1.0.4~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff44ec84824051050f95d2a91d4c3e51c63cd5f6;p=thirdparty%2Ffreeswitch.git fix debug message git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14202 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 40e118ec58..93f87d1f41 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1555,7 +1555,8 @@ void sofia_reg_handle_sip_r_challenge(int status, } 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;