From bf01ff53f8d93d637981720331405e56f0b3b118 Mon Sep 17 00:00:00 2001 From: Kevin Harwell Date: Fri, 4 Nov 2016 10:57:43 -0500 Subject: Revert "chan_sip: Fix lastrtprx always updated" This reverts commit 93332cb1d0eea18021ea6538237297e627d6e2fc. Unfortunately, the aforementioned commit caused a regression (incoming calls would eventually disconnect). Thus it is being removed. ASTERISK-26523 #close ASTERISK-25270 Change-Id: Ibf5586adc303073a8eac667a4cbfdb6be184a64d --- channels/chan_sip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'channels/chan_sip.c') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5e23f6fce..32b2a3611 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8631,9 +8631,7 @@ 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); - } + 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)) { -- cgit v1.2.3