pespin has uploaded this change for review.
kpi: Fix HNB_CTR_RANAP_CS_RAB_REL_REQ(_ABNORMAL) never incremented
Change-Id: I126973b93e86784adaccbcba49c6322c261f4746
---
M src/osmo-hnbgw/kpi_ranap.c
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/78/40278/1
diff --git a/src/osmo-hnbgw/kpi_ranap.c b/src/osmo-hnbgw/kpi_ranap.c
index c1c77bf..97f3a76 100644
--- a/src/osmo-hnbgw/kpi_ranap.c
+++ b/src/osmo-hnbgw/kpi_ranap.c
@@ -153,9 +153,11 @@
case RAB_STATE_ACTIVE:
if (rab_rel_item->cause.present == RANAP_Cause_PR_nAS &&
rab_rel_item->cause.choice.nAS == RANAP_CauseNAS_normal_release) {
- ctr_num = HNB_CTR_RANAP_PS_RAB_REL_REQ;
+ ctr_num = map->is_ps ? HNB_CTR_RANAP_PS_RAB_REL_REQ :
+ HNB_CTR_RANAP_CS_RAB_REL_REQ;
} else {
- ctr_num = HNB_CTR_RANAP_PS_RAB_REL_REQ_ABNORMAL;
+ ctr_num = map->is_ps ? HNB_CTR_RANAP_PS_RAB_REL_REQ_ABNORMAL :
+ HNB_CTR_RANAP_CS_RAB_REL_REQ_ABNORMAL;
}
if (!map->is_ps)
ctr_num++;
To view, visit change 40278. To unsubscribe, or for help writing mail filters, visit settings.