]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't log NULL sdp string.
authorMichael Jerris <mike@jerris.com>
Tue, 6 Feb 2007 18:27:02 +0000 (18:27 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 6 Feb 2007 18:27:02 +0000 (18:27 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4136 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index e854a458b34ad9b2e853253c26325f98b6cf61ac..eae5e77b0676a4e3565de4909c52f7c50cb9b53d 100644 (file)
@@ -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),