mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Merge "res_ari: Fix inverted test giving wrong error message."
This commit is contained in:
@@ -968,13 +968,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(
|
||||
|
Reference in New Issue
Block a user