Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 346695) +++ channels/chan_sip.c (working copy) @@ -7359,18 +7359,21 @@ static struct ast_frame *sip_rtp_read(struct ast_c switch(ast->fdno) { case 0: f = ast_rtp_instance_read(p->rtp, 0); /* RTP Audio */ + p->lastrtprx = time(NULL); break; case 1: f = ast_rtp_instance_read(p->rtp, 1); /* RTCP Control Channel */ break; case 2: f = ast_rtp_instance_read(p->vrtp, 0); /* RTP Video */ + p->lastrtprx = time(NULL); break; case 3: f = ast_rtp_instance_read(p->vrtp, 1); /* RTCP Control Channel for video */ break; case 4: f = ast_rtp_instance_read(p->trtp, 0); /* RTP Text */ + p->lastrtprx = time(NULL); if (sipdebug_text) { struct ast_str *out = ast_str_create(f->datalen * 4 + 6); int i; @@ -7393,6 +7396,7 @@ static struct ast_frame *sip_rtp_read(struct ast_c break; case 5: f = ast_udptl_read(p->udptl); /* UDPTL for T.38 */ + p->lastrtprx = time(NULL); break; default: f = &ast_null_frame; @@ -7454,7 +7458,6 @@ static struct ast_frame *sip_read(struct ast_chann sip_pvt_lock(p); fr = sip_rtp_read(ast, p, &faxdetected); - 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)) {