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

Freeswitch SVN mikej at freeswitch.org
Tue Oct 31 16:46:43 EST 2006


Author: mikej
Date: Tue Oct 31 16:46:42 2006
New Revision: 3247

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

Log:
msvc doesn't like = {}, and is a bit pickier on unreachable code.

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	Tue Oct 31 16:46:42 2006
@@ -77,7 +77,7 @@
 
 extern su_log_t tport_log[];
 
-static switch_frame_t silence_frame = {};
+static switch_frame_t silence_frame = { 0 };
 static char silence_data[13] = "";
 
 
@@ -1051,7 +1051,9 @@
 				for (m = sdp->sdp_media; m ; m = m->m_next) {
 					tech_pvt->proxy_sdp_audio_ip = switch_core_session_strdup(tech_pvt->session, (char *)sdp->sdp_connection->c_address);
 					tech_pvt->proxy_sdp_audio_port = (switch_port_t)m->m_port;
-					break;
+					if (tech_pvt->proxy_sdp_audio_ip && tech_pvt->proxy_sdp_audio_port) {
+						break;
+					}
 				}
 			}
 			sdp_parser_free(parser);



More information about the Freeswitch-svn mailing list