Skip to content

Commit 390d8f9

Browse files
gtjosephgithub-actions[bot]
authored andcommitted
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
1 parent 4aad564 commit 390d8f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

res/ari/config.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ static int outbound_websocket_apply(const struct ast_sorcery *sorcery, void *obj
119119

120120
ast_debug(3, "%s: Initializing outbound websocket\n", id);
121121

122+
if (!owc->websocket_client) {
123+
ast_log(LOG_WARNING, "%s: Outbound websocket missing websocket_client_id\n", id);
124+
res = -1;
125+
}
126+
122127
if (ast_strlen_zero(owc->apps)) {
123128
ast_log(LOG_WARNING, "%s: Outbound websocket missing apps\n", id);
124129
res = -1;

0 commit comments

Comments
 (0)