From: bernard merindol Date: Wed, 8 Apr 2020 10:29:42 +0000 (+0200) Subject: res_rtp_asterisk.c: Check for first DTMF having timestamp set to 0 X-Git-Tag: 17.4.0-rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7544e6d095c975e2b780e63ca6c3016bf95c9cca;p=thirdparty%2Fasterisk.git res_rtp_asterisk.c: Check for first DTMF having timestamp set to 0 When the first DTMF receive in RF2833 codec have TimeStamp at 0 is not processed. ASTERISK-28812 Change-Id: I3196803a062dd2daee4938c9a778c3810cb7e504 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 739b17b778..4fc42177ce 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -5492,7 +5492,7 @@ static void process_dtmf_rfc2833(struct ast_rtp_instance *instance, unsigned cha if (event_end & 0x80) { /* End event */ - if ((rtp->last_seqno != seqno) && (timestamp > rtp->last_end_timestamp)) { + if ((rtp->last_seqno != seqno) && ((timestamp > rtp->last_end_timestamp) || ((timestamp == 0) && (rtp->last_end_timestamp == 0)))) { rtp->last_end_timestamp = timestamp; rtp->dtmf_duration = new_duration; rtp->resp = resp;