From: Anthony Minessale Date: Mon, 1 Feb 2016 22:23:36 +0000 (-0600) Subject: FS-8802 #resolve [RTP stops sending audio when sent timestamp rolls over] X-Git-Tag: v1.6.7~2^2~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60bd4bec3886de2de872f9f4dea456d636bdc5fa;p=thirdparty%2Ffreeswitch.git FS-8802 #resolve [RTP stops sending audio when sent timestamp rolls over] --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 2fea561191..0232c32087 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -7405,8 +7405,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; } }