summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_motif.c6
-rw-r--r--channels/chan_pjsip.c7
2 files changed, 5 insertions, 8 deletions
diff --git a/channels/chan_motif.c b/channels/chan_motif.c
index e5e72283a..48f1b1fc7 100644
--- a/channels/chan_motif.c
+++ b/channels/chan_motif.c
@@ -2801,7 +2801,11 @@ end:
/*! \brief Reload module */
static int reload(void)
{
- return aco_process_config(&cfg_info, 1);
+ if (aco_process_config(&cfg_info, 1) == ACO_PROCESS_ERROR) {
+ return -1;
+ }
+
+ return 0;
}
/*! \brief Unload the jingle channel from Asterisk */
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index a37258a69..87ecabeaf 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -2341,12 +2341,6 @@ end:
return AST_MODULE_LOAD_FAILURE;
}
-/*! \brief Reload module */
-static int reload(void)
-{
- return -1;
-}
-
/*! \brief Unload the PJSIP channel from Asterisk */
static int unload_module(void)
{
@@ -2372,6 +2366,5 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "PJSIP Channel Driver"
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,
.unload = unload_module,
- .reload = reload,
.load_pri = AST_MODPRI_CHANNEL_DRIVER,
);