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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">send DLCX only once<br><br>If the mgcp_client_fsm gets terminated in ST_DLCX_RESP, it has already<br>sent a DLCX to the MGW. So do not send a second one.<br><br>I noticed the duplicate DLCX for the same endpoint conn identifier while<br>running TTCN3 tests and watching the network trace of test teardown.<br><br>Change-Id: I35e415f67946b73c74408afe265618cfe4f72b0b<br>---<br>M src/libosmo-mgcp-client/mgcp_client_fsm.c<br>1 file changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libosmo-mgcp-client/mgcp_client_fsm.c b/src/libosmo-mgcp-client/mgcp_client_fsm.c</span><br><span>index 83dd2f1..9e4a100 100644</span><br><span>--- a/src/libosmo-mgcp-client/mgcp_client_fsm.c</span><br><span>+++ b/src/libosmo-mgcp-client/mgcp_client_fsm.c</span><br><span>@@ -521,8 +521,10 @@</span><br><span>    /* Should the FSM be terminated while there are still open connections</span><br><span>        * on the MGW, we send an unconditional DLCX to terminate the</span><br><span>         * connection. This is not the normal case. The user should always use</span><br><span style="color: hsl(0, 100%, 40%);">-   * mgcp_conn_delete() to instruct the FSM to perform a graceful exit */</span><br><span style="color: hsl(0, 100%, 40%);">- if (strlen(mgcp_ctx->conn_id)) {</span><br><span style="color: hsl(120, 100%, 40%);">+    * mgcp_conn_delete() to instruct the FSM to perform a graceful exit.</span><br><span style="color: hsl(120, 100%, 40%);">+  * If in ST_DLCX_RESP, a DLCX was already sent and we did not get a</span><br><span style="color: hsl(120, 100%, 40%);">+    * response. No point in sending another one. */</span><br><span style="color: hsl(120, 100%, 40%);">+      if (fi->state != ST_DLCX_RESP && strlen(mgcp_ctx->conn_id)) {</span><br><span>          LOGPFSML(fi, LOGL_NOTICE,</span><br><span>                     "MGW/DLCX: FSM termination with connections still present, sending unconditional DLCX...\n");</span><br><span>             msg = make_dlcx_msg(mgcp_ctx);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/24143">change 24143</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-mgw/+/24143"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I35e415f67946b73c74408afe265618cfe4f72b0b </div>
<div style="display:none"> Gerrit-Change-Number: 24143 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </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>