Hello,
you are right, the maximum setting is still the compile time value. The default value for
max_branches is 12.
Regarding the increase, the obvious advice applies, just raise it that much as you need.
It will increase memory usage for transaction and decrease some run-time performance. But
if you are not getting excessive, it should be ok.
Cheers,
Henning
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com<https://gilawa.com/>
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of Lars Jansson
Sent: Sunday, December 11, 2022 8:24 PM
To: sr-users(a)lists.kamailio.org
Subject: Re: [SR-Users] Increase MAX_BRANCHES_LIMIT
Hi Patrick,
Thanks for your reply. I'm aware of the max_branches parameter in the config file, but
my understanding from trial and error is that the bounds of the max_branches parameter is
set by MAX_BRANCHES_LIMIT in config.h.
Regards,
Lars
Den 2022-12-10 kl. 14:55, skrev Patrick Karton:
Hello
there is already max_branches parameter you can set in config file.
Le 10 déc. 2022 13:02, Lars Jansson
<lars.jansson@solstiernan.nu><mailto:lars.jansson@solstiernan.nu> a écrit :
Hi,
I am building a configuration script where for some traffic flows parallel forking will be
needed, and in this case I need to go beyond the default max limit of the max amount of
branches.
Apart from this specific case the traffic load that kamailio will need to handle is very
low, let's say just one second here and there with up to 5 concurrent calls at most.
This limit is as far as I understand set here:
usr/local/src/kamailio-5.6/kamailio/src/core/config.h
And the default limit is:
#define MAX_BRANCHES_LIMIT 32 /*!< limit of maximum number of
branches per transaction */
Here are the questions I have related to this:
1) If I increase the value of this constant in config.h, how high is it reasonable to set
this value and still have a stable system?
2) If I increase MAX_BRANCHES_LIMIT beyond 32, are there also other parameters that needs
to be changed for the system to be able to cope, and if so which parameters?
Regards,
Lars
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users