ICE working without stun server.

This commit is contained in:
Ghislain MARY 2016-03-08 17:30:20 +01:00
parent d72dfb9138
commit ae1255a4be
2 changed files with 5 additions and 2 deletions

View file

@ -685,6 +685,11 @@ int linphone_core_gather_ice_candidates(LinphoneCore *lc, LinphoneCall *call){
/* Gather local srflx candidates. */
ice_session_gather_candidates(call->ice_session, ai->ai_addr, (socklen_t)ai->ai_addrlen);
return 1;
} else {
ms_message("ICE: bypass candidates gathering");
ice_session_compute_candidates_foundations(call->ice_session);
ice_session_eliminate_redundant_candidates(call->ice_session);
ice_session_choose_default_candidates(call->ice_session);
}
return 0;
}

View file

@ -6032,7 +6032,6 @@ static void call_with_ice_with_default_candidate_not_stun(void){
}
static void call_with_ice_without_stun(void){
#if GHISLAIN_CAN_MAKE_THIS_TEST_TO_WORK
LinphoneCoreManager * marie = linphone_core_manager_new( "marie_rc");
LinphoneCoreManager *pauline = linphone_core_manager_new(transport_supported(LinphoneTransportTls) ? "pauline_rc" : "pauline_tcp_rc");
@ -6042,7 +6041,6 @@ static void call_with_ice_without_stun(void){
linphone_core_manager_destroy(marie);
linphone_core_manager_destroy(pauline);
#endif
}
static void call_with_zrtp_configured_calling_side(void) {