Commit f428f3f0 authored by Ghislain MARY's avatar Ghislain MARY

ICE API change.

parent 5b21221a
......@@ -488,11 +488,11 @@ MS2_PUBLIC void ice_session_eliminate_redundant_candidates(IceSession *session);
MS2_PUBLIC void ice_session_choose_default_candidates(IceSession *session);
/**
* Pair the local and the remote candidates for an ICE session.
* Pair the local and the remote candidates for an ICE session and start sending connectivity checks.
*
* @param session A pointer to a session
*/
MS2_PUBLIC void ice_session_pair_candidates(IceSession *session);
MS2_PUBLIC void ice_session_start_connectivity_checks(IceSession *session);
/**
* Core ICE check list processing.
......
......@@ -1729,7 +1729,7 @@ static void ice_check_list_pair_candidates(IceCheckList *cl, IceSession *session
ms_list_for_each2(cl->check_list, (void (*)(void*,void*))ice_generate_pair_foundations_list, &cl->foundations);
}
void ice_session_pair_candidates(IceSession *session)
static void ice_session_pair_candidates(IceSession *session)
{
IceCheckList *cl;
......@@ -1740,10 +1740,15 @@ void ice_session_pair_candidates(IceSession *session)
ice_dump_candidate_pairs_foundations(cl);
ice_dump_candidate_pairs(cl);
ice_dump_check_list(cl);
session->state = IS_Running;
}
}
void ice_session_start_connectivity_checks(IceSession *session)
{
ice_session_pair_candidates(session);
session->state = IS_Running;
}
/******************************************************************************
* CONCLUDE ICE PROCESSING *
......
......@@ -727,7 +727,7 @@ void setup_media_streams(MediastreamDatas* args) {
ice_session_set_base_for_srflx_candidates(args->ice_session);
ice_session_compute_candidates_foundations(args->ice_session);
ice_session_choose_default_candidates(args->ice_session);
ice_session_pair_candidates(args->ice_session);
ice_session_start_connectivity_checks(args->ice_session);
OrtpNetworkSimulatorParams params={0};
if (args->netsim_bw>0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment