Commit b0f39463 authored by Ghislain MARY's avatar Ghislain MARY

Allow event sending even if the ICE session is not in the Completed state.

parent 900c1964
......@@ -2662,6 +2662,16 @@ void ice_check_list_process(IceCheckList *cl, RtpSession *rtp_session)
}
}
/* Send event if needed. */
if ((cl->session->send_event == TRUE) && (curtime >= cl->session->event_time)) {
OrtpEvent *ev;
ms_error("send_event == TRUE");
cl->session->send_event = FALSE;
ev = ortp_event_new(cl->session->event_value);
ortp_event_get_data(ev)->info.ice_processing_successful = (cl->session->state == IS_Completed);
rtp_session_dispatch_event(rtp_session, ev);
}
if ((cl->session->state == IS_Stopped) || (cl->session->state == IS_Failed)) return;
switch (cl->state) {
......@@ -2671,14 +2681,6 @@ void ice_check_list_process(IceCheckList *cl, RtpSession *rtp_session)
ice_send_keepalive_packets(cl, rtp_session);
cl->keepalive_time = curtime;
}
/* Send event if needed. */
if ((cl->session->send_event == TRUE) && (curtime >= cl->session->event_time)) {
OrtpEvent *ev;
cl->session->send_event = FALSE;
ev = ortp_event_new(cl->session->event_value);
ortp_event_get_data(ev)->info.ice_processing_successful = (cl->session->state == IS_Completed);
rtp_session_dispatch_event(rtp_session, ev);
}
/* No break to be able to respond to connectivity checks. */
case ICL_Running:
/* Check if some retransmissions are needed. */
......
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