[Asterisk-code-review] ASTERISK-25270 (asterisk[13])
Evgeniy Tsybra
asteriskteam at digium.com
Wed Jun 15 17:11:22 CDT 2016
Evgeniy Tsybra has uploaded a new change for review.
https://gerrit.asterisk.org/3032
Change subject: ASTERISK-25270
......................................................................
ASTERISK-25270
Change-Id: If3b5ca0dbb822582a86eb7d01dcae4e83448c41d
---
M channels/chan_sip.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/32/3032/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 77f4382..e148ac1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8598,7 +8598,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/3032
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If3b5ca0dbb822582a86eb7d01dcae4e83448c41d
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Evgeniy Tsybra <cjack at yandex.ru>
More information about the asterisk-code-review
mailing list