aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-08-23 07:32:27 +0200
committerAlexander Couzens <lynxis@fe80.eu>2016-10-04 01:08:12 +0200
commit92f552f344541977d952596bd3d2eaaef4435809 (patch)
tree9f907109afbeca0f6b36b1fbb6682dfd24f2b711 /openbsc/src/libbsc
parent38e9ea3f7f385c6660c5958970af5c71adc1682b (diff)
msc: add counters to track call attempts/active/success/failed
active_calls describe all calls in active state. call.complete Call got terminated by disconnect requested either by MS or MSC. call.incomplete Call got terminated by any other reason. call.active Calls reached active state. Change-Id: I49b93af2e6a0ba16c2fb00b7b83974e8a6a16df3
Diffstat (limited to 'openbsc/src/libbsc')
-rw-r--r--openbsc/src/libbsc/net_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/net_init.c b/openbsc/src/libbsc/net_init.c
index e53b4662f..57e359909 100644
--- a/openbsc/src/libbsc/net_init.c
+++ b/openbsc/src/libbsc/net_init.c
@@ -86,6 +86,7 @@ struct gsm_network *gsm_network_init(void *ctx,
/* init statistics */
net->bsc_ctrs = rate_ctr_group_alloc(net, &bsc_ctrg_desc, 0);
net->msc_ctrs = rate_ctr_group_alloc(net, &msc_ctrg_desc, 0);
+ net->active_calls = osmo_counter_alloc("msc.active_calls");
net->mncc_recv = mncc_recv;
net->ext_min = GSM_MIN_EXTEN;