don't log NULL sdp string.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4136 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-02-06 18:27:02 +00:00
parent 608fac923a
commit abcfd13c9f
1 changed files with 5 additions and 3 deletions

View File

@ -1630,9 +1630,11 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session)
activate_rtp(tech_pvt); activate_rtp(tech_pvt);
if (tech_pvt->nh) { if (tech_pvt->nh) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Local SDP %s:\n%s\n", if (tech_pvt->local_sdp_str) {
switch_channel_get_name(channel), switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Local SDP %s:\n%s\n",
tech_pvt->local_sdp_str); switch_channel_get_name(channel),
tech_pvt->local_sdp_str);
}
nua_respond(tech_pvt->nh, SIP_200_OK, nua_respond(tech_pvt->nh, SIP_200_OK,
SIPTAG_CONTACT_STR(tech_pvt->profile->url), SIPTAG_CONTACT_STR(tech_pvt->profile->url),
SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str), SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),