mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
sleep when loading odbc profiles to prevent connection races in underlying libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13251 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -2664,8 +2664,13 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (profile->sipip) {
|
if (profile->sipip) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Started Profile %s [%s]\n", profile->name, url);
|
|
||||||
launch_sofia_profile_thread(profile);
|
launch_sofia_profile_thread(profile);
|
||||||
|
if (profile->odbc_dsn) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Connecting ODBC Profile %s [%s]\n", profile->name, url);
|
||||||
|
switch_yield(1000000);
|
||||||
|
} else {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Started Profile %s [%s]\n", profile->name, url);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Unable to start Profile %s due to no configured sip-ip\n", profile->name);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Unable to start Profile %s due to no configured sip-ip\n", profile->name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user