mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
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
This commit is contained in:
@@ -98,6 +98,21 @@ typedef unsigned int ast_callid;
|
||||
void ast_log_callid(int level, const char *file, int line, const char *function, ast_callid callid, const char *fmt, ...)
|
||||
__attribute__((format(printf, 6, 7)));
|
||||
|
||||
/*!
|
||||
* \brief Retrieve the existing log channels
|
||||
* \param logentry A callback to an updater function
|
||||
* \param data Data passed into the callback for manipulation
|
||||
*
|
||||
* For each of the logging channels, logentry will be executed with the
|
||||
* channel file name, log type, status of the log, and configuration levels.
|
||||
*
|
||||
* \retval 0 on success
|
||||
* \retval 1 on failure
|
||||
* \retval -2 on allocation error
|
||||
*/
|
||||
int ast_logger_get_channels(int (*logentry)(const char *channel, const char *type,
|
||||
const char *status, const char *configuration, void *data), void *data);
|
||||
|
||||
/*!
|
||||
* \brief Create a log channel
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user