BSC Call Control: Actually implement call statistics
The existing call realated statistics counters apparently were
never used. This introduces a new set of counters, two for the
MO and MT case.
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c
index 0697c7d..cc6bd94 100644
--- a/openbsc/src/vty_interface_layer3.c
+++ b/openbsc/src/vty_interface_layer3.c
@@ -589,10 +589,12 @@
counter_get(net->stats.sms.delivered),
counter_get(net->stats.sms.rp_err_mem),
counter_get(net->stats.sms.rp_err_other), VTY_NEWLINE);
- vty_out(vty, "Calls : %lu dialled, %lu alerted, %lu connected%s",
- counter_get(net->stats.call.dialled),
- counter_get(net->stats.call.alerted),
- counter_get(net->stats.call.connected), VTY_NEWLINE);
+ vty_out(vty, "MO Calls : %lu setup, %lu connect ack%s",
+ counter_get(net->stats.call.mo_setup),
+ counter_get(net->stats.call.mo_connect_ack), VTY_NEWLINE);
+ vty_out(vty, "MT Calls : %lu setup, %lu connect%s",
+ counter_get(net->stats.call.mt_setup),
+ counter_get(net->stats.call.mt_connect), VTY_NEWLINE);
return CMD_SUCCESS;
}