From 515e341ff673df303cd49146ee774d4baa72e0e2 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 17 Feb 2018 14:10:41 +0100 Subject: [PATCH] osmo-mgw: Add talloc context introspection via VTY This requires libosmocore with Change-Id I43fc42880b22294d83c565ae600ac65e4f38b30d or later. Change-Id: I59feac155ba2342fcc2b27b029e803b8a10da2d3 --- src/osmo-mgw/mgw_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osmo-mgw/mgw_main.c b/src/osmo-mgw/mgw_main.c index f95a1c7ff..776203226 100644 --- a/src/osmo-mgw/mgw_main.c +++ b/src/osmo-mgw/mgw_main.c @@ -53,6 +53,7 @@ #include #include #include +#include #include "../../bscconfig.h" @@ -256,6 +257,8 @@ int main(int argc, char **argv) int rc; tall_bsc_ctx = talloc_named_const(NULL, 1, "mgcp-callagent"); + vty_info.tall_ctx = tall_bsc_ctx; + msgb_talloc_ctx_init(tall_bsc_ctx, 0); osmo_init_ignore_signals(); @@ -268,6 +271,7 @@ int main(int argc, char **argv) vty_info.copyright = osmomgw_copyright; vty_init(&vty_info); logging_vty_add_cmds(NULL); + osmo_talloc_vty_add_cmds(); osmo_stats_vty_add_cmds(&log_info); mgcp_vty_init();