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
72360e58
Commit
72360e58
authored
Jul 27, 2012
by
Ghislain MARY
Browse files
Check for ICE mismatch and add the ice-mismatch attribute in the SDP if there is a mismatch.
parent
682e19e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
coreapi/sal_eXosip2_sdp.c
coreapi/sal_eXosip2_sdp.c
+5
-0
No files found.
coreapi/sal_eXosip2_sdp.c
View file @
72360e58
...
...
@@ -250,6 +250,10 @@ static void add_ice_candidates(sdp_message_t *msg, int lineno, const IceCheckLis
const
IceCandidate
*
candidate
;
int
i
;
if
((
ice_check_list_state
(
ice_cl
)
==
ICL_Failed
)
&&
ice_check_list_is_mismatch
(
ice_cl
))
{
sdp_message_a_attribute_add
(
msg
,
lineno
,
osip_strdup
(
"ice-mismatch"
),
NULL
);
return
;
}
for
(
i
=
0
;
i
<
ms_list_size
(
ice_cl
->
local_candidates
);
i
++
)
{
candidate
=
ms_list_nth_data
(
ice_cl
->
local_candidates
,
i
);
switch
(
ice_check_list_state
(
ice_cl
))
{
...
...
@@ -697,6 +701,7 @@ int sdp_to_media_description(sdp_message_t *msg, SalMediaDescription *desc, IceS
}
else
{
ice_session_set_role
(
*
ice_session
,
IR_Controlled
);
}
ice_session_check_mismatch
(
*
ice_session
);
}
if
((
ice_ufrag
!=
NULL
)
&&
(
ice_pwd
!=
NULL
))
{
ice_session_set_remote_credentials
(
*
ice_session
,
ice_ufrag
,
ice_pwd
);
...
...
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