]> sjero.net Git - linphone/commitdiff
add traces for ICE troubleshooting
authorJehan Monnier <jehan.monnier@linphone.org>
Mon, 3 Sep 2012 16:13:02 +0000 (18:13 +0200)
committerJehan Monnier <jehan.monnier@linphone.org>
Mon, 3 Sep 2012 16:13:15 +0000 (18:13 +0200)
coreapi/linphonecall.c
coreapi/linphonecore.c
coreapi/misc.c

index 786744fb2b27dcf3ee530653ab1f5ea0022a5722..679d2da10ea85c1e110a0ec9c0ac7dbb3ebcc48c 100644 (file)
@@ -521,11 +521,7 @@ void linphone_call_set_state(LinphoneCall *call, LinphoneCallState cstate, const
                        switch(call->reason){
                                case LinphoneReasonDeclined:
                                        call->log->status=LinphoneCallDeclined;
-<<<<<<< HEAD
-                               break;
-=======
                                        break;
->>>>>>> add device identifier api
                                case LinphoneReasonNotAnswered:
                                        call->log->status=LinphoneCallMissed;
                                break;
@@ -1747,6 +1743,7 @@ static void handle_ice_events(LinphoneCall *call, OrtpEvent *ev){
                        ice_session_eliminate_redundant_candidates(call->ice_session);
                        ice_session_choose_default_candidates(call->ice_session);
                } else {
+                       ms_warning("No STUN answer from [%s], disabling ICE",linphone_core_get_stun_server(call->core));
                        linphone_call_delete_ice_session(call);
                }
                switch (call->state) {
index d67ba6d564e1b99fa0fefc4d1710a4bddb0cccb4..e4f35e3873cc4bbdf79468e4533b83c656f09136 100644 (file)
@@ -1903,7 +1903,8 @@ void linphone_core_iterate(LinphoneCore *lc){
                if (call->state==LinphoneCallOutgoingInit && (curtime-call->start_time>=2)){
                        /*start the call even if the OPTIONS reply did not arrive*/
                        if (call->ice_session != NULL) {
-                               /* ICE candidates gathering has not finished yet, proceed with the call without ICE anyway. */
+                               ms_warning("ICE candidates gathering from [%s] has not finished yet, proceed with the call without ICE anyway."
+                                               ,linphone_core_get_stun_server(lc));
                                linphone_call_delete_ice_session(call);
                                linphone_call_stop_media_streams(call);
                        }
index a22bbc1d9f57706c0050cbf988e28afabb051a75..b97f265becd149ead3d28b6b550a1afdb53c61bf 100644 (file)
@@ -611,6 +611,7 @@ int linphone_core_gather_ice_candidates(LinphoneCore *lc, LinphoneCall *call)
                ice_add_local_candidate(video_check_list, "host", local_addr, call->video_port + 1, 2, NULL);
        }
 
+       ms_message("ICE: gathering candidate from [%s]",server);
        /* Gather local srflx candidates. */
        ice_session_gather_candidates(call->ice_session, ss, ss_len);
        return 0;