diff options
author | Benjamin Ford <bford@digium.com> | 2015-07-13 10:54:51 -0500 |
---|---|---|
committer | Benjamin Keith Ford <bford@digium.com> | 2015-07-13 14:29:27 -0500 |
commit | 6a764db3700b31847138fcbfc7d811b96f99aca2 (patch) | |
tree | 95b8e5a4488fd4b59ab0ffa1d420b8a533196544 /res/ari/resource_asterisk.h | |
parent | 66b57b10f65bee8600c01a0fc03fb491edb7ad76 (diff) |
ARI: Added new functionality to get information on a single module.
An http request can be sent to retrieve information on a single
module, including the resource name, description, use count, status,
and support level.
The command "curl -v -u user:pass -X GET 'http://localhost:8088/ari
/asterisk/modules/{moduleName}'" (or something similar, depending on
configuration) can be run in the terminal to access this new
functionality.
For more information, see:
https://wiki.asterisk.org/wiki.display/~bford/Asterisk+ARI+Resource
* Added new ARI functionality
* Information on a single module can now be retrieved
ASTERISK-25173
Change-Id: Ibce5a94e70ecdf4e90329cf0ba66c33a62d37463
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 b09d2715a..8689f3ec1 100644 --- a/res/ari/resource_asterisk.h +++ b/res/ari/resource_asterisk.h @@ -78,6 +78,19 @@ struct ast_ari_asterisk_list_modules_args { * \param[out] response HTTP response */ void ast_ari_asterisk_list_modules(struct ast_variable *headers, struct ast_ari_asterisk_list_modules_args *args, struct ast_ari_response *response); +/*! Argument struct for ast_ari_asterisk_get_module() */ +struct ast_ari_asterisk_get_module_args { + /*! Module's name */ + const char *module_name; +}; +/*! + * \brief Get Asterisk module information. + * + * \param headers HTTP headers + * \param args Swagger parameters + * \param[out] response HTTP response + */ +void ast_ari_asterisk_get_module(struct ast_variable *headers, struct ast_ari_asterisk_get_module_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 */ |