dpkg-shlibdeps complains about lots of symbols that it cannot find, for
example:
dpkg-shlibdeps: warning: symbol core_cfg used by debian/sip-router/usr/lib/sip-router/libkmi.so.1.0 found in none of the libraries.
...
dpkg-shlibdeps: warning: symbol core_cfg used by debian/sip-router/usr/lib/sip-router/libsrdb2.so.1.0 found in none of the libraries.
...
dpkg-shlibdeps: warning: symbol mem_lock used by debian/sip-router/usr/lib/sip-router/libkcore.so.1.0 found in none of the libraries.
should i get worried about that? am i missing some libraries?
--juha
Module: sip-router
Branch: master
Commit: 7ac811b4fda52b4294fe740d24cf71e321fc707a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7ac811b…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Jun 1 12:36:05 2009 +0200
test: gcc version test scripts
Test if gcc version is correctly detected with a large collection
of gcc version strings. To be used each time the gcc version
detection is changed.
---
test/gcc_version.sh | 17 +++++++++++++++++
test/gcc_version_test.sh | 26 ++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/test/gcc_version.sh b/test/gcc_version.sh
new file mode 100755
index 0000000..078b852
--- /dev/null
+++ b/test/gcc_version.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# wrapper arroung gcc, that intercepts --version and reports instead
+# $GCC_VERSION
+#
+
+if [ -n "$GCC_VERSION" ]; then
+ for o in $@; do
+ if [ "$o" = "--version" ] ; then
+ echo $GCC_VERSION
+ exit 0
+ fi
+ done
+fi
+
+gcc $@
diff --git a/test/gcc_version_test.sh b/test/gcc_version_test.sh
new file mode 100755
index 0000000..4a6912b
--- /dev/null
+++ b/test/gcc_version_test.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# test make cfg with all the gcc versions in gcc_versions.txt
+# should be run from the main sip-router directory
+# Depends on: test/gcc_version.sh and test/gcc_versions.txt
+
+if [ ! -e test/gcc_version.sh -o ! -r test/gcc_versions.txt -o ! -r Makefile ]
+then
+ echo "ERROR: wrong path, this test must be run from the main"\
+ " sip-router directory"
+ exit 1
+fi
+
+while read v ; do
+ GCC_VERSION=$v make CC=test/gcc_version.sh cfg-defs >/dev/null
+ if [ $? -ne 0 -o ! -r config.mak ]; then
+ echo "ERROR: make cfg failed for version \"$v\""
+ exit 1
+ fi
+ COMPILER=`egrep -o -- "-DCOMPILER='\"[^\"' ]+ [2-9]\.[0-9]{1,2}(\.[0-9]{1,2})?\"'" config.mak`
+ if [ $? -ne 0 -o -z "$COMPILER" ]; then
+ echo "ERROR: bad ver: \"$v\" => `egrep -o -- "-DCOMPILER='[^']*'" config.mak`"
+ exit 1
+ fi
+ echo "ok: \"$v\" => $COMPILER"
+done < test/gcc_versions.txt
Module: sip-router
Branch: master
Commit: e2a88d5b3a00bab7994174b7f37569d85774d997
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e2a88d5…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Jun 1 12:41:01 2009 +0200
make: required version is now 3.81
Updated required gnu make version from 3.80 to 3.81, because 3.80
has a bug when dealing with eval inside ifeq/endif
(see
https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=1516)).
It can be reverted back to 3.80, once workarounds are in place.
---
Makefile | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index ca97f78..7e0e197 100644
--- a/Makefile
+++ b/Makefile
@@ -65,8 +65,10 @@
#
# check make version
-# required 3.80, recommended 3.81
-req_ver=3.80
+# everything works with 3.80, except evals inside ifeq/endif
+# (see https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=1516).
+# recommended 3.81
+req_ver=3.81
# the check below works for version number of the type x.yy or x.yy.z*
# (from the GNU Make Cookbook)
ifeq (,$(filter $(req_ver),$(firstword $(sort $(MAKE_VERSION) $(req_ver)))))
when i run
/usr/sbin/sip-router -c -d -f /etc/sip-router/sip-router.cfg
i still get lots of debug messages.
how to start sip-router so that it only prints warning and errors?
-- juha
Bugs item #2797928, was opened at 2009-05-28 16:54
Message generated for change (Comment added) made by miconda
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2797928&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.5.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Hermann (axlh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Segfaults in dialog_update_db
Initial Comment:
dialog_update_db() is very crashy. It doesn't do any sanity checks on pointers and as a consequence crashes a lot.
I've seen at least 2 occasions at which is crashes:
1) Calling dlg_manage() on a non-invite message
2) Worse, on an invalid message. When a 200 OK is missing a contact header, I get error messages from populate_leg_info():
ERROR:dialog:populate_leg_info: bad sip message or missing Contact hdr
ERROR:dialog:dlg_onreply: could not add further info to the dialog
But afterwards dialog_update_db segfaults on an invalid bind_addr, from the backtrace:
(gdb) bt
#0 0xb783c41a in dialog_update_db (ticks=771000, param=0x0) at dlg_db_handler.c:629
#1 0x080a9726 in start_timer_processes () at timer.c:282
#2 0x08069b38 in main (argc=10, argv=0xbfc6f2d4) at main.c:816
Line 629 is for my version: SET_STR_VALUE(values+8, cell->bind_addr[DLG_CALLEE_LEG]->sock_str);
(gdb) bt full
<snip>
{type = DB_STR, nul = 0, free = -1282894544, val = {int_val = 178, ll_val = -5201380350948802382, double_val = -7.7990737395388139e-40, time_val = 178, string_val = 0xb2 "", str_val = {s = 0xb2 "", len = -1211040735}, blob_val = {s = 0xb2 "", len = -1211040735}, bitmap_val = 178}}
<snip>
----------------------------------------------------------------------
>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2009-06-01 13:18
Message:
Can you check latest svn? I added some safety checks ... still code to
review, though...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2797928&group_…
Revision: 5865
http://openser.svn.sourceforge.net/openser/?rev=5865&view=rev
Author: miconda
Date: 2009-06-01 10:17:14 +0000 (Mon, 01 Jun 2009)
Log Message:
-----------
- more safety checks when headers are missing (reported by Alex Hermann, #2797928)
Modified Paths:
--------------
branches/1.5/modules/dialog/dlg_handlers.c
branches/1.5/modules/dialog/dlg_hash.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
here is one more:
return($retcode);
0(6768) : <core> [cfg.y:2921]: parse error in config file, line 2905, column 17: syntax error
0(6768) : <core> [cfg.y:2921]: parse error in config file, line 2905, column 17: ==, !=, <,>, >= or <= expected
-- juha
i got all my modules loaded. first error while processing my config was
this:
0(18354) DEBUG: <core> [sr_module.c:616]: find_param_export: parameter <onreply
_avp_mode> not found in module <tm>
0(18354) ERROR: <core> [modparam.c:143]: set_mod_param_regex: parameter <onrepl
y_avp_mode> not found in module <tm>
0(18354) : <core> [cfg.y:2921]: parse error in config file, line 407, column 37
: Can't set module parameter
migration tips doesn't tell yet, how to solve this.
-- juha
Bugs item #2798154, was opened at 2009-05-29 00:30
Message generated for change (Comment added) made by ibc_sf
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2798154&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 4
Private: No
Submitted By: Iñaki Baz Castillo (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: [dialog] Crash when receiving empry "Record-Route"
Initial Comment:
Kamailio 1.5 rev 5834.
I use 'dialog" module and "uac" module (this one to change From username).
Kamailio receives an INVITE, changes From (so addes a long "vsf" parameter to Record-Route) and forwards it to a gateway.
The gateway replies 183 and 200 containing a "Record-Route" with no value (empty).
Then Kamailio shows this error and crashes:
ERROR:core:print_rr_body: failed to parse RR
ERROR:dialog:populate_leg_info: failed to print route records
ERROR:dialog:dlg_onreply: could not add further info to the dialog
CRITICAL:core:receive_fd: EOF on 12
INFO:core:handle_sigs: child process 4505 exited by a signal 11
INFO:core:handle_sigs: core was not generated
INFO:core:handle_sigs: terminating due to SIGCHLD
INFO:core:sig_usr: signal 15 received
I attach the output of the coredump and also the SIP trace showing it.
----------------------------------------------------------------------
>Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-06-01 11:47
Message:
I'll try to check it ASAP. However, the system is in production so I must
wait to soe night with no usage in order to test it.
I'll comment here the result. Thanks a lot.
----------------------------------------------------------------------
Comment By: Daniel-Constantin Mierla (miconda)
Date: 2009-06-01 11:33
Message:
I did a fix for this particular case, can you test and see if is fine now?
There is more code to review, though...
----------------------------------------------------------------------
Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-05-29 08:28
Message:
Note that the crash also occur with:
modparam("dialog", "db_mode", 0)
This is: without storing dialogs in database.
----------------------------------------------------------------------
Comment By: Daniel-Constantin Mierla (miconda)
Date: 2009-05-29 08:20
Message:
Seems similar to what Alex Hermann reported in #2797928. I will check.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2798154&group_…
Hello,
I'd like to discuss some new functionaity for Kamailio i intend to
develop for a client.
My client need to integrate very specific transport security layer...
The layer will function over tcp and udp and will be intgreated into the
SSL framework
The client will provide a function returning SSL_METHOD * descritptor
So what i need to do is
1) Add possibility to use SSL over udp socket
2) To use a new SSL method
So my first question is: Is there any chance that such functionality
will be accepted into the main trunk of kamailio?
Thanks
Vadim