diff options
author | Benjamin Ford <bford@digium.com> | 2015-07-14 13:12:32 -0500 |
---|---|---|
committer | Benjamin Ford <bford@digium.com> | 2015-07-14 13:15:39 -0500 |
commit | 1aafadf8148a7cf66f73beeb6fe711d98b678fc5 (patch) | |
tree | cf4d8e057b7c39fba6cc4706bd00c01cd62a5dad /include | |
parent | 9dcae23cfceedece83568d2194df00ca62f7d53c (diff) |
ARI: Added new functionality to reload a single module.
An http request can be sent to reload an Asterisk module. If the
module can not be reloaded or is not already loaded, an error
response will be returned.
The command "curl -v -u user:pass -X PUT 'http://localhost:8088
/ari/asterisk/modules/{moduleName}'" (or something similar, based
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 reloaded through http requests
ASTERISK-25173
Change-Id: I289188bcae182b2083bdbd9ebfffd50b62f58ae1
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/ari.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/ari.h b/include/asterisk/ari.h index 00769eea5..c3df46a2b 100644 --- a/include/asterisk/ari.h +++ b/include/asterisk/ari.h @@ -225,6 +225,11 @@ void ast_ari_response_ok(struct ast_ari_response *response, void ast_ari_response_no_content(struct ast_ari_response *response); /*! + * \brief Fill in a <tt>Accepted</tt> (202) \a ast_ari_response. + */ +void ast_ari_response_accepted(struct ast_ari_response *response); + +/*! * \brief Fill in a <tt>Created</tt> (201) \a ast_ari_response. * \param response Response to fill in. * \param url URL to the created resource. |