Re: [sr-dev] [kamailio/kamailio] "shm_mem_size" does not work if it was set in config file (#950)

2017-01-31 Thread Maxim Malygin
Your patch will override memory size set by "-m" option in case it is 64mb (-m 64). I created another patch for my environment by moving setting sm_mem_size to default size after yyparse(). --- kamailio-4.4.3.orig/main.c 2016-09-14 16:50:30.0 +0300 +++ kamailio-4.4.3/main.c

Re: [sr-dev] [kamailio/kamailio] core: allow setting shm_mem_size in cfg if it still holds default value (25aeed9)

2017-01-31 Thread Maxim Malygin
Your patch will override memory size set by "-m" option in case it is 64mb (-m 64). I created another patch for my environment by moving setting sm_mem_size to default size after yyparse(). ``` --- kamailio-4.4.3.orig/main.c 2016-09-14 16:50:30.0 +0300 +++ kamailio-4.4.3/main.c

Re: [sr-dev] [kamailio/kamailio] "shm_mem_size" does not work if it was set in config file (#950)

2017-01-26 Thread Maxim Malygin
There are no error messages. The problem is in main.c. It sets shm_mem_size to default value before parsing config file. But cfg.y sets shm_mem_size only when it's zero. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[sr-dev] [kamailio/kamailio] "shm_mem_size" does not work if it was set in config file (#950)

2017-01-26 Thread Maxim Malygin
### Description Config file has parameter "shm_mem_size" (or "shm" or "shm_mem") which allows to set shared memory size (in Mb) via configuration file. This parameter worked well in 3.1.5. Now it does not work (4.4.2). Shared memory size is always 64Mb (default value). The only way to set