Good evening,
During pre-production testing, we discovered quite odd IPv6 socket issues. Problems arise when a SIP dialog is initiated from within Kamailio (e.g. a SIP INVITE message).
Using ngrep, it seems very odd IPv6 sockets are opened, for example:
U 2001:beef:34a:10::234:5060 -> 2001:beef:285:1::3:5060 1573541542@0:1440 U 2001:beef:34a:10::234 -> 2001:beef:285:1::3 +1573541542@1448:17
Obviously the "1573541542@0:1440" part is bogus, I expect output similar to:
U 2001:beef:34a:10::234:5060 -> 2001:beef:285:1::3:5060 INVITE sip:s@[2001:beef:285:1::3]:5060 SIP/2.0.
When I do a REGISTER from UA using IPv6, the dialog (and return packets) seem completely normal.
Using IPv4, there's no problem at all.
It seems the socket problems are triggered when:
1. Using the topoh module. 2. When altering From: headers e.g. using uac_replace_from().
When topoh is disabled and no headers are altered, IPv6 works as good as IPv4.
We could reproduce the problem using Kamailio 4.1.4, 4.1.5 and 4.2.0 on Debian (64-bit).
Please advice what to do.
Thanks in advance!
Best regards, Kees
Hi,
Mea culpa; I forgot to mention we're using t_relay().
Cheers, Kees
Hi there,
Another follow-up, I suspect there's something wrong in the mt.so module:
Dec 15 19:31:36 somehost kernel: [8146926.603262] kamailio[852]: segfault at 1b ip 00007f92282f62f8 sp 00007ffff622f8f0 error 6 in tm.so[7f92282b0000+9b000] Dec 15 19:32:06 somehost kernel: [8146956.289281] kamailio[1298]: segfault at 1b ip 00007f45133062f8 sp 00007fff6c5b7950 error 6 in tm.so[7f45132c0000+9b000] Dec 15 19:32:17 somehost kernel: [8146967.075602] kamailio[2287]: segfault at 1b ip 00007fd532a1e2f8 sp 00007fff4b012770 error 6 in tm.so[7fd5329d8000+9b000] Dec 15 19:52:16 somehost kernel: [8148166.549865] kamailio[5004]: segfault at 1b ip 00007f68719762f8 sp 00007fff9ba2d110 error 6 in tm.so[7f6871930000+9b000] Dec 15 19:52:29 somehost kernel: [8148179.935854] kamailio[5418]: segfault at 1b ip 00007fcf81d662f8 sp 00007fffb81c5880 error 6 in tm.so[7fcf81d20000+9b000]
Cheers, Kees
Hello,
did you get a core dump file? If yes, send the full backtrace taken with gdb.
Cheers, Daniel
On 15/12/14 23:10, Kees Meijs - SIGNET B.V. wrote:
Hi there,
Another follow-up, I suspect there's something wrong in the mt.so module:
Dec 15 19:31:36 somehost kernel: [8146926.603262] kamailio[852]: segfault at 1b ip 00007f92282f62f8 sp 00007ffff622f8f0 error 6 in tm.so[7f92282b0000+9b000] Dec 15 19:32:06 somehost kernel: [8146956.289281] kamailio[1298]: segfault at 1b ip 00007f45133062f8 sp 00007fff6c5b7950 error 6 in tm.so[7f45132c0000+9b000] Dec 15 19:32:17 somehost kernel: [8146967.075602] kamailio[2287]: segfault at 1b ip 00007fd532a1e2f8 sp 00007fff4b012770 error 6 in tm.so[7fd5329d8000+9b000] Dec 15 19:52:16 somehost kernel: [8148166.549865] kamailio[5004]: segfault at 1b ip 00007f68719762f8 sp 00007fff9ba2d110 error 6 in tm.so[7f6871930000+9b000] Dec 15 19:52:29 somehost kernel: [8148179.935854] kamailio[5418]: segfault at 1b ip 00007fcf81d662f8 sp 00007fffb81c5880 error 6 in tm.so[7fcf81d20000+9b000]
Cheers, Kees
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
On 15/12/14 22:25, Kees Meijs - SIGNET B.V. wrote:
Good evening,
During pre-production testing, we discovered quite odd IPv6 socket issues. Problems arise when a SIP dialog is initiated from within Kamailio (e.g. a SIP INVITE message).
Using ngrep, it seems very odd IPv6 sockets are opened, for example:
U 2001:beef:34a:10::234:5060 -> 2001:beef:285:1::3:5060 1573541542@0:1440 U 2001:beef:34a:10::234 -> 2001:beef:285:1::3 +1573541542@1448:17
Obviously the "1573541542@0:1440" part is bogus,
Where is that bogus part appearing effectively? Inside the SIP packet or just the output of ngrep about source and destination?
Topoh and header manipulation doesn't have anything to do with sending/receiving sockets...
Cheers, Daniel
I expect output similar to:
U 2001:beef:34a:10::234:5060 -> 2001:beef:285:1::3:5060 INVITE sip:s@[2001:beef:285:1::3]:5060 SIP/2.0.
When I do a REGISTER from UA using IPv6, the dialog (and return packets) seem completely normal.
Using IPv4, there's no problem at all.
It seems the socket problems are triggered when:
- Using the topoh module.
- When altering From: headers e.g. using uac_replace_from().
When topoh is disabled and no headers are altered, IPv6 works as good as IPv4.
We could reproduce the problem using Kamailio 4.1.4, 4.1.5 and 4.2.0 on Debian (64-bit).
Please advice what to do.
Thanks in advance!
Best regards, Kees
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users