aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-18 15:25:45 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-18 15:25:45 +0000
commitbfeff154048e93937876dac3757b23edbf0860e3 (patch)
treec14a1ef0f7c493585577e26aaec060622f338507
parentf5a07b9b6badf5f66fc39638621cc2aa294eac4a (diff)
Don't bother reloading chan_h323 if it did not load successfully in the first place. This would otherwise cause a crash.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75619 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_h323.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index cdc61440f..c13ede3c3 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -2999,6 +2999,10 @@ static int h323_do_reload(void)
static int reload(void)
{
+ if (!sched || !io) {
+ ast_log(LOG_NOTICE, "Unload and load chan_h323.so again in order to receive configuration changes.\n");
+ return 0;
+ }
return h323_reload(0, 0, NULL);
}