From: Anthony Minessale Date: Mon, 2 Apr 2012 21:01:54 +0000 (-0500) Subject: fix race condition where network lists are not created yet so nat detection does... X-Git-Tag: v1.2-rc1~19^2^2~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=139dc3e34e98f7fb3159b9232d1057234b7d986e;p=thirdparty%2Ffreeswitch.git fix race condition where network lists are not created yet so nat detection does not work in sofia during startup --- diff --git a/src/switch_core.c b/src/switch_core.c index 9b876d8458..4eeb02e447 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1875,6 +1875,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t runtime.runlevel++; switch_core_set_signal_handlers(); + switch_load_network_lists(SWITCH_FALSE); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Bringing up environment.\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Loading Modules.\n"); @@ -1884,7 +1885,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t return SWITCH_STATUS_GENERR; } - switch_load_network_lists(SWITCH_FALSE); + switch_load_core_config("post_load_switch.conf");