Convert app_db to function variables (bug #4201)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-05-08 17:08:25 +00:00
parent f9417375dc
commit 0e57cede55
3 changed files with 118 additions and 1 deletions

View File

@@ -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? */