diff options
author | Matt Jordan <mjordan@digium.com> | 2016-10-20 07:27:21 -0500 |
---|---|---|
committer | Matt Jordan <mjordan@digium.com> | 2016-11-01 09:06:54 -0500 |
commit | 29692d4aa42bc1ce9b737dd0fa4911a2bf5c3ce3 (patch) | |
tree | 999dce7c91a2943c9abb42917c38b93ec16d1952 /res/ari/ari_websockets.c | |
parent | 55435e211bed8f6c887c69b37b7be0ac85c1a2e6 (diff) |
res/stasis: Add CLI commands for displaying/debugging ARI apps
This patch adds three new CLI commands:
- ari show apps: list the registered ARI applications
- ari show app: show detailed information about an ARI application
- ari set debug: dump events being sent to an ARI application
Note that while these CLI commands live in the res_stasis module, we use
the 'ari' family for these commands. This was done as most users of
Asterisk aren't aware of the semantic differences between ARI and
res_stasis, and some 'ari' CLI commands already exist.
ASTERISK-26488 #close
Change-Id: I51ad6ff0cabee0d69db06858c13f18b1c513c9f5
Diffstat (limited to 'res/ari/ari_websockets.c')
-rw-r--r-- | res/ari/ari_websockets.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/ari/ari_websockets.c b/res/ari/ari_websockets.c index 8e11629ab..f06a66750 100644 --- a/res/ari/ari_websockets.c +++ b/res/ari/ari_websockets.c @@ -174,7 +174,9 @@ int ast_ari_websocket_session_write(struct ast_ari_websocket_session *session, return -1; } +#ifdef AST_DEVMODE ast_debug(3, "Examining ARI event (length %u): \n%s\n", (unsigned int) strlen(str), str); +#endif if (ast_websocket_write_string(session->ws_session, str)) { ast_log(LOG_NOTICE, "Problem occurred during websocket write, websocket closed\n"); return -1; |