[Asterisk-cvs] asterisk/apps app_enumlookup.c,1.18,1.19

kpfleming kpfleming
Wed Sep 14 10:27:59 CDT 2005


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

Modified Files:
	app_enumlookup.c 
Log Message:
deprecate EnumLookup() application


Index: app_enumlookup.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_enumlookup.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- app_enumlookup.c	14 Sep 2005 01:36:15 -0000	1.18
+++ app_enumlookup.c	14 Sep 2005 14:26:27 -0000	1.19
@@ -71,8 +71,14 @@
 	char dest[80];
 	char tmp[256];
 	char *c,*t;
+	static int dep_warning=0;
 
-       tech[0] = '\0';
+	if (!dep_warning) {
+		ast_log(LOG_WARNING, "The application EnumLookup is deprecated.  Please use the ENUMLOOKUP() function instead.\n");
+		dep_warning=1;
+	}
+
+	tech[0] = '\0';
 
 	struct localuser *u;
 




More information about the svn-commits mailing list