When I end a blocking call, and if I call  rtp_session_destroy(session),

In the next session, I'm not receiving the incoming packets, and it is becoz it is waiting in the following function code and my calling thread blocks,


if (TIME_IS_STRICTLY_NEWER_THAN (packet_time, sched->time_))
               {
wait_point_wakeup_at(&session->recv_wp,packet_time, (session->flags & RTP_SESSION_BLOCKING_MODE)!=0);
                       session_set_clr(&sched->r_sessions,session);
               }


exact function is,

void wait_point_wakeup_at(WaitPoint *wp, uint32_t t, bool_t dosleep){
       wp->time=t;
       wp->wakeup=TRUE;
       if (dosleep) ortp_cond_wait(&wp->cond,&wp->lock);
}

I guess once the session is destroyed, the ortp_cond_wait must release condition.

Please help.

Regards,
Kannaiyan



_______________________________________________
Linphone-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/linphone-users

Reply via email to