[Asterisk-code-review] [FIX] Problem when the fisrt DTMF have RTP timestamp set to 0 in frame (asterisk[16.9])

Bernard Merindol asteriskteam at digium.com
Wed Apr 8 05:29:58 CDT 2020


Bernard Merindol has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14141 )


Change subject: [FIX] Problem when the fisrt DTMF have RTP timestamp set to 0 in frame
......................................................................

[FIX] Problem when the fisrt DTMF have RTP timestamp set to 0 in frame

Change-Id: I3196803a062dd2daee4938c9a778c3810cb7e504
---
M res/res_rtp_asterisk.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/41/14141/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index bdcce1f..456f1c6 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -5426,7 +5426,7 @@
 
 		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;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14141
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16.9
Gerrit-Change-Id: I3196803a062dd2daee4938c9a778c3810cb7e504
Gerrit-Change-Number: 14141
Gerrit-PatchSet: 1
Gerrit-Owner: Bernard Merindol <bernard.merindol at telnowedge.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200408/3a87e059/attachment.html>


More information about the asterisk-code-review mailing list