diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-08 17:08:25 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-08 17:08:25 +0000 |
commit | 9eeaaa3915a7353b014283599670d3c4ccb05189 (patch) | |
tree | 03db33ccc43832a4a7463ccbb92f0a04034a8e03 /apps/app_db.c | |
parent | d29b05e5a75af26c94a799ca25c5f5b6bed8d739 (diff) |
Convert app_db to function variables (bug #4201)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5604 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_db.c')
-rwxr-xr-x | apps/app_db.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/app_db.c b/apps/app_db.c index a97519332..d1677b858 100755 --- a/apps/app_db.c +++ b/apps/app_db.c @@ -137,7 +137,13 @@ static int put_exec(struct ast_channel *chan, void *data) { int arglen; char *argv, *value, *family, *key; + static int dep_warning = 0; + if (!dep_warning) { + ast_log(LOG_WARNING, "This application has been deprecated, please use the ${DB(family/key)} function instead.\n"); + dep_warning = 1; + } + arglen = strlen(data); argv = alloca(arglen + 1); if (!argv) { /* Why would this fail? */ @@ -172,7 +178,13 @@ static int get_exec(struct ast_channel *chan, void *data) int arglen; char *argv, *varname, *family, *key; char dbresult[256]; + static int dep_warning = 0; + if (!dep_warning) { + ast_log(LOG_WARNING, "This application has been deprecated, please use the ${DB(family/key)} function instead.\n"); + dep_warning = 1; + } + arglen = strlen(data); argv = alloca(arglen + 1); if (!argv) { /* Why would this fail? */ |