I found corex.list_sockets
does not show the address family (af
) properly
But core.sockets_list
properly shows the address family (af
).
Required to create a config file with content like
loadmodule "pv.so"
loadmodule "ctl.so"
loadmodule "corex.so"
listen=udp:127.0.0.1:5060
listen=udp:[::1]:5060
request_route {
drop;
}
Start kamailio and then execute
kamcmd corex.list_sockets
The output will be like
{
af: unknown
proto: udp
name: 127.0.0.1
addrlist: {
addr: 127.0.0.1
}
port: 5060
sockstr: udp:127.0.0.1:5060
mcast: no
mhomed: no
virtual: no
sockname: -
advertise: -
}
{
af: unknown
proto: udp
name: ::1
addrlist: {
addr: ::1
}
port: 5060
sockstr: udp:[::1]:5060
mcast: no
mhomed: no
virtual: no
sockname: -
advertise: -
}
kamailio -v
version: kamailio 5.9.0-dev0 (aarch64/linux) 206399
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT-NOSMP, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_SEND_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 206399
compiled on 12:57:52 Mar 30 2024 with gcc 8.5.0
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.