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
1adb23eb
Commit
1adb23eb
authored
Oct 03, 2012
by
Ghislain MARY
Browse files
Add missing updates of ICE state in call statistics.
parent
63c5dfed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
coreapi/linphonecall.c
coreapi/linphonecall.c
+2
-0
No files found.
coreapi/linphonecall.c
View file @
1adb23eb
...
...
@@ -277,6 +277,7 @@ static SalMediaDescription *_create_local_media_description(LinphoneCore *lc, Li
update_media_description_from_stun
(
md
,
&
call
->
ac
,
&
call
->
vc
);
if
(
call
->
ice_session
!=
NULL
)
{
linphone_core_update_local_media_description_from_ice
(
md
,
call
->
ice_session
);
linphone_core_update_ice_state_in_call_stats
(
call
);
}
linphone_address_destroy
(
addr
);
return
md
;
...
...
@@ -1850,6 +1851,7 @@ static void handle_ice_events(LinphoneCall *call, OrtpEvent *ev){
}
}
else
if
(
evt
==
ORTP_EVENT_ICE_LOSING_PAIRS_COMPLETED
)
{
linphone_core_start_accept_call_update
(
call
->
core
,
call
);
linphone_core_update_ice_state_in_call_stats
(
call
);
}
else
if
(
evt
==
ORTP_EVENT_ICE_RESTART_NEEDED
)
{
ice_session_restart
(
call
->
ice_session
);
ice_session_set_role
(
call
->
ice_session
,
IR_Controlling
);
...
...
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