]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert "chan_sip: Fix lastrtprx always updated" 02/4302/1
authorKevin Harwell <kharwell@digium.com>
Fri, 4 Nov 2016 15:57:43 +0000 (10:57 -0500)
committerKevin Harwell <kharwell@digium.com>
Fri, 4 Nov 2016 16:00:11 +0000 (11:00 -0500)
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

index 260ff0a03c326c3ae3523955c3410ddb3ea064c2..297981af146c14e71bd098239eaab6d54b367ef7 100644 (file)
@@ -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)) {