[asterisk-bugs] [Asterisk 0016614]: [patch] Group Variables

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 15 13:14:42 CST 2010


The following issue is now READY FOR TESTING. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16614 
====================================================================== 
Reported By:                kobaz
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16614
Category:                   Functions/func_groupcount
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/464 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-15 10:04 CST
Last Modified:              2010-01-15 13:14 CST
====================================================================== 
Summary:                    [patch] Group Variables
Description: 
This patch allows for setting variables on a group of channels.
First a channel is assigned a group via dialplan GROUP() or GroupSet via
the ami (new command)
Then, variables can be set on that group with the GROUP_VAR() dialplan
function, or GroupVarSet in the manager

This patch also adds manager events for channel group changes, and
variable updates

When a group is no longer used (all channels referencing the group are
hung up, or all channels referencing the group have their group
changed/unset), variables are destroyed

new manager commands:
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 has to exist)
GroupVarGet - get a group variable

new manager events:
GroupCreate
GroupChannelAdd
GroupChannelRemove
GroupDestroy
GroupVarSet

====================================================================== 

---------------------------------------------------------------------- 
 (0116735) lmadsen (administrator) - 2010-01-15 13:14
 https://issues.asterisk.org/view.php?id=16614#c116735 
---------------------------------------------------------------------- 
I also think it might be useful to add some documentation here about one or
two examples of how this could be used (or how you're using it) and why you
might want to use it, in additional to how you can't or shouldn't use it.

I'd really like to start having a section that contains examples and usage
of new features (and update existing features) for dialplan applications
and functions. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-15 13:14 lmadsen        Note Added: 0116735                          
2010-01-15 13:14 lmadsen        Status                   new => ready for
testing
======================================================================




More information about the asterisk-bugs mailing list