aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_network.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-10-24 21:22:47 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-12 10:45:09 +0100
commitcb306a689e4bef5d2f82315ff4c694517750519f (patch)
tree28fe81ac75a26689f7edbc346bc2eab6c6030d08 /openbsc/src/libmgcp/mgcp_network.c
parent30690adbc81a1fe15eb5e48b3201772486d79ed0 (diff)
mgcp: Send the jitter statistics at the end of the call
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_network.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_network.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c
index b28c5a15..03d0f35f 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -677,3 +677,10 @@ void mgcp_state_calc_loss(struct mgcp_rtp_state *state,
*loss = INT_MAX;
}
}
+
+uint32_t mgcp_state_calc_jitter(struct mgcp_rtp_state *state)
+{
+ if (!state->initialized)
+ return 0;
+ return state->jitter >> 4;
+}