From: shaileshplivo Date: Thu, 22 Dec 2016 17:07:51 +0000 (+0000) Subject: FS-9876 switch_rtp this fix issue of rtcp lost packet count X-Git-Tag: v1.8.0~971^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8351e001c726e0fc741a4d43adffa56f109eb65;p=thirdparty%2Ffreeswitch.git FS-9876 switch_rtp this fix issue of rtcp lost packet count --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 6e9e7d1697..42b2f2b655 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -5579,6 +5579,11 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t rtp_session->last_read_time = now; } + if(*bytes && rtp_session->has_rtp && rtp_session->flags[SWITCH_RTP_FLAG_ENABLE_RTCP]){ + rtcp_stats(rtp_session); + } + + if (!rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA] && !rtp_session->flags[SWITCH_RTP_FLAG_UDPTL] && !rtp_session->flags[SWITCH_RTP_FLAG_VIDEO] && *bytes && rtp_session->last_rtp_hdr.pt != rtp_session->recv_te && ts && !rtp_session->jb && !rtp_session->pause_jb && jb_valid(rtp_session) && ts == rtp_session->last_cng_ts) { @@ -5729,9 +5734,6 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t - if (rtp_session->flags[SWITCH_RTP_FLAG_ENABLE_RTCP]) { - rtcp_stats(rtp_session); - } }