diff options
author | Yves Godin <Yves.Godin@nutaq.com> | 2016-10-06 15:55:06 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-10-12 09:26:00 +0000 |
commit | 2c32f0a269e1251438548bfd6bcd0a131708d879 (patch) | |
tree | 5c04bd666ac47250ac093f7185dd2fc3177971a8 | |
parent | Really fix order of set_connected_mode and set_remote_addr (diff) | |
download | libosmo-abis-2c32f0a269e1251438548bfd6bcd0a131708d879.tar.xz libosmo-abis-2c32f0a269e1251438548bfd6bcd0a131708d879.zip |
Resync RTP session in case of timestamp jump
This will prevent the timestamp jump to occur between each call for DTX
if something goes wrong. It's handy as oRTP does not manage well
timestamp jump if it is not resynced.
Fixes: OS#1803
Change-Id: Iae5da832218dbd1ede7a9451102074f2a5eb66df
-rw-r--r-- | src/trau/osmo_ortp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c index 6ce70d2..e3c6234 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -139,7 +139,8 @@ static void ortp_sig_cb_ts(RtpSession *rs, void *data) uint32_t ts = rtp_session_get_current_recv_ts(rs); LOGP(DLMIB, LOGL_NOTICE, - "osmo-ortp(%d): timestamp_jump, new TS %d\n", port, ts); + "osmo-ortp(%d): timestamp_jump, new TS %d, resyncing\n", port, ts); + rtp_session_resync(rs); } |