mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Merged revisions 63286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r63286 | file | 2007-05-07 17:45:01 -0400 (Mon, 07 May 2007) | 10 lines Merged revisions 63285 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r63285 | file | 2007-05-07 17:39:52 -0400 (Mon, 07 May 2007) | 2 lines Properly handle what happens during a masquerade in relation to group counting. (issue #9657 reported by ramonpeek) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
14
main/app.c
14
main/app.c
@@ -894,6 +894,20 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category)
|
||||
return count;
|
||||
}
|
||||
|
||||
int ast_app_group_update(struct ast_channel *old, struct ast_channel *new)
|
||||
{
|
||||
struct ast_group_info *gi = NULL;
|
||||
|
||||
AST_LIST_LOCK(&groups);
|
||||
AST_LIST_TRAVERSE(&groups, gi, list) {
|
||||
if (gi->chan == old)
|
||||
gi->chan = new;
|
||||
}
|
||||
AST_LIST_UNLOCK(&groups);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ast_app_group_discard(struct ast_channel *chan)
|
||||
{
|
||||
struct ast_group_info *gi = NULL;
|
||||
|
Reference in New Issue
Block a user