diff options
author | Benjamin Ford <bford@digium.com> | 2015-06-26 10:57:15 -0500 |
---|---|---|
committer | Benjamin Ford <bford@digium.com> | 2015-07-10 11:15:25 -0500 |
commit | 47ea312b2402bf31a0f1ccb9d73a6b8b7d814b09 (patch) | |
tree | 3a1187d4c9fe2513247143d188a6669441328955 /include | |
parent | 0a1700d286ad130ab29ce70e8b291fa1f2f567a7 (diff) |
ARI: Added new functionality to get all module information.
An http request can be sent to retrieve a list of all existing modules,
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" (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 modules can now be retrieved
Change-Id: I63cbbf0ec0c3544cc45ed2a588dceabe91c5e0b0
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/module.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 6d5e04dfc..0d1eb4eb6 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -161,6 +161,24 @@ int ast_update_module_list(int (*modentry)(const char *module, const char *descr const char *like); /*! + * \brief Ask for a list of modules, descriptions, use counts and status. + * \param modentry A callback to an updater function + * \param like + * \param data Data passed into the callback for manipulation + * + * For each of the modules loaded, modentry will be executed with the resource, + * description, and usecount values of each particular module. + * + * \return the number of modules loaded + * \since 13.5.0 + */ +int ast_update_module_list_data(int (*modentry)(const char *module, const char *description, + int usecnt, const char *status, const char *like, + enum ast_module_support_level support_level, + void *data), + const char *like, void *data); + +/*! * \brief Check if module with the name given is loaded * \param name Module name, like "chan_sip.so" * \retval 1 if true |