[Asterisk-code-review] ASTERISK-25270 (asterisk[13.4])
Evgeniy Tsybra
asteriskteam at digium.com
Wed Jun 15 16:17:57 CDT 2016
Evgeniy Tsybra has uploaded a new change for review.
https://gerrit.asterisk.org/3031
Change subject: ASTERISK-25270
......................................................................
ASTERISK-25270
Change-Id: I12400d167dfd93bc402a05e26edb872234cebe1a
---
M channels/chan_sip.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/31/3031/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1307a93..23d3a29 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8398,7 +8398,9 @@
sip_pvt_lock(p);
fr = sip_rtp_read(ast, p, &faxdetected);
- p->lastrtprx = time(NULL);
+ if (fr && fr->frametype == AST_FRAME_VOICE) {
+ 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/3031
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12400d167dfd93bc402a05e26edb872234cebe1a
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13.4
Gerrit-Owner: Evgeniy Tsybra <cjack at yandex.ru>
More information about the asterisk-code-review
mailing list