<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/14423">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">hlr.c: abort LU without MSISDN<br><br>Respond with a "GPRS services and non GRPS services not allowed" error<br>if a subscriber does not have a MSISDN in the location update. Related<br>TTCN3 test is in [1].<br><br>[1] Change-Id: Id544fa906ad442c2bbbccff437c18d04ddccde2e<br><br>Related: OS#2542<br>Change-Id: If1b2f3c9ddfba55bd02510f2dfd481bca2602e3a<br>---<br>M src/hlr.c<br>1 file changed, 7 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/23/14423/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hlr.c b/src/hlr.c</span><br><span>index 90cbac4..d1deae3 100644</span><br><span>--- a/src/hlr.c</span><br><span>+++ b/src/hlr.c</span><br><span>@@ -389,6 +389,13 @@</span><br><span>                 return 0;</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* Subscriber does not have a MSISDN (e.g. if generated with</span><br><span style="color: hsl(120, 100%, 40%);">+   * "subscr-create-on-demand no-msisdn cs+ps" option) */</span><br><span style="color: hsl(120, 100%, 40%);">+     if (!luop->subscr.msisdn[0]) {</span><br><span style="color: hsl(120, 100%, 40%);">+             lu_op_tx_error(luop, GMM_CAUSE_GPRS_OTHER_NOTALLOWED);</span><br><span style="color: hsl(120, 100%, 40%);">+                return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* TODO: Set subscriber tracing = deactive in VLR/SGSN */</span><br><span> </span><br><span> #if 0</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-hlr/+/14423">change 14423</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/c/osmo-hlr/+/14423"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If1b2f3c9ddfba55bd02510f2dfd481bca2602e3a </div>
<div style="display:none"> Gerrit-Change-Number: 14423 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>