[PATCH] osmo-bts[master]: Fix RTP duration adjustment not done when speech resumes in ...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

jfdionne gerrit-no-reply at lists.osmocom.org
Mon Mar 6 18:45:07 UTC 2017


Review at  https://gerrit.osmocom.org/1983

Fix RTP duration adjustment not done when speech resumes in DTX mode.

RTP jitter increases continuously because duration is not
updated when speech resumes in DTX mode.

Change-Id: Ib51ed95a449369222c957b3acebd9ce1f66c5435
---
M src/common/l1sap.c
1 file changed, 2 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/83/1983/1

diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 19b38af..b61e561 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -76,12 +76,8 @@
 {
 	uint32_t samples_passed, r;
 
-	/* don't adjust duration:
-	   - when no DTX enabled at all
-	   - for ONSET RTP packet to avoid timestamp gap with subsequent SPEECH
-	   RTP packet*/
-	if (lchan->rtp_tx_marker ||
-	    lchan->ts->trx->bts->dtxu == GSM48_DTX_SHALL_NOT_BE_USED)
+	/* don't adjust duration when DTX is not enabled */
+	if (lchan->ts->trx->bts->dtxu == GSM48_DTX_SHALL_NOT_BE_USED)
 		return GSM_RTP_DURATION;
 
 	if (lchan->tch.last_fn != LCHAN_FN_DUMMY) {

-- 
To view, visit https://gerrit.osmocom.org/1983
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib51ed95a449369222c957b3acebd9ce1f66c5435
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: jfdionne <jf.dionne at nutaq.com>



More information about the gerrit-log mailing list