diff options
author | Mark Spencer <markster@digium.com> | 2005-05-08 17:08:25 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-05-08 17:08:25 +0000 |
commit | 0e57cede5542563198bf25c8431e65bae554b26f (patch) | |
tree | 03db33ccc43832a4a7463ccbb92f0a04034a8e03 /apps/app_db.c | |
parent | f9417375dc96c96ccade3b34e3df96009819d335 (diff) |
Convert app_db to function variables (bug #4201)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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? */ |