From 292769e19e1ec7ea28b69370f04569501020659f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 2 Nov 2015 16:07:57 +0100 Subject: stats/mgcp: Initialize the statistics for MGCP as well There are currently no reate counters but this will hopefully change in the near future. --- openbsc/src/osmo-bsc_mgcp/mgcp_main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openbsc/src/osmo-bsc_mgcp') diff --git a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c index daa07c296..d755c906c 100644 --- a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c +++ b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c @@ -41,11 +41,14 @@ #include #include #include +#include +#include #include #include #include #include +#include #include "../../bscconfig.h" @@ -217,10 +220,14 @@ int main(int argc, char **argv) vty_info.copyright = openbsc_copyright; vty_init(&vty_info); logging_vty_add_cmds(&log_info); + osmo_stats_vty_add_cmds(&log_info); mgcp_vty_init(); handle_options(argc, argv); + rate_ctr_init(tall_bsc_ctx); + osmo_stats_init(tall_bsc_ctx); + rc = mgcp_parse_config(config_file, cfg, MGCP_BSC); if (rc < 0) return rc; -- cgit v1.2.3