<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7367">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
George Joseph: Looks good to me, but someone else must approve
Sean Bright: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_ari: Fix inverted test giving wrong error message.<br><br>The patch for ASTERISK_24560 inverted a test checking if the bridge name<br>is being updated to a different name.<br><br>* Fix the test to return "Changing bridge name is not implemented" when<br>someone attempts to change the bridge name.<br><br>ASTERISK-27445<br><br>Change-Id: I4b70bf08b0e02e016108b077ff75b345dec12fc9<br>---<br>M res/ari/resource_bridges.c<br>1 file changed, 6 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/ari/resource_bridges.c b/res/ari/resource_bridges.c<br>index d6a0400..643cc30 100644<br>--- a/res/ari/resource_bridges.c<br>+++ b/res/ari/resource_bridges.c<br>@@ -957,13 +957,12 @@<br> <br> if (bridge) {<br> /* update */<br>- if (!ast_strlen_zero(args->name)) {<br>- if (!strcmp(args->name, bridge->name)) {<br>- ast_ari_response_error(<br>- response, 500, "Internal Error",<br>- "Changing bridge name is not implemented");<br>- return;<br>- }<br>+ if (!ast_strlen_zero(args->name)<br>+ && strcmp(args->name, bridge->name)) {<br>+ ast_ari_response_error(<br>+ response, 500, "Internal Error",<br>+ "Changing bridge name is not implemented");<br>+ return;<br> }<br> if (!ast_strlen_zero(args->type)) {<br> ast_ari_response_error(<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7367">change 7367</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.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.asterisk.org/7367"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I4b70bf08b0e02e016108b077ff75b345dec12fc9 </div>
<div style="display:none"> Gerrit-Change-Number: 7367 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>