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
a6da440c
Commit
a6da440c
authored
Dec 12, 2014
by
Simon Morlat
Browse files
add test to check absence of SDP in ACK in a scenario of INVITE without SDP.
parent
1cf049ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
tester/call_tester.c
tester/call_tester.c
+21
-0
No files found.
tester/call_tester.c
View file @
a6da440c
...
@@ -914,6 +914,26 @@ static void call_with_no_sdp(void) {
...
@@ -914,6 +914,26 @@ static void call_with_no_sdp(void) {
linphone_core_manager_destroy
(
pauline
);
linphone_core_manager_destroy
(
pauline
);
}
}
static
void
call_with_no_sdp_ack_without_sdp
(
void
){
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
"marie_rc"
);
LinphoneCoreManager
*
pauline
=
linphone_core_manager_new
(
"pauline_rc"
);
LinphoneCall
*
call
;
linphone_core_enable_sdp_200_ack
(
marie
->
lc
,
TRUE
);
linphone_core_invite_address
(
marie
->
lc
,
pauline
->
identity
);
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneCallIncomingReceived
,
1
));
call
=
linphone_core_get_current_call
(
pauline
->
lc
);
if
(
call
){
sal_call_enable_sdp_removal
(
call
->
op
,
TRUE
);
/*this will have the effect that the SDP received in the ACK will be ignored*/
linphone_core_accept_call
(
pauline
->
lc
,
call
);
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneCallError
,
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
);
}
static
bool_t
check_ice
(
LinphoneCoreManager
*
caller
,
LinphoneCoreManager
*
callee
,
LinphoneIceState
state
)
{
static
bool_t
check_ice
(
LinphoneCoreManager
*
caller
,
LinphoneCoreManager
*
callee
,
LinphoneIceState
state
)
{
LinphoneCall
*
c1
,
*
c2
;
LinphoneCall
*
c1
,
*
c2
;
...
@@ -3490,6 +3510,7 @@ test_t call_tests[] = {
...
@@ -3490,6 +3510,7 @@ test_t call_tests[] = {
{
"Early-media call with updated codec"
,
early_media_call_with_codec_update
},
{
"Early-media call with updated codec"
,
early_media_call_with_codec_update
},
{
"Call terminated by caller"
,
call_terminated_by_caller
},
{
"Call terminated by caller"
,
call_terminated_by_caller
},
{
"Call without SDP"
,
call_with_no_sdp
},
{
"Call without SDP"
,
call_with_no_sdp
},
{
"Call without SDP and ACK without SDP"
,
call_with_no_sdp_ack_without_sdp
},
{
"Call paused resumed"
,
call_paused_resumed
},
{
"Call paused resumed"
,
call_paused_resumed
},
{
"Call paused resumed with loss"
,
call_paused_resumed_with_loss
},
{
"Call paused resumed with loss"
,
call_paused_resumed_with_loss
},
{
"Call paused resumed from callee"
,
call_paused_resumed_from_callee
},
{
"Call paused resumed from callee"
,
call_paused_resumed_from_callee
},
...
...
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