From: Dragos Oancea Date: Wed, 27 Feb 2019 06:04:11 +0000 (+0000) Subject: FS-11635: decrement RTCP counters on duplicate received NACKed packet which is droppe... X-Git-Tag: v1.8.6~1^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=133b42b1e9132ab2602f9817fbc5d77737172994;p=thirdparty%2Ffreeswitch.git FS-11635: decrement RTCP counters on duplicate received NACKed packet which is dropped anyway (affects cum_lost calculation) --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 44494040bd..991cfa2ebd 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -6146,6 +6146,10 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t stat = 0; sbytes = 0; *bytes = 0; + if (rtp_session->stats.rtcp.pkt_count) { + rtp_session->stats.rtcp.period_pkt_count--; + rtp_session->stats.rtcp.pkt_count--; + } switch_mutex_unlock(rtp_session->ice_mutex); goto more; }