diff options
author | Mark Spencer <markster@digium.com> | 2005-05-08 17:17:34 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-05-08 17:17:34 +0000 |
commit | b33a3aa3e2e4667bacd56da30818e42d085a1967 (patch) | |
tree | 165bcc50d4ce6cf222998a26a11d5b1c87a2945a /apps/app_groupcount.c | |
parent | fa2381c19c520aca6c3566f924c5d4212e562695 (diff) |
Update groupcount / db documentation (bug #4200, etc)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_groupcount.c')
-rwxr-xr-x | apps/app_groupcount.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c index 6dcff608a..ed6ef2e6f 100755 --- a/apps/app_groupcount.c +++ b/apps/app_groupcount.c @@ -32,8 +32,6 @@ STANDARD_LOCAL_USER; LOCAL_USER_DECL; -static int deprecation_warning = 0; - static int group_count_exec(struct ast_channel *chan, void *data) { int res = 0; @@ -43,11 +41,12 @@ static int group_count_exec(struct ast_channel *chan, void *data) char category[80] = ""; char ret[80] = ""; char *grp; + static int deprecation_warning = 0; LOCAL_USER_ADD(u); if (!deprecation_warning) { - ast_log(LOG_WARNING, "The GetGroupCount and GetGroupMatchCount applications have been deprecated, please use the GROUP_COUNT and GROUP_MATCH_COUNT functions.\n"); + ast_log(LOG_WARNING, "The GetGroupCount application has been deprecated, please use the GROUP_COUNT function.\n"); deprecation_warning = 1; } @@ -75,11 +74,12 @@ static int group_match_count_exec(struct ast_channel *chan, void *data) char group[80] = ""; char category[80] = ""; char ret[80] = ""; + static int deprecation_warning = 0; LOCAL_USER_ADD(u); if (!deprecation_warning) { - ast_log(LOG_WARNING, "The GetGroupCount and GetGroupMatchCount applications have been deprecated, please use the GROUP_COUNT and GROUP_MATCH_COUNT functions.\n"); + ast_log(LOG_WARNING, "The GetGroupMatchCount application has been deprecated, please use the GROUP_MATCH_COUNT function.\n"); deprecation_warning = 1; } @@ -100,6 +100,12 @@ static int group_set_exec(struct ast_channel *chan, void *data) { int res = 0; struct localuser *u; + static int deprecation_warning = 0; + + if (!deprecation_warning) { + ast_log(LOG_WARNING, "The SetGroup application has been deprecated, please use the GROUP() function.\n"); + deprecation_warning = 1; + } LOCAL_USER_ADD(u); @@ -117,9 +123,15 @@ static int group_check_exec(struct ast_channel *chan, void *data) struct localuser *u; char limit[80]=""; char category[80]=""; + static int deprecation_warning = 0; LOCAL_USER_ADD(u); + if (!deprecation_warning) { + ast_log(LOG_WARNING, "The CheckGroup application has been deprecated, please use a combination of the GotoIf application and the GROUP_COUNT() function.\n"); + deprecation_warning = 1; + } + if (!data || ast_strlen_zero(data)) { ast_log(LOG_WARNING, "CheckGroup requires an argument(max[@category])\n"); return res; |