<p>dexter <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/18754">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">endp: move endpoint name generation into mgcp_endp.c<br><br>When the trunk allocates its endpoints by using mgcp_endp_alloc()<br>ist passes the name for each endpoint as a parameter. In order to<br>generate the name endpoint specific knowlege is required.<br><br>This process can be simplified, since all what<br>mgcp_trunk_alloc_endpts() does is calling mgcp_endp_alloc() in a loop in<br>order to generate a consecuitve series of endpoints. The endpoint names<br>are generated from the index of the for loop.<br><br>When we just pass the index instead of the endpoint name to<br>mgcp_endp_alloc(), then we can greatly simplify the code since all the<br>knowledge about the name generation can go into mgcp_endp.c. The<br>endpoint will name itsself by the trunk properties and the index number<br>we pass with the allocator function.<br><br>Change-Id: I8dee07f1c63037d1f73113f69c612d1f2703cee5<br>Related: OS#2659<br>---<br>M include/osmocom/mgcp/mgcp_endp.h<br>M src/libosmo-mgcp/mgcp_endp.c<br>M src/libosmo-mgcp/mgcp_trunk.c<br>3 files changed, 18 insertions(+), 22 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/54/18754/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/18754">change 18754</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/+/18754"/><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: I8dee07f1c63037d1f73113f69c612d1f2703cee5 </div>
<div style="display:none"> Gerrit-Change-Number: 18754 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </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-MessageType: newpatchset </div>