<p></p>
<h3>Description</h3>
<p>Saving contact location details for IPV6 client via UDP results in a IPv4 notation. Changing to TCP correctly saves the IPV6 notation and functions correctly.</p>
<h3>Troubleshooting</h3>
<p>Tested on 4.4 / 4.5 & Devel. Default and custom configuration</p>
<h4>Reproduction</h4>
<p>Using default configuration the contact location for a IPv6 UDP client is saved as a shortened v4 style address. Using TCP with exact same configuration the client is correctly saved in IPV6 notation.</p>
<h4>Debugging Data</h4>
<p>May 23 03:29:50 localhost /usr/local/sbin/kamailio[32104]: DEBUG:  [core/udp_server.c:493]: udp_rcv_loop(): received on udp socket: (106/100/528) [[REGISTER sip:voip.domain.com SIP/2.0 0D  0A Via: SIP/2.0/UDP 32.1.128.4:52692;rport;branch=z9hG4bKPj]]</p>
<p>May 23 03:29:50 localhost /usr/local/sbin/kamailio[32104]: DEBUG: {1 8093 REGISTER nTrprYhDHmupMBiLT6fuYVwvy31d0YPB}  [core/socket_info.c:641]: grep_sock_info(): checking if host==us: 39==33 && [2001:8004:13C1:7751:7999:6FB5:216D:A4A8] == [2400:8907:0:0:F03C:92FF:FE22:XXXX]</p>
<h4>Log Messages</h4>
<p><a href="https://github.com/kamailio/kamailio/files/6527523/syslog.log">syslog.log</a></p>
<h4>SIP Traffic</h4>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1019075/119247055-466fad80-bbb9-11eb-90b7-1a42f4a0cc6c.png"><img src="https://user-images.githubusercontent.com/1019075/119247055-466fad80-bbb9-11eb-90b7-1a42f4a0cc6c.png" alt="IPV6TCP-Issue" style="max-width:100%;"></a><br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1019075/119247057-496a9e00-bbb9-11eb-92d3-fed71109d009.png"><img src="https://user-images.githubusercontent.com/1019075/119247057-496a9e00-bbb9-11eb-92d3-fed71109d009.png" alt="IPV6UDP-Issue" style="max-width:100%;"></a></p>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<p>version: kamailio 5.5.0 (x86_64/linux) ef765d<br>
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id: ef765d<br>
compiled on 03:53:39 May 23 2021 with gcc 8.3.0</p>
<p>version: kamailio 5.5.0 (x86_64/linux) ef765d<br>
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id: ef765d<br>
compiled on 04:15:07 May 23 2021 with gcc 8.3.0</p>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<p>4.19.0-16-amd64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="31891578" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/1" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/1/hovercard" href="https://github.com/kamailio/kamailio/issues/1">#1</a> SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2742">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZN7W3IHPAR4RMWGMK3TPB7EJANCNFSM45LJOIOQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOPNVDOYMJH6D6MWS3TPB7EJA5CNFSM45LJOIO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NMUTYHQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2742",
"url": "https://github.com/kamailio/kamailio/issues/2742",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>