]> sjero.net Git - linphone/commitdiff
Handle ICE running state in call statistics update.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 4 Oct 2012 15:03:11 +0000 (17:03 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 4 Oct 2012 15:05:02 +0000 (17:05 +0200)
coreapi/misc.c

index 94110fc846f4a1b31de4379c0c50719f89784f40..7367fc517fa8c789c39e2a53f678017c5e849918 100644 (file)
@@ -689,6 +689,11 @@ void linphone_core_update_ice_state_in_call_stats(LinphoneCall *call)
                                call->stats[LINPHONE_CALL_STATS_VIDEO].ice_state = LinphoneIceStateFailed;
                        }
                }
+       } else if (session_state == IS_Running) {
+               call->stats[LINPHONE_CALL_STATS_AUDIO].ice_state = LinphoneIceStateInProgress;
+               if (call->params.has_video && (video_check_list != NULL)) {
+                       call->stats[LINPHONE_CALL_STATS_VIDEO].ice_state = LinphoneIceStateInProgress;
+               }
        } else {
                call->stats[LINPHONE_CALL_STATS_AUDIO].ice_state = LinphoneIceStateFailed;
                if (call->params.has_video && (video_check_list != NULL)) {