Dear Sir,

I have opened an issue on GitHub: "IPv6 bind wrong IP. #4199".

System Details:


kamailio.cfg:

#!define ADDR_IPV4 xxx.xxx.xxx.xxx #!define ADDR_IPV6 [aaaa:bbb:cccc:20::41e] listen=ADDR_IPV4 listen=ADDR_IPV6

netstat Output:

tcp6 0 0 aaaa:bbb:cccc:20:::5060 :::* LISTEN 1691274/kamailio tcp6 0 0 aaaa:bbb:cccc:20:::5061 :::* LISTEN 1691274/kamailio udp6 0 0 aaaa:bbb:cccc:20:::5060 :::* 1691222/kamailio

As shown, although I explicitly set the listen IP to aaaa:bbb:cccc:20::41e, Kamailio strips the last part of the address and binds to aaaa:bbb:cccc:20::

I also upgraded to version 6.0 with default cfg and set auto_bind_ipv6=1 or changed ipv6 address, but the issue still persists.


IPv6 Interface Configuration:

auto eth1 iface eth1 inet6 static address aaaa:bbb:cccc:20::41e netmask 64 gateway aaaa:bbb:cccc:20::1

I can successfully ping in and out using this IPv6 address.


Do I need to configure anything else in Kamailio or the system to ensure it binds to the full IPv6 address aaaa:bbb:cccc:20::41e as expected?

Currently I can register with ipv4, but ipv6 does not.

Thank you for your assistance.