aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-10-02 16:25:21 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-10-12 09:11:25 +0200
commit15a40db606e317e9304651b5f644eeae151efd8d (patch)
treed64b8323cf9bc17c808fa17aa72121a51ad53a44
parentb45e4d80b6b6b6bb597ccb3a14c16395481f7816 (diff)
osmux: Add introspection for osmux.
* Print number of used CIDs for the system * Hopefully this is just the beginning
-rw-r--r--openbsc/src/libmgcp/mgcp_vty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libmgcp/mgcp_vty.c b/openbsc/src/libmgcp/mgcp_vty.c
index fc2f818a..2b764364 100644
--- a/openbsc/src/libmgcp/mgcp_vty.c
+++ b/openbsc/src/libmgcp/mgcp_vty.c
@@ -226,6 +226,9 @@ DEFUN(show_mcgp, show_mgcp_cmd,
llist_for_each_entry(trunk, &g_cfg->trunks, entry)
dump_trunk(vty, trunk, show_stats);
+ if (g_cfg->osmux)
+ vty_out(vty, "Osmux used CID: %d%s", osmux_used_cid(), VTY_NEWLINE);
+
return CMD_SUCCESS;
}