]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8802 #resolve [RTP stops sending audio when sent timestamp rolls over]
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Feb 2016 22:23:36 +0000 (16:23 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Feb 2016 22:24:31 +0000 (16:24 -0600)
src/switch_rtp.c

index 677bd00c537e7ab6492082f51a4dcaa26dfcbc12..191b089978be15e7c29432f14648820597c81377 100644 (file)
@@ -6661,8 +6661,8 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
                        rtp_session->flags[SWITCH_RTP_FLAG_RESET] = 1;
                }
 
-               if (!switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf || !this_ts || 
-                       (!rtp_session->flags[SWITCH_RTP_FLAG_RESET] && this_ts < rtp_session->last_write_ts)) {
+               if (!switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf ||
+                       (!rtp_session->flags[SWITCH_RTP_FLAG_RESET] && this_ts > rtp_session->one_second && this_ts < rtp_session->last_write_ts)) {
                        send = 0;
                }
        }