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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mgcp_vty: fix config write for trunk 0<br><br>When a trunk 0 is created (which is legal) than it is impossible to<br>write this trunk back to the config. The reason for this that there is<br>still a filtering in place from the time where trunk 0 was not allowed.<br>This filter needs to be extended to filter only virtual trunk 0 but not<br>E1 trunk 0 out.<br><br>Change-Id: Iad6b577b5a711c35f98c477351fde567d8c87298<br>---<br>M src/libosmo-mgcp/mgcp_vty.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libosmo-mgcp/mgcp_vty.c b/src/libosmo-mgcp/mgcp_vty.c</span><br><span>index 74e8da0..681ca99 100644</span><br><span>--- a/src/libosmo-mgcp/mgcp_vty.c</span><br><span>+++ b/src/libosmo-mgcp/mgcp_vty.c</span><br><span>@@ -958,7 +958,8 @@</span><br><span>                    config of trunk 0 here. The configuration for the virtual</span><br><span>                    trunk is written by config_write_mgcp(). */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-              if (trunk->trunk_nr == MGCP_VIRT_TRUNK_ID)</span><br><span style="color: hsl(120, 100%, 40%);">+         if (trunk->trunk_type == MGCP_TRUNK_VIRTUAL</span><br><span style="color: hsl(120, 100%, 40%);">+                    && trunk->trunk_nr == MGCP_VIRT_TRUNK_ID)</span><br><span>                     continue;</span><br><span> </span><br><span>                vty_out(vty, " trunk %d%s", trunk->trunk_nr, VTY_NEWLINE);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/21363">change 21363</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/+/21363"/><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: Iad6b577b5a711c35f98c477351fde567d8c87298 </div>
<div style="display:none"> Gerrit-Change-Number: 21363 </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-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>