Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv24252/apps

Modified Files:
        app_groupcount.c 
Log Message:
Update groupcount / db documentation (bug #4200, etc)


Index: app_groupcount.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_groupcount.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- app_groupcount.c    5 May 2005 05:39:33 -0000       1.13
+++ app_groupcount.c    8 May 2005 17:17:34 -0000       1.14
@@ -32,8 +32,6 @@
 
 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 @@
        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 @@
        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 @@
 {
        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 @@
        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([EMAIL 
PROTECTED])\n");
                return res;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to