<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/19580">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">abis_rsl.c: make sure emergency calls are rejected early<br><br>If a CHAN RQD indicates an emergency call on a BTS that does not allow<br>emergency calls, then respond with an IMMEDIAGE ASSIGNMENT REJECT<br>message to deny the emergency call early.<br><br>Related: OS#4548<br>Change-Id: I148c540269bffd703f38233a1e689e863c175e97<br>---<br>M src/osmo-bsc/abis_rsl.c<br>1 file changed, 9 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/80/19580/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c</span><br><span>index 1ffdd06..15b6625 100644</span><br><span>--- a/src/osmo-bsc/abis_rsl.c</span><br><span>+++ b/src/osmo-bsc/abis_rsl.c</span><br><span>@@ -1394,11 +1394,19 @@</span><br><span> </span><br><span>  /* check availability / allocate channel</span><br><span>      *</span><br><span style="color: hsl(0, 100%, 40%);">-       * - First try to allocate SDCCH.</span><br><span style="color: hsl(120, 100%, 40%);">+      * - First check for EMERGENCY call attempts,</span><br><span style="color: hsl(120, 100%, 40%);">+  * - then try to allocate SDCCH.</span><br><span>      * - If SDCCH is not available, try a TCH/H (less bandwidth).</span><br><span>         * - If there is still no channel available, try a TCH/F.</span><br><span>     *</span><br><span>    */</span><br><span style="color: hsl(120, 100%, 40%);">+   if ((rqd_ref->ra & 0xe0) == 0xa0) {</span><br><span style="color: hsl(120, 100%, 40%);">+            if (bts->si_common.rach_control.t2 & 0x4) {</span><br><span style="color: hsl(120, 100%, 40%);">+                    LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD: MS attempts EMERGENCY CALL although EMERGENCY CALLS are not allowed in sysinfo (spec violation by MS!)\n");</span><br><span style="color: hsl(120, 100%, 40%);">+                      rsl_tx_imm_ass_rej(bts, rqd_ref);</span><br><span style="color: hsl(120, 100%, 40%);">+                     return -EINVAL;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span>    lchan = lchan_select_by_type(bts, GSM_LCHAN_SDCCH);</span><br><span>  if (!lchan) {</span><br><span>                LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD: no resources for %s 0x%x, retrying with %s\n",</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/19580">change 19580</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-bsc/+/19580"/><meta itemprop="name" content="View Change"/></div></div>

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