mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Revert "RTP: reset DTMF last seqno/timestamp on voice packet with marker bit"
This reverts commit 331c906c48
.
Pending resolution of ASTERISK_28200
Change-Id: Ie7172707b603c1da3f200613bd4473335af75128
This commit is contained in:
@@ -6438,16 +6438,6 @@ static struct ast_frame *ast_rtp_interpret(struct ast_rtp_instance *instance, st
|
|||||||
switch (ast_format_get_type(rtp->f.subclass.format)) {
|
switch (ast_format_get_type(rtp->f.subclass.format)) {
|
||||||
case AST_MEDIA_TYPE_AUDIO:
|
case AST_MEDIA_TYPE_AUDIO:
|
||||||
rtp->f.frametype = AST_FRAME_VOICE;
|
rtp->f.frametype = AST_FRAME_VOICE;
|
||||||
|
|
||||||
/* 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 (mark) {
|
|
||||||
rtp->last_seqno = 0;
|
|
||||||
rtp->last_end_timestamp = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case AST_MEDIA_TYPE_VIDEO:
|
case AST_MEDIA_TYPE_VIDEO:
|
||||||
rtp->f.frametype = AST_FRAME_VIDEO;
|
rtp->f.frametype = AST_FRAME_VIDEO;
|
||||||
|
Reference in New Issue
Block a user