diff options
Diffstat (limited to 'res/res_ari_bridges.c')
-rw-r--r-- | res/res_ari_bridges.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_ari_bridges.c b/res/res_ari_bridges.c index a68fbf6ac..242512d90 100644 --- a/res/res_ari_bridges.c +++ b/res/res_ari_bridges.c @@ -127,6 +127,9 @@ static void ast_ari_bridges_create_cb( if (strcmp(i->name, "type") == 0) { args.type = (i->value); } else + if (strcmp(i->name, "name") == 0) { + args.name = (i->value); + } else {} } /* Look for a JSON request entity */ @@ -149,6 +152,10 @@ static void ast_ari_bridges_create_cb( if (field) { args.type = ast_json_string_get(field); } + field = ast_json_object_get(body, "name"); + if (field) { + args.name = ast_json_string_get(field); + } ast_ari_bridges_create(headers, &args, response); #if defined(AST_DEVMODE) code = response->response_code; |