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
This commit is contained in:
Torrey Searle 2022-01-20 13:56:27 +01:00 committed by George Joseph
parent 3260847e4f
commit ed95dc3282
1 changed files with 3 additions and 0 deletions

View File

@ -4359,6 +4359,9 @@ cleanup:
rtp->sending_digit = 0;
rtp->send_digit = 0;
/* Re-Learn expected seqno */
rtp->expectedseqno = -1;
return res;
}