Change in osmo-bsc[master]: stats: Add a BTS/BSC counter PAGING_NON_ACTIVE.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

ipse gerrit-no-reply at lists.osmocom.org
Sat May 16 15:52:30 UTC 2020


ipse has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/18332 )


Change subject: stats: Add a BTS/BSC counter PAGING_NON_ACTIVE.
......................................................................

stats: Add a BTS/BSC counter PAGING_NON_ACTIVE.

Otherwise we're missing an important part of the callflow and
the counters of responded/expired paging requests don't add up to
attempted paging number.

Change-Id: I1755be40d29980b75353cb4b8087d1ce0d92854a
---
M include/osmocom/bsc/gsm_data.h
M src/osmo-bsc/gsm_08_08.c
2 files changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/32/18332/1

diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index aeeb58d..4421c7c 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -1412,6 +1412,7 @@
 	BTS_CTR_PAGING_ALREADY,
 	BTS_CTR_PAGING_RESPONDED,
 	BTS_CTR_PAGING_EXPIRED,
+	BTS_CTR_PAGING_NON_ACTIVE,
 	BTS_CTR_CHAN_ACT_TOTAL,
 	BTS_CTR_CHAN_ACT_NACK,
 	BTS_CTR_RSL_UNKNOWN,
@@ -1458,6 +1459,7 @@
 	[BTS_CTR_PAGING_ALREADY] = 		{"paging:already", "Paging attempts ignored as subscriber was already being paged."},
 	[BTS_CTR_PAGING_RESPONDED] = 		{"paging:responded", "Paging attempts with successful paging response."},
 	[BTS_CTR_PAGING_EXPIRED] = 		{"paging:expired", "Paging Request expired because of timeout T3113."},
+	[BTS_CTR_PAGING_NON_ACTIVE] = 	{"paging:expired", "Non active subscriber responded to paging."},
 	[BTS_CTR_CHAN_ACT_TOTAL] =		{"chan_act:total", "Total number of Channel Activations."},
 	[BTS_CTR_CHAN_ACT_NACK] =		{"chan_act:nack", "Number of Channel Activations that the BTS NACKed"},
 	[BTS_CTR_RSL_UNKNOWN] =			{"rsl:unknown", "Number of unknown/unsupported RSL messages received from BTS"},
@@ -1554,6 +1556,7 @@
 	BSC_CTR_PAGING_ATTEMPTED,
 	BSC_CTR_PAGING_DETACHED,
 	BSC_CTR_PAGING_RESPONDED,
+	BSC_CTR_PAGING_NON_ACTIVE,
 	BSC_CTR_UNKNOWN_UNIT_ID,
 };
 
@@ -1598,6 +1601,7 @@
 	[BSC_CTR_PAGING_ATTEMPTED] = 		{"paging:attempted", "Paging attempts for a subscriber."},
 	[BSC_CTR_PAGING_DETACHED] = 		{"paging:detached", "Paging request send failures because no responsible BTS was found."},
 	[BSC_CTR_PAGING_RESPONDED] = 		{"paging:responded", "Paging attempts with successful response."},
+	[BSC_CTR_PAGING_NON_ACTIVE] =		{"paging:expired", "Paging response for non active subscriber."},
 
 	[BSC_CTR_UNKNOWN_UNIT_ID] = 		{"abis:unknown_unit_id", "Connection attempts from unknown IPA CCM Unit ID."},
 };
diff --git a/src/osmo-bsc/gsm_08_08.c b/src/osmo-bsc/gsm_08_08.c
index 4f9c69e..2b06623 100644
--- a/src/osmo-bsc/gsm_08_08.c
+++ b/src/osmo-bsc/gsm_08_08.c
@@ -388,6 +388,8 @@
 
 	if (!subscr) {
 		LOGP(DMSC, LOGL_ERROR, "Non active subscriber got paged.\n");
+		rate_ctr_inc(&_bts->bts_ctrs->ctr[BTS_CTR_PAGING_NON_ACTIVE]);
+		rate_ctr_inc(&_bts->network->bsc_ctrs->ctr[BSC_CTR_PAGING_NON_ACTIVE]);
 		return -1;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/18332
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I1755be40d29980b75353cb4b8087d1ce0d92854a
Gerrit-Change-Number: 18332
Gerrit-PatchSet: 1
Gerrit-Owner: ipse <Alexander.Chemeris at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200516/a6485fd9/attachment.htm>


More information about the gerrit-log mailing list