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
b0f02153
Commit
b0f02153
authored
Jan 23, 2016
by
Simon Morlat
Browse files
fix bug in test, that should wait ICE reINVITE to complete.
parent
cd6dfcab
Changes
2
Hide whitespace changes
Inline
Side-by-side
mediastreamer2
@
6f6ca875
Subproject commit 6
87595aef470a3ee2b83574c04c36b92a99110e8
Subproject commit 6
f6ca87556fd8fe62ee463457fc4c305d3e6267c
tester/call_tester.c
View file @
b0f02153
...
...
@@ -5493,7 +5493,12 @@ static void _call_with_network_switch(bool_t use_ice, bool_t with_socket_refresh
if
(
!
call_ok
)
goto
end
;
wait_for_until
(
marie
->
lc
,
pauline
->
lc
,
NULL
,
0
,
2000
);
if
(
use_ice
)
BC_ASSERT_TRUE
(
check_ice
(
pauline
,
marie
,
LinphoneIceStateHostConnection
));
if
(
use_ice
)
{
BC_ASSERT_TRUE
(
check_ice
(
pauline
,
marie
,
LinphoneIceStateHostConnection
));
/*wait for ICE reINVITE to complete*/
BC_ASSERT_TRUE
(
wait_for
(
marie
->
lc
,
pauline
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneCallStreamsRunning
,
2
));
BC_ASSERT_TRUE
(
wait_for
(
marie
->
lc
,
pauline
->
lc
,
&
marie
->
stat
.
number_of_LinphoneCallStreamsRunning
,
2
));
}
/*marie looses the network and reconnects*/
linphone_core_set_network_reachable
(
marie
->
lc
,
FALSE
);
...
...
@@ -5560,8 +5565,12 @@ static void call_with_sip_and_rtp_independant_switches(){
if
(
!
call_ok
)
goto
end
;
wait_for_until
(
marie
->
lc
,
pauline
->
lc
,
NULL
,
0
,
2000
);
if
(
use_ice
)
BC_ASSERT_TRUE
(
check_ice
(
pauline
,
marie
,
LinphoneIceStateHostConnection
));
if
(
use_ice
)
{
BC_ASSERT_TRUE
(
check_ice
(
pauline
,
marie
,
LinphoneIceStateHostConnection
));
/*wait for ICE reINVITE to complete*/
BC_ASSERT_TRUE
(
wait_for
(
marie
->
lc
,
pauline
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneCallStreamsRunning
,
2
));
BC_ASSERT_TRUE
(
wait_for
(
marie
->
lc
,
pauline
->
lc
,
&
marie
->
stat
.
number_of_LinphoneCallStreamsRunning
,
2
));
}
/*marie looses the SIP network and reconnects*/
linphone_core_set_sip_network_reachable
(
marie
->
lc
,
FALSE
);
wait_for_until
(
marie
->
lc
,
pauline
->
lc
,
NULL
,
0
,
1000
);
...
...
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