[Asterisk-code-review] Revert "chan sip: Fix lastrtprx always updated" (asterisk[master])

Kevin Harwell asteriskteam at digium.com
Fri Nov 4 11:00:29 CDT 2016


Kevin Harwell has uploaded a new change for review. ( https://gerrit.asterisk.org/4303 )

Change subject: Revert "chan_sip: Fix lastrtprx always updated"
......................................................................

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
---
M channels/chan_sip.c
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/03/4303/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 5e23f6f..32b2a36 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8631,9 +8631,7 @@
 
 	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)) {

-- 
To view, visit https://gerrit.asterisk.org/4303
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf5586adc303073a8eac667a4cbfdb6be184a64d
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list