[Asterisk-cvs] asterisk/channels chan_h323.c,1.8,1.9

jeremy at lists.digium.com jeremy at lists.digium.com
Tue Oct 21 03:26:49 CDT 2003


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv19002

Modified Files:
	chan_h323.c 
Log Message:
make chan_h323 not load if no config file is found


Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- chan_h323.c	29 Sep 2003 09:18:56 -0000	1.8
+++ chan_h323.c	21 Oct 2003 08:52:51 -0000	1.9
@@ -1389,7 +1389,7 @@
 	/* 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 @@
 			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 */




More information about the svn-commits mailing list