summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2016-11-04 10:57:43 -0500
committerKevin Harwell <kharwell@digium.com>2016-11-04 11:00:11 -0500
commitac82b40bff261c4e35e1f354056dfad4fc20e153 (patch)
tree30da9d5d4057b9d6168f423552405b64701f75df /channels/chan_sip.c
parent7d8b18d3fb79977fc59715defd2457c274084225 (diff)
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
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 260ff0a03..297981af1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8633,9 +8633,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)) {