From 8253bab19d23fccd65fee2f1ba3cbe8f1f76f992 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 17 Jul 2013 12:46:10 -0500 Subject: [PATCH] send 2 firs to make sure it works --- src/switch_rtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 7b41987e84..785d51fbb0 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -5273,7 +5273,9 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_zerocopy_read_frame(switch_rtp_t *rtp } if (rtp_session->fir_countdown) { - if (--rtp_session->fir_countdown == FIR_COUNTDOWN / 2) { + rtp_session->fir_countdown--; + + if (rtp_session->fir_countdown == FIR_COUNTDOWN / 2 || rtp_session->fir_countdown == 0) { send_fir(rtp_session); //send_pli(rtp_session); }