<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20924">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc_subscr_conn_fsm: use cause code PREEMPTION on lchan loss<br><br>When an lchan gets lost, the clear request is currently using the cause<br>code GSM0808_CAUSE_EQUIPMENT_FAILURE, depending on the type of MSC that<br>is connected it could be possible that a cause code like this is<br>interpreted a total failure of the BSC. Lets use<br>GSM0808_CAUSE_PREEMPTION as cause code instead.<br><br>Change-Id: I13216fdf5f99c027a420c5a1e3970a6a6f90d2af<br>OS#4549 SYS#4914<br><br>Change-Id: I88b47695877a31bc5ede1080027c9c6080eb2090<br>---<br>M src/osmo-bsc/bsc_subscr_conn_fsm.c<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/24/20924/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 ed08e86..075d419 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>@@ -374,7 +374,7 @@</span><br><span>                     LOGPFSML(fi, LOGL_INFO,</span><br><span>                               "Connection confirmed but lchan was dropped previously, clearing conn\n");</span><br><span>                        osmo_fsm_inst_state_chg(conn->fi, ST_CLEARING, 60, -4);</span><br><span style="color: hsl(0, 100%, 40%);">-                      gscon_bssmap_clear(conn, GSM0808_CAUSE_EQUIPMENT_FAILURE);</span><br><span style="color: hsl(120, 100%, 40%);">+                    gscon_bssmap_clear(conn, GSM0808_CAUSE_PREEMPTION);</span><br><span>                  break;</span><br><span>               }</span><br><span> </span><br><span>@@ -740,7 +740,7 @@</span><br><span>                  /* fall thru, omit an error log if already in ST_CLEARING */</span><br><span>                 case ST_CLEARING:</span><br><span>                    /* Request a Clear Command from the MSC. */</span><br><span style="color: hsl(0, 100%, 40%);">-                     gscon_bssmap_clear(conn, GSM0808_CAUSE_EQUIPMENT_FAILURE);</span><br><span style="color: hsl(120, 100%, 40%);">+                    gscon_bssmap_clear(conn, GSM0808_CAUSE_PREEMPTION);</span><br><span>                  break;</span><br><span>               }</span><br><span>    }</span><br><span>@@ -783,7 +783,7 @@</span><br><span>          && !conn->ho.new_lchan</span><br><span>            && !conn->assignment.new_lchan</span><br><span>            && !conn->lcs.loc_req)</span><br><span style="color: hsl(0, 100%, 40%);">-           gscon_bssmap_clear(conn, GSM0808_CAUSE_EQUIPMENT_FAILURE);</span><br><span style="color: hsl(120, 100%, 40%);">+            gscon_bssmap_clear(conn, GSM0808_CAUSE_PREEMPTION);</span><br><span> }</span><br><span> </span><br><span> static void gscon_forget_mgw_endpoint(struct gsm_subscriber_connection *conn)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20924">change 20924</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/+/20924"/><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: I88b47695877a31bc5ede1080027c9c6080eb2090 </div>
<div style="display:none"> Gerrit-Change-Number: 20924 </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>