[Asterisk-code-review] res/res_rtp_asterisk: fix skip in rtp sequence numbers after dtmf (asterisk[master])
Torrey Searle
asteriskteam at digium.com
Fri Jan 21 09:25:51 CST 2022
Torrey Searle has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/17921 )
Change subject: res/res_rtp_asterisk: fix skip in rtp sequence numbers after dtmf
......................................................................
res/res_rtp_asterisk: fix skip in rtp sequence numbers after dtmf
When generating dtmfs, asterisk can incorrectly think packet loss
occured during the dtmf generation, resulting in a jump in sequence
numbers when forwarding voice frames resumes. This patch forces
asterisk to re-learn the expected sequence number after each DTMF
to avoid this
ASTERISK-29869 #close
Change-Id: Icc7de3d947b207b82c99d3c327af8095884df853
---
M res/res_rtp_asterisk.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/21/17921/1
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 7024081..0f85a14 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -4359,6 +4359,9 @@
rtp->sending_digit = 0;
rtp->send_digit = 0;
+ /* Re-Learn expected seqno */
+ rtp->expectedseqno = -1;
+
return res;
}
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17921
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Icc7de3d947b207b82c99d3c327af8095884df853
Gerrit-Change-Number: 17921
Gerrit-PatchSet: 1
Gerrit-Owner: Torrey Searle <tsearle at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220121/8f96a0dd/attachment.html>
More information about the asterisk-code-review
mailing list