From 27a2b6ee44fd0cb6f50204003a0c92e2809b5eff Mon Sep 17 00:00:00 2001
From: Brian West <brian@freeswitch.org>
Date: Thu, 3 Jan 2008 00:21:58 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7066 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 src/mod/applications/mod_esf/mod_esf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mod/applications/mod_esf/mod_esf.c b/src/mod/applications/mod_esf/mod_esf.c
index 337c2434ea..fc9484f6c9 100644
--- a/src/mod/applications/mod_esf/mod_esf.c
+++ b/src/mod/applications/mod_esf/mod_esf.c
@@ -153,11 +153,12 @@ SWITCH_STANDARD_APP(bcast_function)
 	}
 
 	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,