FS-11675: RTCP NACK at start of call too

This commit is contained in:
Dragos Oancea 2019-02-27 18:27:25 +00:00
parent 133b42b1e9
commit 99bd3b3c6e
1 changed files with 5 additions and 1 deletions

View 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;