Skip to content
Snippets Groups Projects
Commit 4f006729 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "chan_sip: Fix lastrtprx always updated"

parents 9fc83f8f 957df733
Branches
Tags
No related merge requests found
......@@ -8595,7 +8595,9 @@ static struct ast_frame *sip_read(struct ast_channel *ast)
 
sip_pvt_lock(p);
fr = sip_rtp_read(ast, p, &faxdetected);
p->lastrtprx = time(NULL);
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)) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment