mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +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:
committed by
George Joseph
parent
ffe6ecb40f
commit
19fc99a2fb
@@ -169,6 +169,24 @@ int ast_ari_validate_asterisk_info(struct ast_json *json);
|
||||
*/
|
||||
ari_validator ast_ari_validate_asterisk_info_fn(void);
|
||||
|
||||
/*!
|
||||
* \brief Validator for AsteriskPing.
|
||||
*
|
||||
* Asterisk ping information
|
||||
*
|
||||
* \param json JSON object to validate.
|
||||
* \returns True (non-zero) if valid.
|
||||
* \returns False (zero) if invalid.
|
||||
*/
|
||||
int ast_ari_validate_asterisk_ping(struct ast_json *json);
|
||||
|
||||
/*!
|
||||
* \brief Function pointer to ast_ari_validate_asterisk_ping().
|
||||
*
|
||||
* See \ref ast_ari_model_validators.h for more details.
|
||||
*/
|
||||
ari_validator ast_ari_validate_asterisk_ping_fn(void);
|
||||
|
||||
/*!
|
||||
* \brief Validator for BuildInfo.
|
||||
*
|
||||
@@ -1391,6 +1409,10 @@ ari_validator ast_ari_validate_application_fn(void);
|
||||
* - config: ConfigInfo
|
||||
* - status: StatusInfo
|
||||
* - system: SystemInfo
|
||||
* AsteriskPing
|
||||
* - asterisk_id: string (required)
|
||||
* - ping: string (required)
|
||||
* - timestamp: string (required)
|
||||
* BuildInfo
|
||||
* - date: string (required)
|
||||
* - kernel: string (required)
|
||||
|
Reference in New Issue
Block a user