Hello,
short note to say that packaging of v4.2.0 will start after 14:00
(Berlin time) -- anyone willing to do changes to branch 4.2 should send
a short notice on sr-dev and wait for confirmation to avoid conflicts.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Module: sip-router
Branch: 4.2
Commit: 3948305d86f6211428f60c58e138b18aacb3dde5
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3948305…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Oct 16 09:55:58 2014 +0200
pkg/rpm: updated values for memory size in specs
(cherry picked from commit 22aef82dbc60f67dd606e568308114118de729a0)
---
pkg/kamailio/rpm/kamailio.default | 2 +-
pkg/kamailio/rpm/kamailio.init | 4 ++--
pkg/kamailio/rpm/kamailio.init.SuSE | 14 +++++++-------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/pkg/kamailio/rpm/kamailio.default b/pkg/kamailio/rpm/kamailio.default
index 90e6ca7..9070289 100644
--- a/pkg/kamailio/rpm/kamailio.default
+++ b/pkg/kamailio/rpm/kamailio.default
@@ -15,7 +15,7 @@ GROUP=kamailio
SHM_MEMORY=64
# Amount of private memory to allocate for the running Kamailio server (in Mb)
-PKG_MEMORY=4
+PKG_MEMORY=8
# Enable the server to leave a core file when it crashes.
# Set this to 'yes' to enable kamailio to leave a core file when it crashes
diff --git a/pkg/kamailio/rpm/kamailio.init b/pkg/kamailio/rpm/kamailio.init
index cf76929..4f81925 100644
--- a/pkg/kamailio/rpm/kamailio.init
+++ b/pkg/kamailio/rpm/kamailio.init
@@ -81,8 +81,8 @@ SHM_MEMORY=$((`echo $SHM_MEMORY | sed -e 's/[^0-9]//g'`))
PKG_MEMORY=$((`echo $PKG_MEMORY | sed -e 's/[^0-9]//g'`))
[ -z "$USER" ] && USER=kamailio
[ -z "$GROUP" ] && GROUP=kamailio
-[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=32
-[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
+[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
+[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=8
if test "$DUMP_CORE" = "yes" ; then
# set proper ulimit
diff --git a/pkg/kamailio/rpm/kamailio.init.SuSE b/pkg/kamailio/rpm/kamailio.init.SuSE
index ac0f655..d871364 100644
--- a/pkg/kamailio/rpm/kamailio.init.SuSE
+++ b/pkg/kamailio/rpm/kamailio.init.SuSE
@@ -18,12 +18,12 @@
# Check for missing binaries (stale symlinks should not happen)
-OSER_BIN=/usr/sbin/kamailio
-test -x $OSER_BIN || exit 5
+KAM_BIN=/usr/sbin/kamailio
+test -x $KAM_BIN || exit 5
# Check for existence of needed config file and read it
-OSER_CONFIG=/etc/kamailio/kamailio.cfg
-test -r $OSER_CONFIG || exit 6
+KAM_CONFIG=/etc/kamailio/kamailio.cfg
+test -r $KAM_CONFIG || exit 6
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
@@ -64,7 +64,7 @@ case "$1" in
echo -n "Starting Kamailio "
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
- startproc $OSER_BIN -f $OSER_CONFIG
+ startproc $KAM_BIN -f $KAM_CONFIG
# Remember status and be verbose
rc_status -v
@@ -74,7 +74,7 @@ case "$1" in
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.
- killproc -TERM $OSER_BIN
+ killproc -TERM $KAM_BIN
# Remember status and be verbose
rc_status -v
@@ -120,7 +120,7 @@ case "$1" in
# 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
# NOTE: checkproc returns LSB compliant status values.
- checkproc $OSER_BIN
+ checkproc $KAM_BIN
# NOTE: rc_status knows that we called this init script with
# "status" option and adapts its messages accordingly.
rc_status -v
Module: sip-router
Branch: master
Commit: 22aef82dbc60f67dd606e568308114118de729a0
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=22aef82…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Oct 16 09:55:58 2014 +0200
pkg/rpm: updated values for memory size in specs
---
pkg/kamailio/rpm/kamailio.default | 2 +-
pkg/kamailio/rpm/kamailio.init | 4 ++--
pkg/kamailio/rpm/kamailio.init.SuSE | 14 +++++++-------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/pkg/kamailio/rpm/kamailio.default b/pkg/kamailio/rpm/kamailio.default
index 90e6ca7..9070289 100644
--- a/pkg/kamailio/rpm/kamailio.default
+++ b/pkg/kamailio/rpm/kamailio.default
@@ -15,7 +15,7 @@ GROUP=kamailio
SHM_MEMORY=64
# Amount of private memory to allocate for the running Kamailio server (in Mb)
-PKG_MEMORY=4
+PKG_MEMORY=8
# Enable the server to leave a core file when it crashes.
# Set this to 'yes' to enable kamailio to leave a core file when it crashes
diff --git a/pkg/kamailio/rpm/kamailio.init b/pkg/kamailio/rpm/kamailio.init
index cf76929..4f81925 100644
--- a/pkg/kamailio/rpm/kamailio.init
+++ b/pkg/kamailio/rpm/kamailio.init
@@ -81,8 +81,8 @@ SHM_MEMORY=$((`echo $SHM_MEMORY | sed -e 's/[^0-9]//g'`))
PKG_MEMORY=$((`echo $PKG_MEMORY | sed -e 's/[^0-9]//g'`))
[ -z "$USER" ] && USER=kamailio
[ -z "$GROUP" ] && GROUP=kamailio
-[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=32
-[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
+[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
+[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=8
if test "$DUMP_CORE" = "yes" ; then
# set proper ulimit
diff --git a/pkg/kamailio/rpm/kamailio.init.SuSE b/pkg/kamailio/rpm/kamailio.init.SuSE
index ac0f655..d871364 100644
--- a/pkg/kamailio/rpm/kamailio.init.SuSE
+++ b/pkg/kamailio/rpm/kamailio.init.SuSE
@@ -18,12 +18,12 @@
# Check for missing binaries (stale symlinks should not happen)
-OSER_BIN=/usr/sbin/kamailio
-test -x $OSER_BIN || exit 5
+KAM_BIN=/usr/sbin/kamailio
+test -x $KAM_BIN || exit 5
# Check for existence of needed config file and read it
-OSER_CONFIG=/etc/kamailio/kamailio.cfg
-test -r $OSER_CONFIG || exit 6
+KAM_CONFIG=/etc/kamailio/kamailio.cfg
+test -r $KAM_CONFIG || exit 6
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
@@ -64,7 +64,7 @@ case "$1" in
echo -n "Starting Kamailio "
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
- startproc $OSER_BIN -f $OSER_CONFIG
+ startproc $KAM_BIN -f $KAM_CONFIG
# Remember status and be verbose
rc_status -v
@@ -74,7 +74,7 @@ case "$1" in
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.
- killproc -TERM $OSER_BIN
+ killproc -TERM $KAM_BIN
# Remember status and be verbose
rc_status -v
@@ -120,7 +120,7 @@ case "$1" in
# 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
# NOTE: checkproc returns LSB compliant status values.
- checkproc $OSER_BIN
+ checkproc $KAM_BIN
# NOTE: rc_status knows that we called this init script with
# "status" option and adapts its messages accordingly.
rc_status -v
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#481 - kamailio -c complains about PKG_MEM size -M parameter
User who did this - Daniel-Constantin Mierla (miconda)
----------
The rpms build on opensuse build service have an older init.d script. The issue was fixed in the scripts from source tree pkg/kamailio/rpm/kamailio.init.
The function check_kamailio_config() from that file have to use:
out=$($KAM -M $PKG_MEMORY -c 2>&1 > /dev/null)
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=481#comment1677
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.
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