[OpenSIPS-Users] how to increase number of branches in opensips code .
Sasmita Panda
spanda at 3clogic.com
Mon Aug 20 05:37:32 EDT 2018
Is there any reason of doing so .
I have tried to modify this value to 500 in opensips-1.11 and its working
fine for me .
Is a limitation of opensips-2.2 .
*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
On Mon, Aug 20, 2018 at 12:34 PM, Liviu Chircu <liviu at opensips.org> wrote:
> Hi Sasmita,
>
> Currently, it seems that the MAX_BRANCHES is capped at 30. Higher values
> will prevent OpenSIPS from starting.
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 14.08.2018 15:10, Sasmita Panda wrote:
>
> I am using opensips-2.2 . I wanted to increase the maximun number branches
> per transaction .
>
> I have changed the config.h file " #define MAX_BRANCHES 12 " , I
> increased that to 250 .
> After installing again I am getting error in tm module . Below is the
> error .
> INFO:tm:mod_init: TM - initializing...
> CRITICAL:tm:mod_init: Too many max UACs for UAC branch_bm_t bitmap: 300
> ERROR:core:init_mod: failed to initialize module tm
> ERROR:core:main: error while initializing modules
> INFO:core:cleanup: cleanup
> NOTICE:core:main: Exiting....
> INFO:core:daemonize: pre-daemon process exiting with -1
> What should I change in the module to make this work ? Please suggest .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Wed, May 23, 2018 at 2:56 PM, Răzvan Crainea <razvan at opensips.org>
> wrote:
>
>> Are you compiling the module separately? Can you double check you are
>> actually installing the new binary and modules after compiling?
>>
>> Best regards,
>> Răzvan
>>
>> On 05/22/2018 11:59 AM, Sasmita Panda wrote:
>>
>>> When I am compiling opensips with the changes I am getting bellow error
>>> .
>>>
>>> opensips: ERROR:core:sr_load_module: could not open module
>>> </usr/local/lib64/opensips/modules/db_mysql.so>:
>>> /usr/local/lib64/opensips/modules/db_mysql.so: undefined symbol:
>>> db_new_result
>>>
>>> How I will fix this ?
>>>
>>>
>>> */Thanks & Regards/*
>>> /Sasmita Panda/
>>> /Senior Network Testing and Software Engineer/
>>> /3CLogic , ph:07827611765/
>>>
>>> On Mon, May 21, 2018 at 5:16 PM, Sasmita Panda <spanda at 3clogic.com
>>> <mailto:spanda at 3clogic.com>> wrote:
>>>
>>> There was dependency on another parameter "NEXTRA_BRANCH" . I have
>>> increased this also .
>>>
>>> Now I am able to start opensips . Please let me know if I am wrong .
>>>
>>> */Thanks & Regards/*
>>> /Sasmita Panda/
>>> /Network Testing and Software Engineer/
>>> /3CLogic , ph:07827611765/
>>>
>>> On Mon, May 21, 2018 at 4:56 PM, Sasmita Panda <spanda at 3clogic.com
>>> <mailto:spanda at 3clogic.com>> wrote:
>>>
>>> Yes , I have more register for same username .
>>>
>>> I have tried changing this parameter but the change induce
>>> different error .
>>>
>>> After increasing the parameter MAX_BRANCHES , I am not able to
>>> start Opensips .
>>> Its giving below error .
>>>
>>> INFO:tm:mod_init: TM - initializing...
>>> CRITICAL:tm:mod_init: Too many max UACs for UAC branch_bm_t
>>> bitmap: 400
>>> ERROR:core:init_mod: failed to initialize module tm
>>> ERROR:core:main: error while initializing modules
>>>
>>>
>>> How I will solve this ?
>>>
>>> */Thanks & Regards/*
>>> /Sasmita Panda/
>>> /Network Testing and Software Engineer/
>>> /3CLogic , ph:07827611765/
>>>
>>> On Mon, May 21, 2018 at 4:35 PM, Răzvan Crainea
>>> <razvan at opensips.org <mailto:razvan at opensips.org>> wrote:
>>>
>>> Hi, Sasmita!
>>>
>>> By default OpenSIPS can fork up to 12 branches - are you
>>> using more than 12 registered SIP clients for the same
>>> username? If you are not using more than 12 registrations
>>> for the same user, than you might have an issue in your
>>> config/setup.
>>> If this is the expected scenario and you really want to
>>> increase the number of branches, you'll have to change the
>>> MAX_BRANCHES define in config.h[1] and re-compile opensips
>>> with this new value.
>>>
>>> [1]
>>> https://github.com/OpenSIPS/opensips/blob/master/config.h#L1
>>> 59
>>> <https://github.com/OpenSIPS/opensips/blob/master/config.h#L
>>> 159>
>>>
>>> Best regards,
>>> Răzvan
>>>
>>> On 05/21/2018 01:09 PM, Sasmita Panda wrote:
>>>
>>> Hi All ,
>>>
>>> I am facing the bellow issue while running load on
>>> opensips .
>>>
>>> using a 8 core 32GB linux machine and opensips-1.6 is
>>> running on this .
>>>
>>> In 500 concurrent calls and 450 agents I am facing
>>> problem .
>>>
>>> ERROR:core:append_branch: max nr of branches exceeded
>>> ERROR:registrar:lookup: failed to append a branch
>>>
>>>
>>> These error message is getting printed continuously.
>>>
>>>
>>> Please help me how to fix this . How I will increase the
>>> number of branches and how does it work ?
>>>
>>>
>>> */Thanks & Regards/*
>>> /Sasmita Panda/
>>> /Network Testing and Software Engineer/
>>> /3CLogic , ph:07827611765/
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org <mailto:Users at lists.opensips.o
>>> rg>
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> <http://lists.opensips.org/cgi
>>> -bin/mailman/listinfo/users>
>>>
>>>
>>> -- Răzvan Crainea
>>> OpenSIPS Core Developer
>>> http://www.opensips-solutions.com
>>> <http://www.opensips-solutions.com>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>> --
>> Răzvan Crainea
>> OpenSIPS Core Developer
>> http://www.opensips-solutions.com
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> 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/20180820/cb98464c/attachment-0001.html>
More information about the Users
mailing list