[Asterisk-cvs] asterisk/apps app_enumlookup.c,1.6,1.7

markster at lists.digium.com markster at lists.digium.com
Sun Oct 5 19:35:06 CDT 2003


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

Modified Files:
	app_enumlookup.c 
Log Message:
Fix ENUM to live w/out config file, and fix internationalization


Index: app_enumlookup.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_enumlookup.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- app_enumlookup.c	4 Oct 2003 21:58:16 -0000	1.6
+++ app_enumlookup.c	6 Oct 2003 00:36:17 -0000	1.7
@@ -147,8 +147,6 @@
 	struct ast_config *cfg;
 	char *s;
 
-	ast_log(LOG_WARNING, "reading enum config\n");
-
 	cfg = ast_load(ENUM_CONFIG);
 	if (cfg) {
 		if (!(s=ast_variable_retrieve(cfg, "general", "h323driver"))) {
@@ -159,8 +157,8 @@
 		ast_destroy(cfg);
 		return 0;
 	}
-	ast_log(LOG_WARNING, "Error reading enum config\n");
-	return -1;
+	ast_log(LOG_NOTICE, "No ENUM Config file, using defaults\n");
+	return 0;
 }
 
 




More information about the svn-commits mailing list