mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-16 09:52:24 +00:00
res_ari: Ensure outbound websocket config has a websocket_client_id.
Added a check to outbound_websocket_apply() that makes sure an outbound websocket config object in ari.conf has a websocket_client_id parameter. Resolves: #1457
This commit is contained in:
@@ -119,6 +119,11 @@ static int outbound_websocket_apply(const struct ast_sorcery *sorcery, void *obj
|
||||
|
||||
ast_debug(3, "%s: Initializing outbound websocket\n", id);
|
||||
|
||||
if (!owc->websocket_client) {
|
||||
ast_log(LOG_WARNING, "%s: Outbound websocket missing websocket_client_id\n", id);
|
||||
res = -1;
|
||||
}
|
||||
|
||||
if (ast_strlen_zero(owc->apps)) {
|
||||
ast_log(LOG_WARNING, "%s: Outbound websocket missing apps\n", id);
|
||||
res = -1;
|
||||
|
Reference in New Issue
Block a user