- socket_info.c: getifaddrs() returns AF_PACKET, AF_INET and AF_INET6 addressed of an interface. AF_PACKET are of no use and breaks startup with an -l eth0:5060 cmd line param You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/558
-- Commit Summary --
* core: skip address family AF_PACKET on -l iface_name
-- File Changes --
M socket_info.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/558.patch https://github.com/kamailio/kamailio/pull/558.diff
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/558
Issue introduced with 4.4.0:
develop@build:~# /usr/sbin/kamailio -D -f /etc/kamailio/kamailio.cfg -P /var/run/kamailio/kamailio.pid -m 4 -M 8 -u kamailio -g kamailio -l eth0 loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/ failed to initialize list addresses develop@build:~# tail /var/log/kamailio.log Apr 1 10:01:07 p01t-2 kamailio: CRITICAL: <core> [ip_addr.h:350]: sockaddr2ip_addr(): unknown address family 17 Apr 1 10:01:07 p01t-2 kamailio: CRITICAL: <core> [ip_addr.h:658]: ip_addr2sbuf(): unknown address family 0 Apr 1 10:01:07 p01t-2 kamailio: ERROR: <core> [socket_info.c:1252]: fix_hostname(): could not resolve Apr 1 10:01:07 p01t-2 kamailio: ERROR: <core> [socket_info.c:1803]: fix_all_socket_lists(): fix_socket_list udp failed
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/558#issuecomment-204310669
Thanks!
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/558#issuecomment-204321346
Merged #558.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/558#event-611004300
I had to push another patch as AF_PACKET is not defined for Mac OS X (could be the same for *BSDs) -- commit 8543993e1f702aef80887c0e72b9bf67c62c1617
Can you test if works fine for you? I will backport if all good.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/558#issuecomment-204322993