Hello everyone, I had this problem before https://kamailio.org/mailman3/hyperkitty/list/sr-users@lists.kamailio.org/th... this was fix, but suddenly with everything the same it stop working, I've tried everything and nothing seems to fix the problem Logs: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 10 INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 1048576 for fd 11 INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 11 INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 1048576 for fd 12 INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 12 INFO: rtpengine [rtpengine.c:3040]: rtpp_test(): rtpengine instance udp:10.0.0.4:2223 found, support for> INFO: jsonrpcs [jsonrpcs_sock.c:471]: jsonrpc_dgram_process(): a new child 0/4164 Started kamailio.service - Kamailio - the Open Source SIP Server. WARNING: <core> [core/tcp_main.c:1301]: find_listening_sock_info(): binding to source address 10.0.0.4:506> INFO: <core> [core/tcp_main.c:3097]: tcpconn_1st_send(): quick connect for 0x7ec47d7cfab8 sock 13
When I run this command I get this sudo kamailio -f /etc/kamailio/kamailio.cfg -DD -E -e loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules 0(4778) INFO: <core> [core/sctp_core.c:74]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module Listening on udp: 10.0.0.4 [10.0.0.4]:5060 advertise <PUBLIC IP>:5060 tcp: 10.0.0.4 [10.0.0.4]:5060 advertise <PUBLIC IP>:5060 Aliases: *: 10.0.0.4:* *: <PUBLIC IP>:*
0(4778) INFO: <core> [core/tcp_main.c:5205]: init_tcp(): using epoll_lt as the io watch method (auto detected) 0(4778) INFO: rr [../outbound/api.h:53]: ob_load_api(): unable to import bind_ob - maybe module is not loaded 0(4778) INFO: rr [rr_mod.c:185]: mod_init(): outbound module not available 0(4778) INFO: jsonrpcs [jsonrpcs_sock.c:219]: jsonrpc_dgram_mod_init(): the socket /var/run/kamailio/kamailio_rpc.sock already exists, trying to delete it... 0(4778) INFO: pike [pike.c:93]: pike_init(): PIKE - initializing 0(4778) INFO: pike [ip_tree.c:79]: init_lock_set(): probing 256 set size 0(4778) INFO: <core> [main.c:3189]: main(): processes (at least): 15 - shm size: 67108864 - pkg size: 8388608 0(4778) INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 1048576 for fd 7 0(4778) INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 7 0(4778) ERROR: <core> [core/tcp_main.c:3260]: tcp_init(): bind(9, 0x74711968d9c8, 16) on 10.0.0.4:5060 : Address already in use 0(4778) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized and have this sudo iptables -L -n -v | grep 5060 12 13188 ACCEPT 17 -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:5060 5 260 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5060 1 52 ACCEPT 6 -- !br-aeab3c66b5ee br-aeab3c66b5ee 0.0.0.0/0 172.19.0.5 tcp dpt:5060 0 0 ACCEPT 17 -- !br-aeab3c66b5ee br-aeab3c66b5ee 0.0.0.0/0 172.19.0.5 udp dpt:5060
You have another running software ( might be also kamailio) on port 5060
On Tue, Jun 17, 2025, 17:17 Fernando Lopes via sr-users < sr-users@lists.kamailio.org> wrote:
Hello everyone, I had this problem before https://kamailio.org/mailman3/hyperkitty/list/sr-users@lists.kamailio.org/th... this was fix, but suddenly with everything the same it stop working, I've tried everything and nothing seems to fix the problem Logs: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 10 INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 1048576 for fd 11 INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 11 INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 1048576 for fd 12 INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 12 INFO: rtpengine [rtpengine.c:3040]: rtpp_test(): rtpengine instance udp: 10.0.0.4:2223 found, support for> INFO: jsonrpcs [jsonrpcs_sock.c:471]: jsonrpc_dgram_process(): a new child 0/4164 Started kamailio.service - Kamailio - the Open Source SIP Server. WARNING: <core> [core/tcp_main.c:1301]: find_listening_sock_info(): binding to source address 10.0.0.4:506> INFO: <core> [core/tcp_main.c:3097]: tcpconn_1st_send(): quick connect for 0x7ec47d7cfab8 sock 13
When I run this command I get this sudo kamailio -f /etc/kamailio/kamailio.cfg -DD -E -e loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules 0(4778) INFO: <core> [core/sctp_core.c:74]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module Listening on udp: 10.0.0.4 [10.0.0.4]:5060 advertise <PUBLIC IP>:5060 tcp: 10.0.0.4 [10.0.0.4]:5060 advertise <PUBLIC IP>:5060 Aliases: *: 10.0.0.4:* *: <PUBLIC IP>:*
0(4778) INFO: <core> [core/tcp_main.c:5205]: init_tcp(): using epoll_lt as the io watch method (auto detected) 0(4778) INFO: rr [../outbound/api.h:53]: ob_load_api(): unable to import bind_ob - maybe module is not loaded 0(4778) INFO: rr [rr_mod.c:185]: mod_init(): outbound module not available 0(4778) INFO: jsonrpcs [jsonrpcs_sock.c:219]: jsonrpc_dgram_mod_init(): the socket /var/run/kamailio/kamailio_rpc.sock already exists, trying to delete it... 0(4778) INFO: pike [pike.c:93]: pike_init(): PIKE - initializing 0(4778) INFO: pike [ip_tree.c:79]: init_lock_set(): probing 256 set size 0(4778) INFO: <core> [main.c:3189]: main(): processes (at least): 15 - shm size: 67108864 - pkg size: 8388608 0(4778) INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 1048576 for fd 7 0(4778) INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 1048576 on fd 7 0(4778) ERROR: <core> [core/tcp_main.c:3260]: tcp_init(): bind(9, 0x74711968d9c8, 16) on 10.0.0.4:5060 : Address already in use 0(4778) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized and have this sudo iptables -L -n -v | grep 5060 12 13188 ACCEPT 17 -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:5060 5 260 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5060 1 52 ACCEPT 6 -- !br-aeab3c66b5ee br-aeab3c66b5ee 0.0.0.0/0 172.19.0.5 tcp dpt:5060 0 0 ACCEPT 17 -- !br-aeab3c66b5ee br-aeab3c66b5ee 0.0.0.0/0 172.19.0.5 udp dpt:5060 __________________________________________________________ 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!
Does this help:, In theory I have 2 kamailios, 1 inside a docker and 1 outside(this one should handle the initial requests) sudo lsof -i :5060 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME kamailio 866 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 877 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 878 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 879 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 880 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 881 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 882 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 883 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 884 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 885 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 887 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 888 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 889 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 890 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 891 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 891 kamailio 10u IPv4 7708 0t0 TCP machine:sip (LISTEN) sudo ss -ltnup | grep 5060 udp UNCONN 0 0 10.0.0.4:5060 0.0.0.0:* users:(("kamailio",pid=891,fd=9),("kamailio",pid=890,fd=9),("kamailio",pid=889,fd=9),("kamailio",pid=888,fd=9),("kamailio",pid=887,fd=9),("kamailio",pid=885,fd=9),("kamailio",pid=884,fd=9),("kamailio",pid=883,fd=9),("kamailio",pid=882,fd=9),("kamailio",pid=881,fd=9),("kamailio",pid=880,fd=9),("kamailio",pid=879,fd=9),("kamailio",pid=878,fd=9),("kamailio",pid=877,fd=9),("kamailio",pid=866,fd=9)) tcp LISTEN 0 1024 10.0.0.4:5060 0.0.0.0:* users:(("kamailio",pid=891,fd=10))
sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f3x containier1 "bash /x…" 4 hours ago Up 2 minutes 0.0.0.0:8081->8081/tcp, :::8081->8081/tcp siptest 37x containier2 "bash /xx…" 4 hours ago Up 2 minutes 1544/tcp, 0.0.0.0:1554->1554/tcp, :::1554->1554/tcp, 4000-5001/tcp, 0.0.0.0:5002-5037->5002-5037/tcp, :::5002-5037->5002-5037/tcp, 5038/tcp, 5060/udp, 0.0.0.0:5039-5053->5039-5053/tcp, 0.0.0.0:1554->1554/udp, :::5039-5053->5039-5053/tcp, :::1554->1554/udp, 5054-6000/tcp, 8088-8089/tcp, 10000-10099/tcp, 0.0.0.0:8066->8066/tcp, 0.0.0.0:8066->8066/udp, :::8066->8066/tcp, :::8066->8066/udp, 8060/udp unimrcp cfx containier3 "bash /xx…" 4 hours ago Up 2 minutes 1544/tcp, 4000-5037/tcp, 5039-5059/tcp, 0.0.0.0:5038->5038/tcp, :::5038->5038/tcp, 5061-6000/tcp, 0.0.0.0:8060->8060/tcp, :::8060->8060/tcp, 0.0.0.0:8068->8068/tcp, :::8068->8068/tcp, 8066/tcp, 10000-10099/tcp, 0.0.0.0:8088->8088/tcp, :::8088->8088/tcp, 0.0.0.0:8060->8060/udp, :::8060->8060/udp, 8066/udp, 0.0.0.0:5061->5060/tcp, 0.0.0.0:5061->5060/udp, [::]:5061->5060/tcp, [::]:5061->5060/udp, 0.0.0.0:8090->8089/tcp, [::]:8090->8089/tcp asterisk e3x containier4 "/bin/sh -c 'bash /k…" 4 hours ago Up 2 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp kamailio 5ex containier5 "flask run --host=0.…" 24 hours ago Up 2 minutes 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp, 0.0.0.0:5433->5433/tcp, :::5433->5433/tcp
Hello,
I did not looked to the multi-container setup shown below, but you can not run two different services on the same IP and port, regardless if you are using container or not.
Cheers,
Henning
-----Original Message----- From: Fernando Lopes via sr-users sr-users@lists.kamailio.org Sent: Dienstag, 17. Juni 2025 17:30 To: sr-users@lists.kamailio.org Cc: Fernando Lopes fernandolopes20003@gmail.com Subject: [SR-Users] Re: What was working Stop working, Send help
Does this help:, In theory I have 2 kamailios, 1 inside a docker and 1 outside(this one should handle the initial requests) sudo lsof -i :5060 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME kamailio 866 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 877 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 878 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 879 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 880 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 881 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 882 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 883 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 884 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 885 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 887 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 888 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 889 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 890 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 891 kamailio 9u IPv4 7706 0t0 UDP machine:sip kamailio 891 kamailio 10u IPv4 7708 0t0 TCP machine:sip (LISTEN) sudo ss -ltnup | grep 5060 udp UNCONN 0 0 10.0.0.4:5060 0.0.0.0:* users:(("kamailio",pid=891,fd=9),("kamailio",pid=890,fd=9),("kamailio",pid=8 89,fd=9),("kamailio",pid=888,fd=9),("kamailio",pid=887,fd=9),("kamailio",pid =885,fd=9),("kamailio",pid=884,fd=9),("kamailio",pid=883,fd=9),("kamailio", pid=882,fd=9),("kamailio",pid=881,fd=9),("kamailio",pid=880,fd=9),("kamaili o",pid=879,fd=9),("kamailio",pid=878,fd=9),("kamailio",pid=877,fd=9),("kam ailio",pid=866,fd=9)) tcp LISTEN 0 1024 10.0.0.4:5060 0.0.0.0:* users:(("kamailio",pid=891,fd=10))
sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f3x containier1 "bash /x…" 4 hours ago Up 2 minutes 0.0.0.0:8081-
8081/tcp, :::8081->8081/tcp
siptest 37x containier2 "bash /xx…" 4 hours ago Up 2 minutes 1544/tcp, 0.0.0.0:1554->1554/tcp, :::1554->1554/tcp, 4000-5001/tcp, 0.0.0.0:5002- 5037->5002-5037/tcp, :::5002-5037->5002-5037/tcp, 5038/tcp, 5060/udp, 0.0.0.0:5039-5053->5039-5053/tcp, 0.0.0.0:1554->1554/udp, :::5039- 5053->5039-5053/tcp, :::1554->1554/udp, 5054-6000/tcp, 8088-8089/tcp, 10000-10099/tcp, 0.0.0.0:8066->8066/tcp, 0.0.0.0:8066->8066/udp, :::8066->8066/tcp, :::8066->8066/udp, 8060/udp unimrcp cfx containier3 "bash /xx…" 4 hours ago Up 2 minutes 1544/tcp, 4000- 5037/tcp, 5039-5059/tcp, 0.0.0.0:5038->5038/tcp, :::5038->5038/tcp, 5061-6000/tcp, 0.0.0.0:8060->8060/tcp, :::8060->8060/tcp, 0.0.0.0:8068-
8068/tcp, :::8068->8068/tcp, 8066/tcp, 10000-10099/tcp, 0.0.0.0:8088- 8088/tcp, :::8088->8088/tcp, 0.0.0.0:8060->8060/udp, :::8060- 8060/udp, 8066/udp, 0.0.0.0:5061->5060/tcp, 0.0.0.0:5061->5060/udp,
[::]:5061->5060/tcp, [::]:5061->5060/udp, 0.0.0.0:8090->8089/tcp, [::]:8090->8089/tcp asterisk e3x containier4 "/bin/sh -c 'bash /k…" 4 hours ago Up 2 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp kamailio 5ex containier5 "flask run --host=0.…" 24 hours ago Up 2 minutes 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp, 0.0.0.0:5433->5433/tcp, :::5433->5433/tcp __________________________________________________________ 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!