diff options
author | Rodrigo Ramírez Norambuena <a@rodrigoramirez.com> | 2015-08-21 22:50:31 -0400 |
---|---|---|
committer | Rodrigo Ramírez Norambuena <a@rodrigoramirez.com> | 2015-09-10 18:00:58 -0300 |
commit | 34aa96bef4e5ab8384c3705af9fa9256b420f2ba (patch) | |
tree | f5f3738f8a7bb6032e52d101791f904daea076cc /channels/chan_sip.c | |
parent | 857923d9c7129ea7f78cc38d450554a7d61a6697 (diff) |
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
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1888091b8..b4b3d02e4 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -33153,10 +33153,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 |