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

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed May 30 14:30:17 UTC 2018


Harald Welte has submitted this change and it was merged. ( 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(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index 9062289..bf8df6a 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -372,6 +372,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: merged
Gerrit-Change-Id: Id88c2c44d29a409affc2e47fdb932e1187020593
Gerrit-Change-Number: 9380
Gerrit-PatchSet: 3
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180530/04732fc9/attachment.htm>


More information about the gerrit-log mailing list