diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-12 10:45:52 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-13 09:47:22 +0200 |
commit | b829eac9bc6c6dddcc0814d85ac560c6c48c36e1 (patch) | |
tree | fb221a11be427430f93839ed9459b04282bfbc4f /openbsc/src/bsc_init.c | |
parent | 7b1719327d4b1183c45ab076e31ccfb70436ad25 (diff) |
[statistics] Keep track of OML/RSL failures of the BTS.
Diffstat (limited to 'openbsc/src/bsc_init.c')
-rw-r--r-- | openbsc/src/bsc_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index 78b575302..dc1ab07da 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -920,6 +920,11 @@ void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx) case EVT_E1_TEI_DN: LOGP(DMI, LOGL_ERROR, "Lost some E1 TEI link: %d %p\n", type, trx); + if (type == E1INP_SIGN_OML) + counter_inc(trx->bts->network->stats.bts.oml_fail); + else if (type == E1INP_SIGN_RSL) + counter_inc(trx->bts->network->stats.bts.rsl_fail); + /* * free all allocated channels. change the nm_state so the * trx and trx_ts becomes unusable and chan_alloc.c can not |