summaryrefslogtreecommitdiff
path: root/apps/app_db.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-05-08 17:08:25 +0000
committerMark Spencer <markster@digium.com>2005-05-08 17:08:25 +0000
commit0e57cede5542563198bf25c8431e65bae554b26f (patch)
tree03db33ccc43832a4a7463ccbb92f0a04034a8e03 /apps/app_db.c
parentf9417375dc96c96ccade3b34e3df96009819d335 (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-xapps/app_db.c12
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? */