[OpenSIPS-Users] Increased macro MAX_BRANCHES and behavior of tm module

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Sep 19 08:43:10 UTC 2023


Hi,

The 31 is a hard limit as the TM module is internally using an integer 
for storing a branch bitmask. Here is the limitation coming from. The 
change is not a trivial one, still not impossible (to drop the int 
bitmask and move to an array of int)

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 9/7/23 2:49 PM, Dmitry Ponomaryov wrote:
>
> Have a nice day, everyone
>
> Question is to increase the value of MAX_BRANCHES[1] to 32, for 
> example, which will go beyond the boundaries of the source code in 
> tm.c, namely condition[2], which clearly shows that only 30 is 
> possible, how critical it is to change the condition in tm.c, in order 
> to get the need value? [1] 
> https://github.com/OpenSIPS/opensips/blob/master/config.h#L169 
> <https://github.com/OpenSIPS/opensips/blob/master/config.h#L169> [2] 
> https://github.com/OpenSIPS/opensips/blob/master/modules/tm/tm.c#L817-L821 
> <https://github.com/OpenSIPS/opensips/blob/master/modules/tm/tm.c#L817-L821>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230919/39b83ffe/attachment-0001.html>


More information about the Users mailing list