<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18504">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18504/3/src/osmo-bsc/osmo_bsc_sigtran.c">File src/osmo-bsc/osmo_bsc_sigtran.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18504/3/src/osmo-bsc/osmo_bsc_sigtran.c@550">Patch Set #3, Line 550:</a> <code style="font-family:monospace,monospace">               /* Bind SCCP user. Bind only one user per sccp_instance. */</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Can you describe a bit better (in gerrit is fine) the situation here? So how can it happen than duri […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm implementing MSC pooling, i.e. there are multiple A links to MSCs.<br>Each MSC could technically be connected by a separate cs7 instance, but this patch is for the scenario where osmo-bsc has a single cs7 instance to connect to all of the MSCs in the pool (exactly how osmo-msc typically connects to multiple BSCs).</p><p style="white-space: pre-wrap; word-wrap: break-word;">So, the scenario is: osmo-bsc.cfg has 'msc 0', 'msc 1', 'msc 2', each with a different remote PC to reach a different MSC, but just one local PC for all of them. When 'msc 0' is set up, we do the "simple client" thing and establish AS and ASP, and also add an SCCP User with osmo-bsc's local PC. When 'msc 1' is set up, the "simple client" thing already sees things set up and skips putting up AS and ASP again. But the msc->a.sccp_user still needs to point at something to have a sender address for messages sent to this MSC. 'msc 0' has already set up an SCCP user for the local PC, and creating a second one would conflict. So, instead, first look for an already existing SCCP user, only create a local user the first time an MSC is set up on any given cs7 instance.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I also thought about iterating the cs7 instances instead of the mscs, but that would be a much larger patch, and is also less flexible (for some reason I don't recall ATM).</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18504">change 18504</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/+/18504"/><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: I6a2710edeb9ba047ae70e6b49d4c2e5f06d41a4e </div>
<div style="display:none"> Gerrit-Change-Number: 18504 </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: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 29 May 2020 20:30:14 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>