mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-17 10:11:53 +00:00
ARI: Added new functionality to load a single module.
An http request can be sent to load an Asterisk module. If the module can not be loaded or is loaded already, an error response will be returned. The command curl -v -u user:pass -X POST '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 * Asterisk modules can be loaded through http requests ASTERISK-25173 Change-Id: I9e05d5b8c5c666ecfef341504f9edc1aa84fda33
This commit is contained in:
committed by
Benjamin Keith Ford
parent
3412b0f1ad
commit
aa5707b889
@@ -91,6 +91,19 @@ struct ast_ari_asterisk_get_module_args {
|
||||
* \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_load_module() */
|
||||
struct ast_ari_asterisk_load_module_args {
|
||||
/*! Module's name */
|
||||
const char *module_name;
|
||||
};
|
||||
/*!
|
||||
* \brief Load an Asterisk module.
|
||||
*
|
||||
* \param headers HTTP headers
|
||||
* \param args Swagger parameters
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_asterisk_load_module(struct ast_variable *headers, struct ast_ari_asterisk_load_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 */
|
||||
|
Reference in New Issue
Block a user