<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Good evening,<br>
<br>
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).<br>
<br>
Using ngrep, it seems very odd IPv6 sockets are opened, for example:<br>
<br>
<blockquote type="cite">U 2001:beef:34a:10::234:5060 ->
2001:beef:285:1::3:5060 1573541542@0:1440<br>
U 2001:beef:34a:10::234 -> 2001:beef:285:1::3
+1573541542@1448:17<br>
</blockquote>
<br>
Obviously the "1573541542@0:1440" part is bogus, I expect output
similar to:<br>
<br>
<blockquote type="cite">U 2001:beef:34a:10::234:5060 ->
2001:beef:285:1::3:5060<br>
INVITE sip:s@[2001:beef:285:1::3]:5060 SIP/2.0.<br>
</blockquote>
<br>
When I do a REGISTER from UA using IPv6, the dialog (and return
packets) seem completely normal.<br>
<br>
Using IPv4, there's no problem at all.<br>
<br>
It seems the socket problems are triggered when:<br>
<ol>
<li>Using the topoh module.</li>
<li>When altering From: headers e.g. using uac_replace_from().</li>
</ol>
<p>When topoh is disabled and no headers are altered, IPv6 works as
good as IPv4.<br>
</p>
<p>We could reproduce the problem using Kamailio 4.1.4, 4.1.5 and
4.2.0 on Debian (64-bit).<br>
</p>
<p>Please advice what to do.<br>
</p>
<p>Thanks in advance!<br>
</p>
<p>Best regards,<br>
Kees<br>
</p>
</body>
</html>