[asterisk-dev] [Code Review] Extend the max number of callgroups/pickupgroups

Olle E Johansson reviewboard at asterisk.org
Thu Aug 11 02:07:31 CDT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/466/#review4028
-----------------------------------------------------------


I don't think we should have any compile-time-options or a fixed limit. If we fix this, we should have named pickup groups that can have other attributes as well in the future, possibly using ast_objects. Using bitmaps and numeric matching was something useful when CPUs had less power than today, when people have dual core in their pockets. This patch is just a short-term patch, not the solution to the problem for me.

- Olle E


On June 22, 2010, 1:22 p.m., raarts wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/466/
> -----------------------------------------------------------
> 
> (Updated June 22, 2010, 1:22 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Currently the number of callgroups/pickupgroups is limited to 63, because the variable type that holds the group bits is a long long.
> 
> Here's a patch that extends this variable to an arbitrary-length (determined at compile time) int array. It currently sets the max number of groups to 1024.
> It implements this for all channels, but I only tested SIP and DAHDI.
> 
> Some people might object to implementing this as an array of ints, because it introduces a loop. But I think call pickups are not done often enough for this to become a problem.
> 
> See https://issues.asterisk.org/view.php?id=16640
> 
> 
> Diffs
> -----
> 
>   /trunk/apps/app_dumpchan.c 271908 
>   /trunk/channels/chan_agent.c 271908 
>   /trunk/channels/chan_dahdi.c 271908 
>   /trunk/channels/chan_gtalk.c 271908 
>   /trunk/channels/chan_jingle.c 271908 
>   /trunk/channels/chan_mgcp.c 271908 
>   /trunk/channels/chan_misdn.c 271908 
>   /trunk/channels/chan_sip.c 271908 
>   /trunk/channels/chan_skinny.c 271908 
>   /trunk/channels/chan_unistim.c 271908 
>   /trunk/channels/misdn_config.c 271908 
>   /trunk/doc/asterisk-mib.txt 271908 
>   /trunk/funcs/func_channel.c 271908 
>   /trunk/include/asterisk/channel.h 271908 
>   /trunk/main/channel.c 271908 
>   /trunk/main/cli.c 271908 
>   /trunk/main/features.c 271908 
>   /trunk/res/snmp/agent.c 271908 
> 
> Diff: https://reviewboard.asterisk.org/r/466/diff
> 
> 
> Testing
> -------
> 
> This patch has been in our asterisk 1.2 for 3 years now without problems. I ported it over to 1.6.2 and tested it there. The patch uploaded here is against trunk which is currently being tested by a colleague of mine, but they are all basically the same patch. 
> 
> 
> Thanks,
> 
> raarts
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110811/7f982141/attachment.htm>


More information about the asterisk-dev mailing list