]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/res_rtp_asterisk: fix skip in rtp sequence numbers after dtmf
authorTorrey Searle <tsearle@voxbone.com>
Thu, 20 Jan 2022 12:56:27 +0000 (13:56 +0100)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 31 Jan 2022 13:58:20 +0000 (07:58 -0600)
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

res/res_rtp_asterisk.c

index da50072dce2321689418ad678dba71315270a8bb..31b9dc8041c33e8ecc002e53c479464e2a7c6f61 100644 (file)
@@ -4359,6 +4359,9 @@ cleanup:
        rtp->sending_digit = 0;
        rtp->send_digit = 0;
 
+       /* Re-Learn expected seqno */
+       rtp->expectedseqno = -1;
+
        return res;
 }