aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 14:26:27 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 14:26:27 +0000
commitefff178d9e50e8a269d44d0b597385a6dfb82eba (patch)
treef125127e67462aa77e19af8119ab163b79a64b01
parent014c498d03f01dbc35c877a7825d06fce0c489c7 (diff)
deprecate EnumLookup() application
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6591 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_enumlookup.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c
index 6a9142005..8f3acabe5 100755
--- a/apps/app_enumlookup.c
+++ b/apps/app_enumlookup.c
@@ -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;