]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11675: RTCP NACK at start of call too
authorDragos Oancea <dragos@signalwire.com>
Wed, 27 Feb 2019 18:27:25 +0000 (18:27 +0000)
committerDragos Oancea <dragos@signalwire.com>
Thu, 6 Jun 2019 16:50:45 +0000 (16:50 +0000)
src/switch_rtp.c

index 991cfa2ebd083f60df057749f67d7ebd39a4031d..1707cee6ec44550376675da9b174cffef53243b7 100644 (file)
@@ -2073,6 +2073,10 @@ static int check_rtcp_and_ice(switch_rtp_t *rtp_session)
 
                        cur_nack[nack_ttl++] = nack;
                }
+               if (nack_ttl) {
+                       rtcp_ok = 1;
+                       rtcp_fb = 1;
+               }
        }
 
 
@@ -2080,7 +2084,7 @@ static int check_rtcp_and_ice(switch_rtp_t *rtp_session)
        if (rtp_session->rtcp_sent_packets < 4) {
                rate = 4000;
        } else  {
-               if (rtp_session->pli_count || rtp_session->fir_count || nack_ttl || rtp_session->tmmbr || rtp_session->tmmbn) {
+               if (rtp_session->pli_count || rtp_session->fir_count || rtp_session->tmmbr || rtp_session->tmmbn) {
                        //switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_ERROR, "MARK BW/FIR ETC %d %d\n", rtp_session->pli_count, rtp_session->fir_count);
                        rtcp_ok = 1;
                        rtcp_fb = 1;