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 <[email protected]>

Reply via email to