[Asterisk-code-review] func_groupcount.c: Adding Group Variables + additional Group functions (asterisk[18])
Mark Murawski
asteriskteam at digium.com
Fri Jan 13 15:05:38 CST 2023
Hello Sean Bright, N A, Friendly Automation,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/c/asterisk/+/17655
to look at the new patch set (#20).
Change subject: func_groupcount.c: Adding Group Variables + additional Group functions
......................................................................
func_groupcount.c: Adding Group Variables + additional Group functions
DumpGroups
-------------------
* New application. This will dump all channel group membership and associated
variables
Groups and Group Variables
------------------
* Group variables can be set on a group once the group is created
When a group is destroyed, all variables on that group are also destroyed
A group variable is somewhat like a global variable, but it's on a per-group
basis.
GroupSet - Adds functionality to the manager to be able to set a GROUP()
on a channel.
GroupsShowChannels - Show each channel and it's associated groups
(a channel will be repeated for each group at category
it's a member of)
GroupsShowVariables - Show variables in each group at category, one event per
group, all variables are contained in each
group at category event
GroupVarSet - Set a group variable (the group must already exist)
GroupVarGet - Get a group variable
* New Manager events:
------------------
GroupCreate - Event is fired any time a group is made,
ie: Set(GROUP=x) or Set(GROUP()=x at y).
This event is only sent on when a channel is added to a group
that did not exist previously.
GroupChannelAdd - Event is fired any time a channel is added to a group
GroupChannelRemove - Event is fired any time a channel is removed from a
group
GroupDestroy - Event is fired when there are no longer any channels assigned
to the group
GroupVarSet - Event is fired when any group variable is changed
* New CLI Command
---------------
group show variables
* New Application
---------------
DumpGroups() - Show groups and group assigments (similar to DumpChan)
ASTERISK-15439 #close
Change-Id: I23e48d1cdfc8adaffdfec2e936e56143603914f2
---
A doc/CHANGES-staging/func_groupcount_group_variables.txt
M funcs/func_groupcount.c
M include/asterisk/app.h
M include/asterisk/channel.h
M main/app.c
M main/cli.c
6 files changed, 1,949 insertions(+), 17 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/55/17655/20
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17655
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I23e48d1cdfc8adaffdfec2e936e56143603914f2
Gerrit-Change-Number: 17655
Gerrit-PatchSet: 20
Gerrit-Owner: Mark Murawski <markm at intellasoft.net>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: N A <asterisk at phreaknet.org>
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-CC: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230113/06e8d915/attachment.html>
More information about the asterisk-code-review
mailing list