THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#375 - Segfault in 4.1 when cannot reverse resolve
User who did this - Daniel-Constantin Mierla (miconda)
----------
Being at startup, probably this happens before the counters are initialized. I will check it.
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=375#comment1198
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 there,
this is my initial effort to get a new version [0].
This will create 4.2.0~dev0 packages for wheezy and jessie at master branch.
I've just removed the older releases. I will maintain only this two.
If everything is OK I will cherry-pick and create 4.1.0 packages at
the 4.1 branch
[0] https://github.com/linuxmaniac/kamailio/tree/vseva/deb
PD: I've tried to create a personal branch without any luck. Is there
any naming restriction on the git repo for that?
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#375 - Segfault in 4.1 when cannot reverse resolve
User who did this - Hugh Waite (hugh.waite)
----------
The config snippit should be:
<code>
#!substdef "/PRIV_IP_ADDR/10.179.31.235/"
#!substdef "/PUBL_IP_ADDR/WW.XX.YY.ZZ/"
#!substdef "/HOSTNAME_INT/myhost.example.com/"
...
listen=tcp:"PRIV_IP_ADDR":80 advertise "PUBL_IP_ADDR":80
listen=tcp:"PRIV_IP_ADDR":5060 advertise "PUBL_IP_ADDR":5060
listen=udp:"PRIV_IP_ADDR":5060 advertise "PUBL_IP_ADDR":5060
listen=tcp:"PRIV_IP_ADDR":5080 advertise "HOSTNAME_INT":5080
...
</code>
The segfault seems to be on the advertised hostname line...
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=375#comment1197
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.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Hugh Waite (hugh.waite)
Attached to Project - sip-router
Summary - Segfault in 4.1 when cannot reverse resolve
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - High
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - A Segfault is occuring on the latest 4.1 during startup when attempting to resolve the address in a 'listen' config directive.
It can be generated when running kamailio -c, when the IP address is not resolveable. The problem goes away once the DNS entry is available.
<code>
#!substdef "/PRIV_IP_ADDR/10.179.31.235/"
#!substdef "/PUBL_IP_ADDR/WW.XX.YY.ZZ/"
...
listen=tcp:"PRIV_IP_ADDR":80 advertise "PUBL_IP_ADDR":80
...
</code>
Backtrace:
<code>(gdb) bt full
#0 0x0000000000443d81 in counter_inc (name=<value optimized out>) at counters.h:126
No locals.
#1 dns_resolvehost (name=<value optimized out>) at dns_cache.c:2602
host = {s = 0x2 <Address 0x2 out of bounds>, len = 4760762}
ret = <value optimized out>
#2 0x00000000004e5cb7 in new_sock_info (name=<value optimized out>, addr_l=<value optimized out>,
port=<value optimized out>, proto=<value optimized out>, usename=<value optimized out>, useport=5080,
flags=SI_NONE) at socket_info.c:297
si = 0x7fbe68525690
n = <value optimized out>
he = <value optimized out>
p = <value optimized out>
__FUNCTION__ = "new_sock_info"
#3 0x00000000004e6091 in new_sock2list (name=<value optimized out>, addr_l=<value optimized out>,
port=<value optimized out>, proto=<value optimized out>, usename=<value optimized out>,
useport=<value optimized out>, flags=SI_NONE, list=0x84e6d8) at socket_info.c:727
si = <value optimized out>
#4 0x00000000004eb48d in add_listen_advertise_iface (name=0x7fbe685252a0 "10.179.31.235", addr_l=0x0,
port=5080, proto=2, usename=0x7fbe685255e0 "edge05-int.crocodilertc.net", useport=5080, flags=SI_NONE)
at socket_info.c:805
list = 0x84e6d8
c_proto = 2
a_l = <value optimized out>
c_port = <value optimized out>
#5 0x00000000005b6e2d in yyparse () at cfg.y:1419
yystate = <value optimized out>
yyerrstatus = 0
yyssa = {0, 165, 19, 199, 462, 739, 839, 1014, 1205, 0, 0, 0, 20872, 26926, 32702, 0, 1, 0, 0, 0, 0,
0, 0, 0, 1, 0, 32702, 0, 20872, 26926, 32702, 0, 0, 0, 0, 0, 21728, 26926, 32702, 0, 26720, 8970,
32767, 0, 1, 0, 0, 0, 26744, 8970, 32767, 0, 21728, 26926, 1, 0, 26752, 8970, 32767, 0, -13839,
64, 0, 0, 26776, 8970, 32767, 0, 8160, 26893, 1, 0, 1, 0, 0, 0, -14645, 64, 0, 0, 27720, 26769,
32702, 0, 8456, 26770, 32702, 0, 27200, 8970, 32767, 0, -25944, 84, 0, 0, 8, 0, 0, 0, 14853,
---Type <return> to continue, or q <return> to quit---
26783, 32702, 0, 7808, 26826, 32702, 0, 7896, 26826, 32702, 0, 12536, 26770, 32702, 0, -12288,
26925, 32702, 0, 8016, 26706, 32702, 0, -1, -1, 0, 0, -11272, 26769, 32702, 0, 1, 0, 0, 0, -6000,
131, 0, 0, 0, 0, 0, 0, -28656, 245, 0, 0, 27088, 8970, 32767, 0, 0, 0, 0, 0, 8160, 26893, 32702,
0, 1, 0 <repeats 11 times>, 12536, 26770, 32702, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0,
0, 3152, 21150, 0, 0, -30955, 26893, 32702, 0}
yyss = 0x7fff230a6780
yyssp = 0x7fff230a6790
</code>
Are the DNS stats counters initialised at this point?
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=375
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.
Module: sip-router
Branch: master
Commit: 120a9aa055c44eef26c1a635ceb75a150a284b56
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=120a9aa…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Tue Dec 3 18:09:30 2013 +0200
modules/ims_registrar_scscf: fixed comparison of P-asserted-id and Path header
In can_subscribe_to_reg() we check if the P-Asserted-Identity in the Subscribe is in the Register path header (i.e. is this the P-CSCF subscribing to UE reg-event)
This fix changes the comparison to compare P-asserted-id without "sip:" to cater for all compliant path header formats
---
modules/ims_registrar_scscf/registrar_notify.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/ims_registrar_scscf/registrar_notify.c b/modules/ims_registrar_scscf/registrar_notify.c
index d5c4bf9..70fcc95 100644
--- a/modules/ims_registrar_scscf/registrar_notify.c
+++ b/modules/ims_registrar_scscf/registrar_notify.c
@@ -198,7 +198,10 @@ int can_subscribe_to_reg(struct sip_msg *msg, char *_t, char *str2) {
while (c) {
if (c->path.len) {
for (i = 0; i < c->path.len - asserted_id.len; i++)
- if (strncasecmp(c->path.s + i, asserted_id.s, asserted_id.len) == 0) {
+ LM_DBG("Path: <%.*s>.\n",
+ c->path.len, c->path.s);
+ //we compare the asserted_id without "sip:" to the path
+ if (strncasecmp(c->path.s + i, asserted_id.s+4, asserted_id.len-4) == 0) {
LM_DBG("Identity found in Path <%.*s>\n",
c->path.len, c->path.s);
ret = CSCF_RETURN_TRUE;
Hello,
wondering if any debian/ubuntu fan has some time today/tomorrow morning
for updating the specs to include the new modules coming with 4.1.
The list is here:
- http://www.kamailio.org/wiki/features/new-in-4.1.x
Fortunately Peter updated the specs he maintains for rpm-based distros -
the one for centos 6 might be useful to figure out dependencies - see in
source tree pkg/kamailio/centos/6/.
Reply quickly here if you start working on them -- there can be many
people, I just want to know how I plan my effort to prepare the release.
Thanks,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda