aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-02 16:07:57 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-12-21 07:35:35 +0100
commit0fc158c0be5709fbde405f62fdd39be3c452623c (patch)
tree4a09ef1d39cc7bd5adf8ef7305d3a4ec90d91515
parent63036a92164300b08f90f71a3f40d5042a6c4b15 (diff)
stats/mgcp: Initialize the statistics for MGCP as wellzecke/stable/0.14
There are currently no reate counters but this will hopefully change in the near future.
-rw-r--r--openbsc/src/osmo-bsc_mgcp/mgcp_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
index 1c03f27d4..14b2dac39 100644
--- a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
+++ b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
@@ -41,11 +41,14 @@
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/select.h>
+#include <osmocom/core/stats.h>
+#include <osmocom/core/rate_ctr.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
#include <osmocom/vty/ports.h>
#include <osmocom/vty/command.h>
+#include <osmocom/vty/stats.h>
#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;