deprecate EnumLookup() application
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 14 Sep 2005 14:26:27 +0000 (14:26 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 14 Sep 2005 14:26:27 +0000 (14:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6591 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_enumlookup.c

index 6a91420..8f3acab 100755 (executable)
@@ -71,8 +71,14 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
        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;