[Asterisk-cvs] asterisk/include/asterisk app.h,1.15,1.16

markster at lists.digium.com markster at lists.digium.com
Sun Oct 3 12:33:08 CDT 2004


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

Modified Files:
	app.h 
Log Message:
Improve groupcount handling (bug #2529) thanks!


Index: app.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/app.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- app.h	18 Sep 2004 14:01:35 -0000	1.15
+++ app.h	3 Oct 2004 16:34:52 -0000	1.16
@@ -68,6 +68,20 @@
 //  permitted silence time in milliseconds of 'maxsilence' under 'silencethreshold' or use '-1' for either or both parameters for defaults.
 int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime_sec, char *fmt, int *duration, int beep, int silencethreshold, int maxsilence_ms);
 
+#define GROUP_CATEGORY_PREFIX "GROUP"
+
+//! Split a group string into group and category, returning a default category if none is provided.
+int ast_app_group_split_group(char *data, char *group, int group_max, char *category, int category_max);
+
+//! Set the group for a channel, splitting the provided data into group and category, if specified.
+int ast_app_group_set_channel(struct ast_channel *chan, char *data);
+
+//! Get the current channel count of the specified group and category.
+int ast_app_group_get_count(char *group, char *category);
+
+//! Get the current channel count of all groups that match the specified pattern and category.
+int ast_app_group_match_get_count(char *groupmatch, char *category);
+
 #if defined(__cplusplus) || defined(c_plusplus)
 }
 #endif




More information about the svn-commits mailing list