<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/14465">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libmsc/gsm_09_11.c: drop rudimantary vsub->cgi.lai.lac check<br><br>This check was copy-pasted either from CC, or from SMS handling<br>code during the initial development of "SS/USSD over GSUP". Now<br>this is the only one survived after the recent refactoring.<br><br>I doubt this is exactly the right way to check whether subscriber<br>is attached or not. Moreover, this check should rather be done in<br>a single place, rather then in each CC/SS/SMS handler separately.<br><br>Change-Id: I7bd48860e923cb1f1a5bccc4b0f497ec1a7bcf84<br>---<br>M src/libmsc/gsm_09_11.c<br>1 file changed, 0 insertions(+), 7 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/65/14465/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libmsc/gsm_09_11.c b/src/libmsc/gsm_09_11.c</span><br><span>index 866d944..87978a5 100644</span><br><span>--- a/src/libmsc/gsm_09_11.c</span><br><span>+++ b/src/libmsc/gsm_09_11.c</span><br><span>@@ -331,13 +331,6 @@</span><br><span>                 return NULL;</span><br><span>         }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   /* If subscriber is not "attached" */</span><br><span style="color: hsl(0, 100%, 40%);">- if (!vsub->cgi.lai.lac) {</span><br><span style="color: hsl(0, 100%, 40%);">-            LOGP(DSS, LOGL_ERROR, "Network-originated session "</span><br><span style="color: hsl(0, 100%, 40%);">-                   "rejected - subscriber is not attached\n");</span><br><span style="color: hsl(0, 100%, 40%);">-           return NULL;</span><br><span style="color: hsl(0, 100%, 40%);">-    }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    /* Obtain an unused transaction ID */</span><br><span>        tid = trans_assign_trans_id(net, vsub, TRANS_USSD);</span><br><span>  if (tid < 0) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-msc/+/14465">change 14465</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-msc/+/14465"/><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-Change-Id: I7bd48860e923cb1f1a5bccc4b0f497ec1a7bcf84 </div>
<div style="display:none"> Gerrit-Change-Number: 14465 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>