<p>pespin <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/25532">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">abis: Call bts_model_abis_close() when  Abis link goes down<br><br>This way based on BTS model features it can attempt to reconnect or<br>simply exit the process.<br><br>Change-Id: I42b43a0128bd4b579d9695e6dd2bccf6dc7e1d41<br>---<br>M src/common/abis.c<br>1 file changed, 3 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/abis.c b/src/common/abis.c</span><br><span>index 8e713d2..1722f3d 100644</span><br><span>--- a/src/common/abis.c</span><br><span>+++ b/src/common/abis.c</span><br><span>@@ -215,12 +215,8 @@</span><br><span>                     trx->rsl_link = NULL;</span><br><span>             }</span><br><span>    }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       /* Note: if there was an OML or RSL connection present (the BTS was connected to a BSC). Then we will not try</span><br><span style="color: hsl(0, 100%, 40%);">-    * to connect to an alternate BSC. Instead we will shut down the BTS process. This will ensure that all states</span><br><span style="color: hsl(0, 100%, 40%);">-   * in the BTS (hardware and software) are reset properly. It is then up to the process management of the host</span><br><span style="color: hsl(0, 100%, 40%);">-    * to restart osmo-bts. */</span><br><span style="color: hsl(0, 100%, 40%);">-      osmo_fsm_inst_state_chg(fi, ABIS_LINK_ST_FAILED, 0, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+       bts_model_abis_close(bts);</span><br><span style="color: hsl(120, 100%, 40%);">+    osmo_fsm_inst_state_chg(fi, ABIS_LINK_ST_WAIT_RECONNECT, OML_RETRY_TIMER, 0);</span><br><span> }</span><br><span> </span><br><span> static void abis_link_failed_onenter(struct osmo_fsm_inst *fi, uint32_t prev_state)</span><br><span>@@ -284,7 +280,7 @@</span><br><span>          .in_event_mask =</span><br><span>                     S(ABIS_LINK_EV_SIGN_LINK_DOWN),</span><br><span>              .out_state_mask =</span><br><span style="color: hsl(0, 100%, 40%);">-                       S(ABIS_LINK_ST_FAILED),</span><br><span style="color: hsl(120, 100%, 40%);">+                       S(ABIS_LINK_ST_WAIT_RECONNECT),</span><br><span>              .onenter = abis_link_connected_onenter,</span><br><span>              .action = abis_link_connected,</span><br><span>       },</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/25532">change 25532</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-bts/+/25532"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I42b43a0128bd4b579d9695e6dd2bccf6dc7e1d41 </div>
<div style="display:none"> Gerrit-Change-Number: 25532 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>