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-17 06:48:43 +0200 |
commit | bb110f91e8fd5c190f974ef3b9cb9a1118beb592 (patch) | |
tree | 1986265f45b53e0fe1dc527f0faddcbbe5bdeefa /openbsc/src/bsc_init.c | |
parent | 3ba36d5b57f5964b9bdc2fd1e5ee7d0d9fd398dd (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 fccdb0cd8..94576b796 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -918,6 +918,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 |