<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11700">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">always directly send BSSMAP Clear Request<br><br>When a gscon wants to send a BSSMAP Clear Request, it makes no sense to do it<br>conditionally depending on the current conn state. Just send it: don't call<br>gscon_sigtran_send(), directly go for osmo_bsc_sigtran_send().<br><br>In particular, if an incoming inter-BSC handover ends in failure, the gscon<br>state is still ST_INIT, but if the MSC fails to give us a Clear Command, we may<br>want to ask with a BSSMAP Clear Request.<br><br>Change-Id: I39fae24260a4bb7a6af704ebe760f93fff566536<br>---<br>M src/osmo-bsc/bsc_subscr_conn_fsm.c<br>1 file changed, 8 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/00/11700/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>index bca9e1f..2202ecf 100644</span><br><span>--- a/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>+++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>@@ -134,7 +134,14 @@</span><br><span>                            enum gsm0808_cause cause)</span><br><span> {</span><br><span>        struct msgb *resp = gsm0808_create_clear_rqst(cause);</span><br><span style="color: hsl(0, 100%, 40%);">-   gscon_sigtran_send(conn, resp);</span><br><span style="color: hsl(120, 100%, 40%);">+       int rc;</span><br><span style="color: hsl(120, 100%, 40%);">+       if (!resp) {</span><br><span style="color: hsl(120, 100%, 40%);">+          LOGPFSML(conn->fi, LOGL_ERROR, "Unable to compose BSSMAP Clear Request message\n");</span><br><span style="color: hsl(120, 100%, 40%);">+              return;</span><br><span style="color: hsl(120, 100%, 40%);">+       }</span><br><span style="color: hsl(120, 100%, 40%);">+     rc = osmo_bsc_sigtran_send(conn, resp);</span><br><span style="color: hsl(120, 100%, 40%);">+       if (rc < 0)</span><br><span style="color: hsl(120, 100%, 40%);">+                LOGPFSML(conn->fi, LOGL_ERROR, "Unable to deliver BSSMAP Clear Request message\n");</span><br><span> }</span><br><span> </span><br><span> /* forward MO DTAP from RSL side to BSSAP side */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11700">change 11700</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/11700"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I39fae24260a4bb7a6af704ebe760f93fff566536 </div>
<div style="display:none"> Gerrit-Change-Number: 11700 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>