<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9723">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Store identity of VLR/SGSN in UpdateLocation<br><br>The HLR must store the least-recently used VLR and SGSN identities in<br>its database to ensure subsequent mobile-terminated transactions can<br>be routed accordingly.<br><br>Change-Id: Ib2611421f3638eadc361787af801fffe9a34bd8a<br>Closes: OS#2796<br>---<br>M src/hlr.c<br>1 file changed, 9 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/9723/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 643dfff..41566be 100644</span><br><span>--- a/src/hlr.c</span><br><span>+++ b/src/hlr.c</span><br><span>@@ -296,10 +296,19 @@</span><br><span>    } else</span><br><span> #endif</span><br><span>     {</span><br><span style="color: hsl(120, 100%, 40%);">+             int rc;</span><br><span style="color: hsl(120, 100%, 40%);">+               uint8_t *addr;</span><br><span style="color: hsl(120, 100%, 40%);">+                rc = osmo_gsup_conn_ccm_get(conn, &addr, IPAC_IDTAG_SERNR);</span><br><span style="color: hsl(120, 100%, 40%);">+               if (rc <= 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+                     osmo_strlcpy(luop->subscr.imsi, gsup->imsi, sizeof(luop->subscr.imsi));</span><br><span style="color: hsl(120, 100%, 40%);">+                      lu_op_tx_error(luop, GMM_CAUSE_NET_FAIL);</span><br><span style="color: hsl(120, 100%, 40%);">+                     return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span>            /* TODO: Subscriber allowed to roam in PLMN? */</span><br><span>              /* TODO: Update RoutingInfo */</span><br><span>               /* TODO: Reset Flag MS Purged (cs/ps) */</span><br><span>             /* TODO: Control_Tracing_HLR / Control_Tracing_HLR_with_SGSN */</span><br><span style="color: hsl(120, 100%, 40%);">+               db_subscr_lu(g_hlr->dbc, luop->subscr.id, (char *)addr, luop->is_ps);</span><br><span>               lu_op_tx_insert_subscr_data(luop);</span><br><span>   }</span><br><span>    return 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9723">change 9723</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/9723"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ib2611421f3638eadc361787af801fffe9a34bd8a </div>
<div style="display:none"> Gerrit-Change-Number: 9723 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>