aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
authortholo <tholo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-21 13:12:30 +0000
committertholo <tholo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-21 13:12:30 +0000
commit6528d5f1c709d1f824f71b8f83d6bf150377f5c2 (patch)
tree38d93f156f59692ce685fa1f7c5629267db12785 /channels/chan_h323.c
parent6d151c2e13b4d3bdf3727fa79e559e3a90b0026c (diff)
make chan_h323 not load if no config file is found
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1641 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rwxr-xr-xchannels/chan_h323.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 312a8bd2a..8d5c72063 100755
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -1389,7 +1389,7 @@ int reload_config(void)
/* We *must* have a config file otherwise stop immediately */
if (!cfg) {
ast_log(LOG_NOTICE, "Unable to load config %s, H.323 disabled\n", config);
- return 0;
+ return 1;
}
h323debug=0;
@@ -1747,7 +1747,7 @@ int load_module()
if (h323_set_gk(gatekeeper_discover, gatekeeper, secret)) {
ast_log(LOG_ERROR, "Gatekeeper registration failed.\n");
// h323_end_process();
- return -1;
+ return 0;
}
}
/* And start the monitor for the first time */