Change in libosmo-abis[master]: ortp: detect ssrc changes immediately

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/.

dexter gerrit-no-reply at lists.osmocom.org
Wed May 30 09:15:06 UTC 2018


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/9380


Change subject: ortp: detect ssrc changes immediately
......................................................................

ortp: detect ssrc changes immediately

libortp detects an ssrc jump using a packet count thresold. This
threshold is set to 50 by default. This means that libortp has
to see 50 rtp packets with the new SSRC before it accepts the
new stream. In our application we want to detect the changed
SSRC (Handover) as fast as possible. So we should change the
threshold to zero.

- use rtp_session_set_ssrc_changed_threshold() to set a thresold
  of 0 packets when osmo_rtp_socket_create() is called.

Change-Id: Id88c2c44d29a409affc2e47fdb932e1187020593
Related: OS#3299
---
M src/trau/osmo_ortp.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/80/9380/1

diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index 8eecd9f..8c7f104 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -371,6 +371,8 @@
 	rtp_session_set_seq_number(rs->sess, random());
 	rs->tx_timestamp = random();
 
+	/* Make sure ssrc changes are detected immediately */
+	rtp_session_set_ssrc_changed_threshold(rs->sess, 0);
 
 	return rs;
 }

-- 
To view, visit https://gerrit.osmocom.org/9380
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id88c2c44d29a409affc2e47fdb932e1187020593
Gerrit-Change-Number: 9380
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180530/4c90a658/attachment.htm>


More information about the gerrit-log mailing list