aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYves Godin <Yves.Godin@nutaq.com>2016-10-06 15:55:06 +0200
committerHarald Welte <laforge@gnumonks.org>2016-10-12 09:26:00 +0000
commit2c32f0a269e1251438548bfd6bcd0a131708d879 (patch)
tree5c04bd666ac47250ac093f7185dd2fc3177971a8 /src
parenta0ff942e927e771875a183c045b3a1676a7d579c (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/trau/osmo_ortp.c3
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);
}