[Freeswitch-svn] [commit] r7066 - freeswitch/trunk/src/mod/applications/mod_esf

Freeswitch SVN brian at freeswitch.org
Wed Jan 2 19:21:59 EST 2008


Author: brian
Date: Wed Jan  2 19:21:58 2008
New Revision: 7066

Modified:
   freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c

Log:
fix

Modified: freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	Wed Jan  2 19:21:58 2008
@@ -153,11 +153,12 @@
 	}
 
 	if (ready == SEND_TYPE_RTP) {
+		switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET);
 		if (!(rtp_port = switch_rtp_request_port(guess_ip))) {
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "RTP Port Error\n");
 			goto fail;
 		}
-		switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET);
+
 		rtp_session = switch_rtp_new(guess_ip,
 									 rtp_port,
 									 mcast_ip,



More information about the Freeswitch-svn mailing list