mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 12:12:48 +00:00
Merge "res_ari: Fix inverted test giving wrong error message." into 13
This commit is contained in:
@@ -957,14 +957,13 @@ void ast_ari_bridges_create_with_id(struct ast_variable *headers,
|
|||||||
|
|
||||||
if (bridge) {
|
if (bridge) {
|
||||||
/* update */
|
/* update */
|
||||||
if (!ast_strlen_zero(args->name)) {
|
if (!ast_strlen_zero(args->name)
|
||||||
if (!strcmp(args->name, bridge->name)) {
|
&& strcmp(args->name, bridge->name)) {
|
||||||
ast_ari_response_error(
|
ast_ari_response_error(
|
||||||
response, 500, "Internal Error",
|
response, 500, "Internal Error",
|
||||||
"Changing bridge name is not implemented");
|
"Changing bridge name is not implemented");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!ast_strlen_zero(args->type)) {
|
if (!ast_strlen_zero(args->type)) {
|
||||||
ast_ari_response_error(
|
ast_ari_response_error(
|
||||||
response, 500, "Internal Error",
|
response, 500, "Internal Error",
|
||||||
|
Reference in New Issue
Block a user