]> sjero.net Git - linphone/commitdiff
Use average round trip time for edge detection instead of ICE gathering duration.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 11 Oct 2012 06:55:46 +0000 (08:55 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 11 Oct 2012 07:07:56 +0000 (09:07 +0200)
coreapi/linphonecall.c

index fa58bb465023c8938a248c17197a3951944c7822..d0667251d9b6a4c754fb455b0ebe0afb718aea57 100644 (file)
@@ -1819,9 +1819,8 @@ static void handle_ice_events(LinphoneCall *call, OrtpEvent *ev){
                        ice_session_compute_candidates_foundations(call->ice_session);
                        ice_session_eliminate_redundant_candidates(call->ice_session);
                        ice_session_choose_default_candidates(call->ice_session);
-                       ping_time = ice_session_gathering_duration(call->ice_session);
+                       ping_time = ice_session_average_gathering_round_trip_time(call->ice_session);
                        if (ping_time >=0) {
-                               ping_time /= ice_session_nb_check_lists(call->ice_session);
                                call->ping_time=ping_time;
                        }
                } else {