[PATCH 3/6] osmux: Add introspection for osmux.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Sun Oct 4 09:22:51 UTC 2015


From: Holger Hans Peter Freyther <holger at moiji-mobile.com>

* Print number of used CIDs for the system
* Hopefully this is just the beginning
---
 openbsc/src/libmgcp/mgcp_vty.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/openbsc/src/libmgcp/mgcp_vty.c b/openbsc/src/libmgcp/mgcp_vty.c
index fc2f818..2b76436 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;
 }
 
-- 
2.6.0




More information about the OpenBSC mailing list