summaryrefslogtreecommitdiff
path: root/channels/chan_pjsip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-11-15 19:00:40 +0000
committerJoshua Colp <jcolp@digium.com>2014-11-15 19:00:40 +0000
commit99414651e4a2bcfba1c6fdaab1768630cb805bd9 (patch)
tree9bbc9d8f15eb187589bdcb8ce0ca7867a06fc901 /channels/chan_pjsip.c
parentcbba061f13153537e6eae1460d1ba3ed75c7b733 (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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@427982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_pjsip.c')
-rw-r--r--channels/chan_pjsip.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index f200a05d3..11445464a 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -2292,12 +2292,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)
{
@@ -2323,6 +2317,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,
);