blob: b6c73fa1c131e3ab4cea3d80154831fa6a9c8ea7 [file] [log] [blame]
Philipp Maier87bd9be2017-08-22 16:35:41 +02001/* A Media Gateway Control Protocol Media Gateway: RFC 3435 */
2/* The statistics generator */
3
4/*
5 * (C) 2009-2012 by Holger Hans Peter Freyther <zecke@selfish.org>
6 * (C) 2009-2012 by On-Waves
7 * (C) 2017 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>
8 * All Rights Reserved
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Affero General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Affero General Public License for more details.
19 *
20 * You should have received a copy of the GNU Affero General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 *
23 */
24
25#pragma once
26
27#include <osmocom/mgcp/mgcp_internal.h>
28#include <inttypes.h>
29
30void mgcp_format_stats(char *str, size_t str_len, struct mgcp_conn *conn);
31
32/* Exposed for test purposes only, do not use actively */
33void calc_loss(struct mgcp_rtp_state *s, struct mgcp_rtp_end *,
34 uint32_t *expected, int *loss);
35
36/* Exposed for test purposes only, do not use actively */
37uint32_t calc_jitter(struct mgcp_rtp_state *);