mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
ARI: Deleting log channels
An http request can be sent to delete a log channel in Asterisk. The command "curl -v -u user:pass -X DELETE 'http://localhost:8088 /ari/asterisk/logging/mylog'" can be run in the terminal to access the newly implemented functionally for ARI. * Able to delete log channels using ARI ASTERISK-25252 Change-Id: Id6eeb54ebcc511595f0418d586ff55914bc3aae6
This commit is contained in:
@@ -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_delete_log() */
|
||||
struct ast_ari_asterisk_delete_log_args {
|
||||
/*! Log channels name */
|
||||
const char *log_channel_name;
|
||||
};
|
||||
/*!
|
||||
* \brief Deletes a log channel.
|
||||
*
|
||||
* \param headers HTTP headers
|
||||
* \param args Swagger parameters
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_asterisk_delete_log(struct ast_variable *headers, struct ast_ari_asterisk_delete_log_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 */
|
||||
|
Reference in New Issue
Block a user