mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
ari: Allow variables to be set on channel create.
This change adds the same variable functionality that is available for originating a channel to the create call. Now when creating a channel you can specify dialplan variables to set instead of having to do another API call. ASTERISK-28896 Change-Id: If13997ba818136d7c070585504fc4164378aa992
This commit is contained in:
committed by
Joshua Colp
parent
c8dec423d2
commit
15cbff9d54
@@ -341,10 +341,7 @@ static void ast_ari_channels_create_cb(
|
||||
} else
|
||||
{}
|
||||
}
|
||||
if (ast_ari_channels_create_parse_body(body, &args)) {
|
||||
ast_ari_response_alloc_failed(response);
|
||||
goto fin;
|
||||
}
|
||||
args.variables = body;
|
||||
ast_ari_channels_create(headers, &args, response);
|
||||
#if defined(AST_DEVMODE)
|
||||
code = response->response_code;
|
||||
|
Reference in New Issue
Block a user