From: Rodrigo Ramírez Norambuena Date: Sat, 22 Aug 2015 02:50:31 +0000 (-0400) Subject: chan_sip.c: Validation on module reload X-Git-Tag: 13.6.0-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=865377fc38134234f17def6634c47a989cf0e77a;p=thirdparty%2Fasterisk.git chan_sip.c: Validation on module reload Change validation on reload module because now used the cli function for reload. The sip_reload() function never fail and ever return NULL for this reason on reload() now use the call the sip_reload() and return AST_MODULE_LOAD_SUCCESS. This problem is dectected on reload by PUT method on ARI, getting always 404 http code when the module is reloaded. ASTERISK-25325 #close Reporte by: Rodrigo Ramírez Norambuena Change-Id: I41215877fb2cfc589e0d4d464000cf6825f4d7fb --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 286386d80d..cfbc3d3134 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -33131,10 +33131,8 @@ static char *sip_reload(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a /*! \brief Part of Asterisk module interface */ static int reload(void) { - if (sip_reload(0, 0, NULL)) { - return 0; - } - return 1; + sip_reload(0, 0, NULL); + return AST_MODULE_LOAD_SUCCESS; } /*! \brief Return the first entry from ast_sockaddr_resolve filtered by address family