]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move inside the if.
authorMichael Jerris <mike@jerris.com>
Thu, 14 Sep 2006 23:05:27 +0000 (23:05 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 14 Sep 2006 23:05:27 +0000 (23:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2705 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index ab64703c374f44883bbbcbc35572ba11b5147dd1..7f2658b6fb97e3ff62d61d0874169c223fd0fd48 100644 (file)
@@ -1344,13 +1344,14 @@ static void sip_i_state(int status,
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Channel %s entering state [%s]\n", 
                                                  switch_channel_get_name(channel),
                                                  nua_callstate_name(ss_state));
-       }
 
-       if (r_sdp) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Remote SDP:\n%s\n", r_sdp);                    
-               tech_pvt->remote_sdp_str = switch_core_session_strdup(session, (char *)r_sdp);
+               if (r_sdp) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Remote SDP:\n%s\n", r_sdp);                    
+                       tech_pvt->remote_sdp_str = switch_core_session_strdup(session, (char *)r_sdp);
+               }
        }
 
+
        switch ((enum nua_callstate)ss_state) {
        case nua_callstate_init:
                break;