mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@63328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
14
app.c
14
app.c
@@ -1113,6 +1113,20 @@ int ast_app_group_match_get_count(char *groupmatch, char *category)
|
|||||||
return count;
|
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)
|
int ast_app_group_discard(struct ast_channel *chan)
|
||||||
{
|
{
|
||||||
struct ast_group_info *gi = NULL;
|
struct ast_group_info *gi = NULL;
|
||||||
|
@@ -3106,7 +3106,7 @@ int ast_do_masquerade(struct ast_channel *original)
|
|||||||
original->fds[x] = clone->fds[x];
|
original->fds[x] = clone->fds[x];
|
||||||
}
|
}
|
||||||
/* Drop group from original */
|
/* Drop group from original */
|
||||||
ast_app_group_discard(original);
|
ast_app_group_update(clone, original);
|
||||||
clone_variables(original, clone);
|
clone_variables(original, clone);
|
||||||
AST_LIST_HEAD_INIT_NOLOCK(&clone->varshead);
|
AST_LIST_HEAD_INIT_NOLOCK(&clone->varshead);
|
||||||
/* Presense of ADSI capable CPE follows clone */
|
/* Presense of ADSI capable CPE follows clone */
|
||||||
|
@@ -188,6 +188,9 @@ int ast_app_group_match_get_count(char *groupmatch, char *category);
|
|||||||
/*! Discard all group counting for a channel */
|
/*! Discard all group counting for a channel */
|
||||||
int ast_app_group_discard(struct ast_channel *chan);
|
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 */
|
/*! Lock the group count list */
|
||||||
int ast_app_group_list_lock(void);
|
int ast_app_group_list_lock(void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user