mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 17:53:15 +00:00
Revert "chan_sip: Fix lastrtprx always updated"
This reverts commit 93332cb1d0
.
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
This commit is contained in:
committed by
Corey Farrell
parent
7d7b52c434
commit
a3614d75f6
@@ -8628,9 +8628,7 @@ static struct ast_frame *sip_read(struct ast_channel *ast)
|
|||||||
|
|
||||||
sip_pvt_lock(p);
|
sip_pvt_lock(p);
|
||||||
fr = sip_rtp_read(ast, p, &faxdetected);
|
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 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)) {
|
if (faxdetected && ast_test_flag(&p->flags[1], SIP_PAGE2_FAX_DETECT_CNG)) {
|
||||||
|
Reference in New Issue
Block a user