I believe kamailio bound to the correct ip, regardless of whether the listed output via the tool (netstat/ss) is long or short form of ipv6, it should be considerably irrelevant https://datatracker.ietf.org/doc/html/rfc4291#section-2.2 You should be focusing on the "not able to register" part, not the bind part, could be very well the client issue.
rgds, Loi Dang Thanh Phone : +84. 774.735.448 Email : loi.dangthanh@gmail.com
On Wed, Apr 16, 2025 at 4:13 PM Sergei Safarov via sr-users < sr-users@lists.kamailio.org> wrote:
As I know netstat stip long IPv6 addresses during output. Try using
ss -l -n
On Wed, 2025-04-09 at 16:10 +0700, Vu Nguyen via sr-users wrote:
*Dear Sir,*
I have opened an issue on GitHub: *"IPv6 bind wrong IP. #4199 https://github.com/kamailio/kamailio/issues/4199"*.
*System Details:*
*Kamailio (5.8.x)* – SIP Proxy
*FreeSWITCH* – Media Server
*OS* – Debian 12
*Gateway* – aaaa:bbb:cccc:20::1
*IPv6 Address* – aaaa:bbb:cccc:20::41e
*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. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!