summaryrefslogtreecommitdiff
path: root/channels/chan_motif.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-11-15 19:01:21 +0000
committerJoshua Colp <jcolp@digium.com>2014-11-15 19:01:21 +0000
commit49e63a191dd11e498e0c76e931b6823619f84c33 (patch)
treeb9f0af56e9251747d1fae1b8487490bce43b798c /channels/chan_motif.c
parent9d2882d274da46529d60a6856dbbad056b067379 (diff)
chan_motif / chan_pjsip: Fix incorrect "No such module" messages when reloading.
For chan_motif the direct return value of the underlying config options framework was passed back. This can relay various states which the module loader would not interpet as success. It has been changed so only on errors will it report back an error. For chan_pjsip the code implemented a dummy reload function which always returned an error. This has been removed as all configuration is held within res_pjsip instead. ASTERISK-23651 #close Reported by: Rusty Newton ........ Merged revisions 427981 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 427982 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_motif.c')
-rw-r--r--channels/chan_motif.c6
1 files changed, 5 insertions, 1 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 */