<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7370">View Change</a></p><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: Ia79bdef1298de0c7ba9e88bc2952b22b46502e73<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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/70/7370/1</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/7370">change 7370</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/7370"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia79bdef1298de0c7ba9e88bc2952b22b46502e73 </div>
<div style="display:none"> Gerrit-Change-Number: 7370 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>