Change in osmo-ttcn3-hacks[master]: MSC_Tests: add function to check if a subscriber is in VLR

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Apr 3 15:26:17 UTC 2019


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/13491 )

Change subject: MSC_Tests: add function to check if a subscriber is in VLR
......................................................................

MSC_Tests: add function to check if a subscriber is in VLR

The control interface of osmo-msc is able to return a list with all
active subscribers from the VLR. Lets add a function, so that we can
check from TTCN3 if a specified subscriber is known by the VLR or not.

Change-Id: I7661ae55afe34795c3701d59795331b32d64c988
Related: OS#3614
---
M msc/MSC_Tests.ttcn
1 file changed, 17 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 6b2b259..a15fa57 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -63,6 +63,8 @@
 import from USSD_Helpers all;
 import from DNS_Helpers all;
 
+import from TCCConversion_Functions all;
+
 const integer NUM_BSC := 2;
 type record of BSSAP_Configuration BSSAP_Configurations;
 
@@ -3540,6 +3542,21 @@
    * too long / short TLV values
  */
 
+/* Check if a subscriber exists in the VLR */
+private function f_ctrl_subscr_in_vlr(charstring imsi_or_msisdn) runs on BSC_ConnHdlr return boolean {
+
+	var CtrlValue active_subsribers;
+	var integer rc;
+	active_subsribers := f_ctrl_get(IPA_CTRL, "subscriber-list-active-v1");
+
+	rc := f_strstr(active_subsribers, imsi_or_msisdn);
+	if (rc < 0) {
+		return false;
+	}
+
+	return true;
+}
+
 /* Perform a location updatye at the A-Interface and run some checks to confirm
  * that everything is back to normal. */
 private function f_sgsap_bssmap_screening()  runs on BSC_ConnHdlr {

-- 
To view, visit https://gerrit.osmocom.org/13491
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7661ae55afe34795c3701d59795331b32d64c988
Gerrit-Change-Number: 13491
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190403/f521093b/attachment.html>


More information about the gerrit-log mailing list