<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13494">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vlr_sgs: start lu expiration timer on sgs eps detach<br><br>When the subscriber is detached from SGs services (but not from 2g<br>services). Then the subscriber essentially becomes a regular 2g<br>subscriber, which means thet the lu expiration timer needs to be<br>started.<br><br>Change-Id: If95c63706dc1c5a537f7cd1b6481252427cbf234<br>Related: OS#3614<br>---<br>M src/libvlr/vlr_sgs.c<br>1 file changed, 14 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/94/13494/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libvlr/vlr_sgs.c b/src/libvlr/vlr_sgs.c</span><br><span>index 538c9f2..06737db 100644</span><br><span>--- a/src/libvlr/vlr_sgs.c</span><br><span>+++ b/src/libvlr/vlr_sgs.c</span><br><span>@@ -101,6 +101,11 @@</span><br><span>    vsub->cgi.lai = *new_lai;</span><br><span>         vsub->cs.lac = vsub->sgs.lai.lac;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* Subscribers that are created by the SGs location update will not</span><br><span style="color: hsl(120, 100%, 40%);">+    * expire automatically, however a 2G LU or an implicit IMSI detach</span><br><span style="color: hsl(120, 100%, 40%);">+    * from EPS services may change this. */</span><br><span style="color: hsl(120, 100%, 40%);">+      vsub->expire_lu = VLR_SUBSCRIBER_NO_EXPIRATION;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         return 0;</span><br><span> }</span><br><span> </span><br><span>@@ -197,6 +202,15 @@</span><br><span>    }</span><br><span> </span><br><span>        osmo_fsm_inst_dispatch(vsub->sgs_fsm, evt, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        /* See also 3GPP TS 29.118, 5.4.3 Procedures in the VLR. Detaching from</span><br><span style="color: hsl(120, 100%, 40%);">+        * EPS services essentially means that the subscriber leaves the 4G RAN</span><br><span style="color: hsl(120, 100%, 40%);">+        * but continues to live on 2G, this basically turns the subscriber into</span><br><span style="color: hsl(120, 100%, 40%);">+       * a normal 2G subscriber and we need to make sure that the lu-</span><br><span style="color: hsl(120, 100%, 40%);">+        * expiration timer is running. */</span><br><span style="color: hsl(120, 100%, 40%);">+    if (vsub->expire_lu == VLR_SUBSCRIBER_NO_EXPIRATION)</span><br><span style="color: hsl(120, 100%, 40%);">+               vlr_subscr_enable_expire_lu(vsub);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         vlr_subscr_put(vsub);</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13494">change 13494</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/13494"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If95c63706dc1c5a537f7cd1b6481252427cbf234 </div>
<div style="display:none"> Gerrit-Change-Number: 13494 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>