FST_TEARDOWN_BEGIN()
{
+ switch_sleep(200 * 1000);
}
FST_TEARDOWN_END()
fst_check(status == SWITCH_STATUS_SUCCESS);
/*test is considered PASSED if we get a session*/
- if (!session) {
- fst_requires(session);
+ fst_check(session);
+ if (session) {
+ switch_sleep(1000 * 1000);
+ channel = switch_core_session_get_channel(session);
+ switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
+ switch_core_session_rwunlock(session);
}
- switch_sleep(1000 * 1000);
-
- channel = switch_core_session_get_channel(session);
- switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
- switch_core_session_rwunlock(session);
switch_safe_free(to);
/* sipp should timeout, attempt kill, just in case.*/
kill_sipp();
#include "../mod_sofia.c"
static int timeout_sec = 10;
+static switch_interval_time_t delay_start_ms = 5000;
FST_CORE_EX_BEGIN("./conf", SCF_VG | SCF_USE_SQL)
FST_SETUP_BEGIN()
{
+ /* Give mod_sofia time to spinup profile threads */
+ if (delay_start_ms) {
+ switch_sleep(delay_start_ms * 1000);
+ delay_start_ms = 0;
+ }
}
FST_SETUP_END()
fst_check(status == SWITCH_STATUS_SUCCESS);
if (session) {
channel = switch_core_session_get_channel(session);
- fst_requires(channel);
switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
switch_core_session_rwunlock(session);
switch_sleep(1 * 1000 * 1000);