<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/18877">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Treat RAU as implicit RESUME if GMM is suspended<br><br>We so far only resumed from suspend upon receiving an explicit BSSGP<br>RESUME message from the BSS.  The latter is only possible in<br>BSC-colocated PCU, where the BSC can trigger the message when releasing<br>the dedicated channel.  In BTS-colocated PCUs, this is not possible,<br>and we have to rely on the MS resuming by RAU.<br><br>See 3GPP TS 23.060 section 16.2.1.1.1 clause 6:<br><br>The MS shall resume GPRS services by sending a Routeing Area Update Request message to the SGSN:<br>* if the BSS did not successfully request the SGSN to resume GPRS services,<br>* if the RR Channel Release message was not received before the MS left dedicated mode,<br>* if the MS locally determines that the conditions for the GPRS suspension have disappeared<br><br>Without this patch, the GMM state would forever be stuck in SUSPEND,<br>which in turn causes the SGSN to page the MS all the time.<br><br>Change-Id: I3c09187a27483d95fa0070bbb467f94a2ea3978f<br>Related: OS4616<br>---<br>M src/sgsn/gprs_gmm_fsm.c<br>1 file changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/77/18877/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/sgsn/gprs_gmm_fsm.c b/src/sgsn/gprs_gmm_fsm.c</span><br><span>index 37ea904..cf1f4c5 100644</span><br><span>--- a/src/sgsn/gprs_gmm_fsm.c</span><br><span>+++ b/src/sgsn/gprs_gmm_fsm.c</span><br><span>@@ -69,7 +69,8 @@</span><br><span> static void st_gmm_registered_suspended(struct osmo_fsm_inst *fi, uint32_t event, void *data)</span><br><span> {</span><br><span>        switch(event) {</span><br><span style="color: hsl(0, 100%, 40%);">- case E_GMM_RESUME:</span><br><span style="color: hsl(120, 100%, 40%);">+    case E_GMM_RESUME:              /* explicit BSSGP RESUME from BSS */</span><br><span style="color: hsl(120, 100%, 40%);">+  case E_GMM_ATTACH_SUCCESS:      /* implicit resume from MS */</span><br><span>                gmm_fsm_state_chg(fi, ST_GMM_REGISTERED_NORMAL);</span><br><span>             break;</span><br><span>       }</span><br><span>@@ -123,7 +124,8 @@</span><br><span>              .action = st_gmm_registered_normal,</span><br><span>  },</span><br><span>   [ST_GMM_REGISTERED_SUSPENDED] = {</span><br><span style="color: hsl(0, 100%, 40%);">-               .in_event_mask = X(E_GMM_RESUME),</span><br><span style="color: hsl(120, 100%, 40%);">+             .in_event_mask = X(E_GMM_RESUME) |</span><br><span style="color: hsl(120, 100%, 40%);">+                             X(E_GMM_ATTACH_SUCCESS),</span><br><span>            .out_state_mask =</span><br><span>                    X(ST_GMM_DEREGISTERED) |</span><br><span>                     X(ST_GMM_REGISTERED_NORMAL),</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/18877">change 18877</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-sgsn/+/18877"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3c09187a27483d95fa0070bbb467f94a2ea3978f </div>
<div style="display:none"> Gerrit-Change-Number: 18877 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>