[Freeswitch-svn] [commit] r2705 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Thu Sep 14 19:05:27 EDT 2006


Author: mikej
Date: Thu Sep 14 19:05:27 2006
New Revision: 2705

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
move inside the if.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Thu Sep 14 19:05:27 2006
@@ -1344,12 +1344,13 @@
 		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:



More information about the Freeswitch-svn mailing list