switch(call->reason){
case LinphoneReasonDeclined:
call->log->status=LinphoneCallDeclined;
-<<<<<<< HEAD
- break;
-=======
break;
->>>>>>> add device identifier api
case LinphoneReasonNotAnswered:
call->log->status=LinphoneCallMissed;
break;
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) {
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);
}
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;