Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
e6500c17
Commit
e6500c17
authored
Mar 12, 2015
by
Simon Morlat
Browse files
fix crash
parent
902fc4f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
mediastreamer2
@
2be165a1
Subproject commit
82f9cf317da9199454f722f37a493c3a228876cc
Subproject commit
2be165a129a174a6b9a51574aee85f90d4f38084
oRTP
@
3b0892f8
Subproject commit 3
c10c678342f7c2ca2d49537b86aa81b098e6110
Subproject commit 3
b0892f87fecbd7d3e2b34b381527ab1d7e59a59
tester/call_tester.c
View file @
e6500c17
...
...
@@ -1216,33 +1216,35 @@ static void call_paused_resumed_with_loss(void) {
CU_ASSERT_TRUE
(
call
(
pauline
,
marie
));
call_pauline
=
linphone_core_get_current_call
(
pauline
->
lc
);
rtp_session_enable_network_simulation
(
call_pauline
->
audiostream
->
ms
.
sessions
.
rtp_session
,
&
params
);
/*generate some traffic*/
wait_for_until
(
pauline
->
lc
,
marie
->
lc
,
NULL
,
5
,
6000
);
CHECK_CURRENT_LOSS_RATE
();
/*pause call*/
linphone_core_pause_call
(
pauline
->
lc
,
call_pauline
);
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
,
5000
);
CHECK_CURRENT_LOSS_RATE
();
/*resume*/
linphone_core_resume_call
(
pauline
->
lc
,
call_pauline
);
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
));
wait_for_until
(
pauline
->
lc
,
marie
->
lc
,
NULL
,
5
,
6000
);
if
(
call_pauline
){
rtp_session_enable_network_simulation
(
call_pauline
->
audiostream
->
ms
.
sessions
.
rtp_session
,
&
params
);
/*generate some traffic*/
wait_for_until
(
pauline
->
lc
,
marie
->
lc
,
NULL
,
5
,
6000
);
CHECK_CURRENT_LOSS_RATE
();
/*pause call*/
linphone_core_pause_call
(
pauline
->
lc
,
call_pauline
);
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
,
5000
);
CHECK_CURRENT_LOSS_RATE
();
/*resume*/
linphone_core_resume_call
(
pauline
->
lc
,
call_pauline
);
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
));
wait_for_until
(
pauline
->
lc
,
marie
->
lc
,
NULL
,
5
,
6000
);
/*since stats are NOT totally reset during pause, the stats->packet_recv is computed from
the start of call. This test ensures that the loss rate is consistent during the entire call.*/
CHECK_CURRENT_LOSS_RATE
();
linphone_core_terminate_all_calls
(
marie
->
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
));
/*since stats are NOT totally reset during pause, the stats->packet_recv is computed from
the start of call. This test ensures that the loss rate is consistent during the entire call.*/
CHECK_CURRENT_LOSS_RATE
();
linphone_core_terminate_all_calls
(
marie
->
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment