<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/19002">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Revert "sccp_simple_client: only restart ASP if it was created"<br><br>This reverts commit ec20a6164b046f9b6190dc886c3cc8a8e1445739.<br><br>Reason for revert: this patch makes specific variants of 'cs7'<br>config fail. In short, if AS and ASP are configured and connected,<br>the ASP is never started. See OS#4635 for elaborate details.<br><br>Related: OS#4635<br>Change-Id: Id6e1fd69f312e5dc74e8718b2e2e678ad54bc16b<br>---<br>M src/sccp_user.c<br>1 file changed, 9 insertions(+), 9 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/sccp_user.c b/src/sccp_user.c</span><br><span>index 1278fae..d8a7357 100644</span><br><span>--- a/src/sccp_user.c</span><br><span>+++ b/src/sccp_user.c</span><br><span>@@ -597,16 +597,16 @@</span><br><span>                  talloc_free(asp_name);</span><br><span> </span><br><span>           osmo_ss7_as_add_asp(as, asp->cfg.name);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-              /* Ensure that the ASP we use is set to client mode. */</span><br><span style="color: hsl(0, 100%, 40%);">-         asp->cfg.is_server = false;</span><br><span style="color: hsl(0, 100%, 40%);">-          asp->cfg.role = OSMO_SS7_ASP_ROLE_ASP;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-               /* Restart ASP */</span><br><span style="color: hsl(0, 100%, 40%);">-               if (prot != OSMO_SS7_ASP_PROT_IPA)</span><br><span style="color: hsl(0, 100%, 40%);">-                      osmo_ss7_asp_use_default_lm(asp, LOGL_DEBUG);</span><br><span style="color: hsl(0, 100%, 40%);">-           osmo_ss7_asp_restart(asp);</span><br><span>   }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   /* Ensure that the ASP we use is set to client mode. */</span><br><span style="color: hsl(120, 100%, 40%);">+       asp->cfg.is_server = false;</span><br><span style="color: hsl(120, 100%, 40%);">+        asp->cfg.role = OSMO_SS7_ASP_ROLE_ASP;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   /* Restart ASP */</span><br><span style="color: hsl(120, 100%, 40%);">+     if (prot != OSMO_SS7_ASP_PROT_IPA)</span><br><span style="color: hsl(120, 100%, 40%);">+            osmo_ss7_asp_use_default_lm(asp, LOGL_DEBUG);</span><br><span style="color: hsl(120, 100%, 40%);">+ osmo_ss7_asp_restart(asp);</span><br><span>   LOGP(DLSCCP, LOGL_NOTICE, "%s: Using ASP instance %s\n", name,</span><br><span>          asp->cfg.name);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/19002">change 19002</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/libosmo-sccp/+/19002"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id6e1fd69f312e5dc74e8718b2e2e678ad54bc16b </div>
<div style="display:none"> Gerrit-Change-Number: 19002 </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: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>