]> git.ipfire.org Git - thirdparty/asterisk.git/commit
RTP: need to reset DTMF last seqno/timestamp on voice packet with marker bit
authorAlexei Gradinari <alex2grad@gmail.com>
Mon, 12 Nov 2018 23:12:56 +0000 (18:12 -0500)
committerAlexei Gradinari <alex2grad@gmail.com>
Mon, 12 Nov 2018 23:12:56 +0000 (18:12 -0500)
commitcf620ce0f6dc4a7ef713dc85b4c2610b614cd647
treef692082a52d1933afe862ef8e024ac039a8ee500
parent6aea312a55888419c32253df45909354467c009d
RTP: need to reset DTMF last seqno/timestamp on voice packet with marker bit

The marker bit set on the voice packet indicates the start
of a new stream and a new time stamp.
Need to reset the DTMF last sequence number and the timestamp
of the last END packet.

If the new time stamp is lower then the timestamp of the last DTMF END packet
the asterisk drops all DTMF frames as out of order.

This bug was caught using Cisco ip-phone SPA50X and codec g722.
On SIP session update the SPA50X resets stream indicating it with market bit
and a new timestamp is twice smaller then the previous.

ASTERISK-28162 #close

Change-Id: If9c5742158fa836ad549713a9814d46a5d2b1620
res/res_rtp_asterisk.c