aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-20 13:16:14 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-20 13:36:42 +0100
commit392736d38bf9dae29800bde630c9ceee8a3914f3 (patch)
tree3c1626eb5a825579b395627f51cad3c8745e9331 /openbsc/include
parent31981a0051682c59fc5bcebfa1ac4e3086103b25 (diff)
RTP Proxy: Fix RTP sequence number and timestamp in case of dropped frames
During handover, we will not send RTP frames for quite some time. However, the way the rtp_send code is structured, it will increment the timestamp with a fixed amount every time we send a frame, independent how much wallclock time has actually passed. This code is a hack to update the sequence number and timestamp in case it seems to be wrong. It makes handover much more reliable.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/rtp_proxy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/rtp_proxy.h b/openbsc/include/openbsc/rtp_proxy.h
index a3e45964c..d128e4f23 100644
--- a/openbsc/include/openbsc/rtp_proxy.h
+++ b/openbsc/include/openbsc/rtp_proxy.h
@@ -70,6 +70,7 @@ struct rtp_socket {
u_int16_t sequence;
u_int32_t timestamp;
u_int32_t ssrc;
+ struct timeval last_tv;
} transmit;
};