diff options
author | Benjamin Ford <bford@digium.com> | 2015-07-29 14:17:09 -0500 |
---|---|---|
committer | Benjamin Keith Ford <bford@digium.com> | 2015-07-31 11:46:08 -0500 |
commit | 1f02d20da41ef79e913317795e44dbc6a34464f9 (patch) | |
tree | 1dad3d3a1e9c9cf3bcdddd8136aeb1ed23e194f8 /res/ari/resource_asterisk.h | |
parent | d61ea4bcc28a9504d44534f435be1515d713a496 (diff) |
ARI: Rotate log channels.
An http request can be sent to rotate a specified log channel.
If the channel does not exist, an error response will be
returned.
The command "curl -v -u user:pass -X PUT 'http://localhost:8088
/ari/asterisk/logging/logChannelName/rotate'" can be run in the
terminal to access this new functionality.
* Added the ability to rotate log files through ARI
ASTERISK-25252
Change-Id: Iaefa21cbbc1b29effb33004ee3d89c977e76ab01
Diffstat (limited to 'res/ari/resource_asterisk.h')
-rw-r--r-- | res/ari/resource_asterisk.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/res/ari/resource_asterisk.h b/res/ari/resource_asterisk.h index 1afc09317..e271b0547 100644 --- a/res/ari/resource_asterisk.h +++ b/res/ari/resource_asterisk.h @@ -194,6 +194,19 @@ 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_rotate_log() */ +struct ast_ari_asterisk_rotate_log_args { + /*! Log channel's name */ + const char *log_channel_name; +}; +/*! + * \brief Rotates a log channel. + * + * \param headers HTTP headers + * \param args Swagger parameters + * \param[out] response HTTP response + */ +void ast_ari_asterisk_rotate_log(struct ast_variable *headers, struct ast_ari_asterisk_rotate_log_args *args, struct ast_ari_response *response); /*! Argument struct for ast_ari_asterisk_get_global_var() */ struct ast_ari_asterisk_get_global_var_args { /*! The variable to get */ |