diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-08 17:17:34 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-08 17:17:34 +0000 |
commit | 55bc25751adf5da6589b84bcdb19a2c9beb5528f (patch) | |
tree | 165bcc50d4ce6cf222998a26a11d5b1c87a2945a /apps | |
parent | 349ba3ca9bbcee6695fd82b9f8a864507e6f1fd0 (diff) |
Update groupcount / db documentation (bug #4200, etc)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5606 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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; |