diff --git a/tester/offeranswer_tester.c b/tester/offeranswer_tester.c index 78b612c44..15b9f61d7 100644 --- a/tester/offeranswer_tester.c +++ b/tester/offeranswer_tester.c @@ -180,12 +180,12 @@ static void profile_call_base(bool_t avpf1 }else { ms_message("Unsupported [%s] encryption type, cannot test",linphone_media_encryption_to_string(srtp2)); goto end; - } BC_ASSERT_TRUE(call(marie, pauline)); BC_ASSERT_TRUE(wait_for(marie->lc, pauline->lc, &marie->stat.number_of_LinphoneCallStreamsRunning, 1)); BC_ASSERT_TRUE(wait_for(marie->lc, pauline->lc, &pauline->stat.number_of_LinphoneCallStreamsRunning, 1)); + wait_for_until(marie->lc, pauline->lc, NULL, 0, 1000); /*wait 1 second for streams to start flowing*/ if (linphone_core_get_current_call(marie->lc)) { params = linphone_call_get_current_params(linphone_core_get_current_call(marie->lc)); BC_ASSERT_STRING_EQUAL(linphone_call_params_get_rtp_profile(params), expected_profile);