Skip to content
Snippets Groups Projects
Commit f78360b3 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "res_ari: Fix inverted test giving wrong error message." into 15

parents 61158235 338e8c0f
No related branches found
No related tags found
No related merge requests found
......@@ -962,13 +962,12 @@ void ast_ari_bridges_create_with_id(struct ast_variable *headers,
if (bridge) {
/* update */
if (!ast_strlen_zero(args->name)) {
if (!strcmp(args->name, bridge->name)) {
ast_ari_response_error(
response, 500, "Internal Error",
"Changing bridge name is not implemented");
return;
}
if (!ast_strlen_zero(args->name)
&& strcmp(args->name, bridge->name)) {
ast_ari_response_error(
response, 500, "Internal Error",
"Changing bridge name is not implemented");
return;
}
if (!ast_strlen_zero(args->type)) {
ast_ari_response_error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment