mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Added ARI resource /ari/asterisk/ping
Added ARI resource. GET /ari/asterisk/ping : It returns "pong" message with timestamp and asterisk id. It would be useful for simple heath check. Change-Id: I8d24e1dcc96f60f73437c68d9463ed746f688b29
This commit is contained in:
@@ -131,6 +131,17 @@ int ast_ari_asterisk_get_info_parse_body(
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_asterisk_get_info(struct ast_variable *headers, struct ast_ari_asterisk_get_info_args *args, struct ast_ari_response *response);
|
||||
/*! Argument struct for ast_ari_asterisk_ping() */
|
||||
struct ast_ari_asterisk_ping_args {
|
||||
};
|
||||
/*!
|
||||
* \brief Response pong message.
|
||||
*
|
||||
* \param headers HTTP headers
|
||||
* \param args Swagger parameters
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_asterisk_ping(struct ast_variable *headers, struct ast_ari_asterisk_ping_args *args, struct ast_ari_response *response);
|
||||
/*! Argument struct for ast_ari_asterisk_list_modules() */
|
||||
struct ast_ari_asterisk_list_modules_args {
|
||||
};
|
||||
|
Reference in New Issue
Block a user