aboutsummaryrefslogtreecommitdiffstats
path: root/main/app.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-07 21:47:08 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-07 21:47:08 +0000
commit964b9adeef6af1103f68fd4f7da7d8707634dd3c (patch)
tree2f5e2d2152ad75356911f6e76c4460d03da70d69 /main/app.c
parentee0c97e2c0ee4e5592fcc260be9ad01b67c5a202 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@63287 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/app.c')
-rw-r--r--main/app.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/app.c b/main/app.c
index 91441f64e..10b9fea80 100644
--- a/main/app.c
+++ b/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;