[asterisk-users] more than 32 callgroups & pickupgroups

Leo Ann Boon leo at datvoiz.com
Fri Dec 22 02:24:33 MST 2006


Conrad Wood wrote:
> On Thu, 2006-12-21 at 12:07 -0700, Douglas Garstang wrote:
>   
>> I'm no C programmer, but is this 32 limit just an array definition somewhere? Wouldn't it be a no brainer to track it down and increase it so some very large number?
>>
>>     
>
>  I think pickupgroup is defined as 'unsigned int' somewhere in
> channels.h. 32 is the number of bits in a 4-byte integer, so it's
> probably using a bitmask to define which pickupgroups a channel belongs
> to.
> I suppose if you are on a 64bit machine/os you /could/ try to make it a
> 64 bit pointer, but you should really check the source a bit more to see
> how exactly it's accessed (I didn't!)
> I don't know any .>32bit integers on 32bit machines.
>   
gcc supports a 64 bit integer on 32-bit process via the long long or 
int64_t types.

Leo


More information about the asterisk-users mailing list