dexter has uploaded this change for review. ( 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(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/91/13491/1 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: newchange Gerrit-Change-Id: I7661ae55afe34795c3701d59795331b32d64c988 Gerrit-Change-Number: 13491 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pma...@sysmocom.de>