diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 47562f510c6b15cc91376797e09bdac0e553d899..72f46684e1809179a858af8937ec2dbbd7d6fc41 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -7750,7 +7750,7 @@ static struct ast_frame *ast_rtp_read(struct ast_rtp_instance *instance, int rtc } return AST_LIST_FIRST(&frames); - } else if (((abs(seqno - rtp->expectedrxseqno) > 100) && timestamp > rtp->lastividtimestamp) || + } else if ((((seqno - rtp->expectedrxseqno) > 100) && timestamp > rtp->lastividtimestamp) || ast_data_buffer_count(rtp->recv_buffer) == ast_data_buffer_max(rtp->recv_buffer)) { int inserted = 0;