<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/13491">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">MSC_Tests: add function to check if a subscriber is in VLR<br><br>The control interface of osmo-msc is able to return a list with all<br>active subscribers from the VLR. Lets add a function, so that we can<br>check from TTCN3 if a specified subscriber is known by the VLR or not.<br><br>Change-Id: I7661ae55afe34795c3701d59795331b32d64c988<br>Related: OS#3614<br>---<br>M msc/MSC_Tests.ttcn<br>1 file changed, 17 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn</span><br><span>index 6b2b259..a15fa57 100644</span><br><span>--- a/msc/MSC_Tests.ttcn</span><br><span>+++ b/msc/MSC_Tests.ttcn</span><br><span>@@ -63,6 +63,8 @@</span><br><span> import from USSD_Helpers all;</span><br><span> import from DNS_Helpers all;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+import from TCCConversion_Functions all;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> const integer NUM_BSC := 2;</span><br><span> type record of BSSAP_Configuration BSSAP_Configurations;</span><br><span> </span><br><span>@@ -3540,6 +3542,21 @@</span><br><span>    * too long / short TLV values</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Check if a subscriber exists in the VLR */</span><br><span style="color: hsl(120, 100%, 40%);">+private function f_ctrl_subscr_in_vlr(charstring imsi_or_msisdn) runs on BSC_ConnHdlr return boolean {</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     var CtrlValue active_subsribers;</span><br><span style="color: hsl(120, 100%, 40%);">+      var integer rc;</span><br><span style="color: hsl(120, 100%, 40%);">+       active_subsribers := f_ctrl_get(IPA_CTRL, "subscriber-list-active-v1");</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   rc := f_strstr(active_subsribers, imsi_or_msisdn);</span><br><span style="color: hsl(120, 100%, 40%);">+    if (rc < 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+              return false;</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   return true;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* Perform a location updatye at the A-Interface and run some checks to confirm</span><br><span>  * that everything is back to normal. */</span><br><span> private function f_sgsap_bssmap_screening()  runs on BSC_ConnHdlr {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13491">change 13491</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13491"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I7661ae55afe34795c3701d59795331b32d64c988 </div>
<div style="display:none"> Gerrit-Change-Number: 13491 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>