FS-9871: [freeswitch-core] DTMF not delivered on B leg of a bridge when A leg has no media #resolve

This commit is contained in:
Anthony Minessale 2016-12-21 16:09:54 -06:00 committed by Mike Jerris
parent bf469f07a7
commit 70121a3edb
1 changed files with 8 additions and 4 deletions

View File

@ -4859,13 +4859,17 @@ static void do_2833(switch_rtp_t *rtp_session)
switch_frame_flag_t flags = 0;
uint32_t samples = rtp_session->samples_per_interval;
if (!rtp_session->last_write_ts) {
return;
}
if (rtp_session->dtmf_data.out_digit_dur > 0) {
int x, loops = 1;
if (!rtp_session->last_write_ts) {
if (rtp_session->timer.timer_interface) {
rtp_session->last_write_ts = rtp_session->timer.samplecount;
} else {
rtp_session->last_write_ts = rtp_session->samples_per_interval;
}
}
rtp_session->dtmf_data.out_digit_sofar += samples;
rtp_session->dtmf_data.out_digit_sub_sofar += samples;