diff options
author | Scott Emidy <jemidy@digium.com> | 2015-08-07 14:20:29 -0500 |
---|---|---|
committer | Scott Emidy <jemidy@digium.com> | 2015-08-07 14:55:53 -0500 |
commit | df9ce3636695781be6ab2479f90766a56747dbd7 (patch) | |
tree | 48963ab145b594360a26dc3ea9085c1e2c5dd970 /res/ari/resource_asterisk.h | |
parent | e9f1bc08cbda7759707c30b8883b266555d0fefc (diff) |
ARI: Retrieve existing log channels
An http request can be sent to get the existing Asterisk logs.
The command "curl -v -u user:pass -X GET 'http://localhost:8088
/ari/asterisk/logging'" can be run in the terminal to access the
newly implemented functionality.
* Retrieve all existing log channels
ASTERISK-25252
Change-Id: I7bb08b93e3b938c991f3f56cc5d188654768a808
Diffstat (limited to 'res/ari/resource_asterisk.h')
-rw-r--r-- | res/ari/resource_asterisk.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/res/ari/resource_asterisk.h b/res/ari/resource_asterisk.h index 5f84d0761..a4a7da080 100644 --- a/res/ari/resource_asterisk.h +++ b/res/ari/resource_asterisk.h @@ -194,6 +194,17 @@ struct ast_ari_asterisk_reload_module_args { * \param[out] response HTTP response */ void ast_ari_asterisk_reload_module(struct ast_variable *headers, struct ast_ari_asterisk_reload_module_args *args, struct ast_ari_response *response); +/*! Argument struct for ast_ari_asterisk_list_log_channels() */ +struct ast_ari_asterisk_list_log_channels_args { +}; +/*! + * \brief Gets Asterisk log channel information. + * + * \param headers HTTP headers + * \param args Swagger parameters + * \param[out] response HTTP response + */ +void ast_ari_asterisk_list_log_channels(struct ast_variable *headers, struct ast_ari_asterisk_list_log_channels_args *args, struct ast_ari_response *response); /*! Argument struct for ast_ari_asterisk_add_log() */ struct ast_ari_asterisk_add_log_args { /*! The log channel to add */ |