[svn-commits] file: trunk r63287 - in /trunk: ./ include/asterisk/
main/
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Mon May 7 14:47:08 MST 2007
Author: file
Date: Mon May 7 16:47:08 2007
New Revision: 63287
URL: http://svn.digium.com/view/asterisk?view=rev&rev=63287
Log:
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)
........
................
Modified:
trunk/ (props changed)
trunk/include/asterisk/app.h
trunk/main/app.c
trunk/main/channel.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/include/asterisk/app.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/app.h?view=diff&rev=63287&r1=63286&r2=63287
==============================================================================
--- trunk/include/asterisk/app.h (original)
+++ trunk/include/asterisk/app.h Mon May 7 16:47:08 2007
@@ -227,6 +227,9 @@
/*! Discard all group counting for a channel */
int ast_app_group_discard(struct ast_channel *chan);
+/*! Update all group counting for a channel to a new one */
+int ast_app_group_update(struct ast_channel *old, struct ast_channel *new);
+
/*! Lock the group count list */
int ast_app_group_list_lock(void);
Modified: trunk/main/app.c
URL: http://svn.digium.com/view/asterisk/trunk/main/app.c?view=diff&rev=63287&r1=63286&r2=63287
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Mon May 7 16:47:08 2007
@@ -892,6 +892,20 @@
regfree(®exbuf);
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)
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=63287&r1=63286&r2=63287
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Mon May 7 16:47:08 2007
@@ -3575,7 +3575,7 @@
original->fds[x] = clone->fds[x];
}
- ast_app_group_discard(original);
+ ast_app_group_update(clone, original);
/* move any whisperer over */
ast_channel_whisper_stop(original);
More information about the svn-commits
mailing list