diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-03 16:34:52 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-03 16:34:52 +0000 |
commit | 915feb91626a694d03d966334120d1d5b5a5a06e (patch) | |
tree | e7114a11b80882cc96c1d37a4d098539d277c79a /include | |
parent | c2b1557a20b8cfab2f17310f0c6e99966e6c8e9d (diff) |
Improve groupcount handling (bug #2529) thanks!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3898 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/app.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 4b26a73ea..6b11c650b 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -68,6 +68,20 @@ int ast_play_and_record(struct ast_channel *chan, char *playfile, char *recordfi // 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 |