mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
Merge "chan_sip: Fix lastrtprx always updated" into 13
This commit is contained in:
@@ -8590,7 +8590,9 @@ static struct ast_frame *sip_read(struct ast_channel *ast)
|
||||
|
||||
sip_pvt_lock(p);
|
||||
fr = sip_rtp_read(ast, p, &faxdetected);
|
||||
if (fr && fr->frametype != AST_FRAME_NULL) {
|
||||
p->lastrtprx = time(NULL);
|
||||
}
|
||||
|
||||
/* If we detect a CNG tone and fax detection is enabled then send us off to the fax extension */
|
||||
if (faxdetected && ast_test_flag(&p->flags[1], SIP_PAGE2_FAX_DETECT_CNG)) {
|
||||
|
Reference in New Issue
Block a user