提交 abcfd13c authored 作者: Michael Jerris's avatar Michael Jerris

don't log NULL sdp string.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4136 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 608fac92
......@@ -1630,9 +1630,11 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session)
activate_rtp(tech_pvt);
if (tech_pvt->nh) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Local SDP %s:\n%s\n",
switch_channel_get_name(channel),
tech_pvt->local_sdp_str);
if (tech_pvt->local_sdp_str) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Local SDP %s:\n%s\n",
switch_channel_get_name(channel),
tech_pvt->local_sdp_str);
}
nua_respond(tech_pvt->nh, SIP_200_OK,
SIPTAG_CONTACT_STR(tech_pvt->profile->url),
SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论