diff --git a/mediastreamer2 b/mediastreamer2 index 5313bf3a5..19c53970a 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 5313bf3a57474411efce3b8f60a8c7190554a619 +Subproject commit 19c53970ac5d4b51d26509611511527aee9c1587 diff --git a/oRTP b/oRTP index 9d03c3aa1..cff27f5c0 160000 --- a/oRTP +++ b/oRTP @@ -1 +1 @@ -Subproject commit 9d03c3aa1643f1cfae32de4abf04dc84ff3ad175 +Subproject commit cff27f5c08c1e7fb8df9567251e8dca35765416f diff --git a/tester/call_tester.c b/tester/call_tester.c index 7e3780279..bd7eec180 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -920,6 +920,7 @@ static void call_paused_resumed(void) { LinphoneCoreManager* marie = linphone_core_manager_new( "marie_rc"); LinphoneCoreManager* pauline = linphone_core_manager_new( "pauline_rc"); LinphoneCall* call_obj; + const rtp_stats_t * stats; CU_ASSERT_TRUE(call(pauline,marie)); call_obj = linphone_core_get_current_call(pauline->lc); @@ -928,16 +929,25 @@ static void call_paused_resumed(void) { CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallPausing,1)); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&marie->stat.number_of_LinphoneCallPausedByRemote,1)); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallPaused,1)); + /*stay in pause a little while in order to generate traffic*/ + wait_for_until(pauline->lc, marie->lc, NULL, 5, 2000); linphone_core_resume_call(pauline->lc,call_obj); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallStreamsRunning,2)); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&marie->stat.number_of_LinphoneCallStreamsRunning,2)); + /*same here: wait a while for a bit of a traffic*/ + wait_for_until(pauline->lc, marie->lc, NULL, 5, 2000); + + /*there should be no loss on this call, hence cumulative loss should be 0*/ + stats = rtp_session_get_stats(call_obj->sessions->rtp_session); + CU_ASSERT_EQUAL(stats->cum_packet_loss, 0); /*just to sleep*/ linphone_core_terminate_all_calls(pauline->lc); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallEnd,1)); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&marie->stat.number_of_LinphoneCallEnd,1)); + linphone_core_manager_destroy(marie); linphone_core_manager_destroy(pauline); }