diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 6deb482c99..2bf5465646 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1500,7 +1500,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ } poll_loop = 1; - rtp_session->missed_count += (poll_sec * 1000 ) / (rtp_session->ms_per_packet / 1000); + rtp_session->missed_count += (poll_sec * 1000 ) / (rtp_session->ms_per_packet ? rtp_session->ms_per_packet : 20 / 1000); bytes = 0; }