]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11841 [core] The ts of received rtp packages for DTMF is same. so add SFF_RFC2833...
authorLiyang <liyang@x-y-t.cn>
Tue, 14 May 2019 07:32:59 +0000 (15:32 +0800)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 20:29:32 +0000 (00:29 +0400)
src/switch_rtp.c

index 02ee86c82f3d455e6e2e3482573f0c3cd79ca485..98e621882e851bb1afc1320e0627a1be3952ec05 100644 (file)
@@ -8431,7 +8431,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
 #ifdef DEBUG_TS_ROLLOVER
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "WRITE TS LAST:%u THIS:%u DELTA:%u\n", rtp_session->last_write_ts, this_ts, ts_delta);
 #endif
-               if (ts_delta == 0 || !switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf) {
+               if ((!(flags && *flags & SFF_RFC2833) && ts_delta == 0) || !switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf) {
                        send = 0;
                }
        }