[Freeswitch-trunk] [commit] r13532 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Mon Jun 1 11:28:19 PDT 2009


Author: brian
Date: Mon Jun  1 13:28:19 2009
New Revision: 13532

Log:
 moving init up so we have it in pre process vars 

Modified:
   freeswitch/trunk/src/switch_core.c

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Mon Jun  1 13:28:19 2009
@@ -1128,8 +1128,6 @@
 	runtime.flags = flags;
 	runtime.sps_total = 30;
 
-	
-
 	switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET);
 	switch_core_set_variable("local_ip_v4", guess_ip);
 	switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET6);
@@ -1139,6 +1137,8 @@
 
 	switch_event_init(runtime.memory_pool);
 
+	switch_nat_init(runtime.memory_pool);
+
 	if (switch_xml_init(runtime.memory_pool, err) != SWITCH_STATUS_SUCCESS) {
 		apr_terminate();
 		return SWITCH_STATUS_MEMERR;
@@ -1161,7 +1161,6 @@
 	switch_scheduler_task_thread_start();
 
 	switch_rtp_init(runtime.memory_pool);
-	switch_nat_init(runtime.memory_pool);
 
 	runtime.running = 1;
 



More information about the Freeswitch-trunk mailing list