### Description
I found `corex.list_sockets` does not show the address family (`af`) properly

But `core.sockets_list` properly shows the address family (`af`).

### Troubleshooting

#### Reproduction
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
```sh
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: -
}
```
### Additional Information

  * **Kamailio Version** - output of `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
```

* **Operating System**:
```
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 or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3799
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/[email protected]>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to