[PATCH] openbsc[master]: libmsc: add missing count of sms no receiver when using smpp...

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Jul 12 15:45:41 UTC 2016


Review at  https://gerrit.osmocom.org/501

libmsc: add missing count of sms no receiver when using smpp_first

Change-Id: I20ecb3299d67dbaa7b016620685997db49970ffb
---
M openbsc/src/libmsc/gsm_04_11.c
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/01/501/1

diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index fba5208..840d4d4 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -309,8 +309,10 @@
 	if (!gsms->receiver) {
 #ifdef BUILD_SMPP
 		/* Avoid a second look-up */
-		if (smpp_first)
+		if (smpp_first) {
+			rate_ctr_inc(&conn->bts->network->ratectrs->ctr[MSC_CTR_SMS_NO_RECEIVER]);
 			return 1; /* cause 1: unknown subscriber */
+		}
 
 		rc = smpp_try_deliver(gsms, conn);
 		if (rc == 1) {

-- 
To view, visit https://gerrit.osmocom.org/501
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I20ecb3299d67dbaa7b016620685997db49970ffb
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list