git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7879
d0543943-73ff-0310-b7d9-
9358b9ac24b2
if (bytes) {
check++;
switch_core_timer_sync(&rtp_session->timer);
+ } else {
+ check = (uint8_t) (switch_core_timer_check(&rtp_session->timer, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS);
}
- check = (uint8_t) (switch_core_timer_check(&rtp_session->timer, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS);
+ }
+
+ if (check) {
+ do_2833(rtp_session);
}
if (bytes && rtp_session->recv_msg.header.version != 2) {
}
}
- if (check) {
- do_2833(rtp_session);
+ if (check || (bytes && !rtp_session->timer.interval)) {
if (!bytes && rtp_session->max_missed_packets) {
if (++rtp_session->missed_count >= rtp_session->max_missed_packets) {
ret = -2;
*flags |= SFF_CNG;
}
- if (bytes > 0) {
- do_2833(rtp_session);
- }
-
ret = (int) bytes;
} else {
ret = -1;