From: Benjamin Ford Date: Wed, 15 Jul 2015 15:28:00 +0000 (-0500) Subject: ARI: Fixed unload mode for unload module. X-Git-Tag: 13.5.0-rc1~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F892%2F1;p=thirdparty%2Fasterisk.git ARI: Fixed unload mode for unload module. Changed the unload mode to AST_FORCE_SOFT from AST_FORCE_FIRM, which would unload a module even if it was in use. * Changed unload mode to proper mode ASTERISK-25173 Change-Id: If2402487b5bce05d9770f25f65f5c8e292ad5533 --- diff --git a/res/ari/resource_asterisk.c b/res/ari/resource_asterisk.c index 4c2948d2b8..6fabb2074e 100644 --- a/res/ari/resource_asterisk.c +++ b/res/ari/resource_asterisk.c @@ -300,7 +300,7 @@ void ast_ari_asterisk_unload_module(struct ast_variable *headers, struct ast_ari_response *response) { int unload_result; - enum ast_module_unload_mode unload_mode = AST_FORCE_FIRM; + enum ast_module_unload_mode unload_mode = AST_FORCE_SOFT; ast_assert(response != NULL);