Hi all,
Centos 6.5(64bit) is used to build kamailio. I download kamailio source code via git, and below is about the code version:
******************************************************************************
commit e6e65283abd41043e3188240d89cd8c7549daada
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: Mon Oct 13 23:40:51 2014 +0200
pkg/kamailio/deb: update version to 4.2.0~rc1
commit 1103028d36259d1304b81deef15da44e8c1c7275
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Oct 13 18:03:04 2014 +0200
Makefile.defs: version set to 4.2.0-rc1
*******************************************************************************
I follow the steps of (http://www.kamailio.org/wiki/install/4.2.x/git), then am stuck at the 9th step(9. The init.d script). After run ' /etc/init.d/kamailio start', one error is reported by kamailio at /var/log/message
*******************************************************************************
Oct 16 13:47:18 sipserver kamailio: : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 297, column 54: Can't initialize shared memory
Oct 16 13:47:18 sipserver kamailio: ERROR: mi_fifo [mi_fifo.c:271]: mi_destroy(): FIFO stat failed: Bad address
*******************************************************************************
line 297 in kamailio.cfg is shown as below:
# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
how to fix the issue?
Thanks!
B.R
andrew
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Nuno Miguel Reis (nmreis)
Attached to Project - sip-router
Summary - kamailio -c complains about PKG_MEM size -M parameter
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - Low
Priority - Normal
Reported Version - 4.1
Due in Version - Undecided
Due Date - Undecided
Details - $ kamailio -c
<code>
loading modules under /usr/local/lib/kamailio/modules_k/:/usr/lib64/kamailio/modules/
0(6030) : <core> [cfg.lex:1390]: addstr(): ERROR:lex:addstr: memory allocation error
0(6030) : <core> [cfg.lex:1392]: addstr(): ERROR:lex:addstr: try to increase pkg size with -M parameter
</code>
throws an error back at you if the memory needed to process kamailio config (PKG_MEM size) is over the default limit.
This can lead people into thinking something is wrong with their config files where nothing is actually wrong.
This is even worse when people use an RPM based kamailio (like me) with a proper /etc/sysconfig/kamailio file in place, because the kamailio.init verifies the config file with 'kamailio -c' upon startup before considering the defaults under '/etc/sysconfig/kamailio'.
My opinion is that kamailio should consider the defaults under /etc/sysconfig/kamailio when they actually exist.
For now a proper workaround for this is disabling the kamailio config checkup in kamailio.init file on rpm based systems.
Any other ideas to make this better?
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=481
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.