Hello Alex,

you will have N children per UDP socket worker for individual IPs, ports and IP 
version, but only N total children for TCP workers for all IPs, ports or IP 
version.

[email protected]$ grep listen kamailio-local.cfg
listen=127.0.0.1:5060
listen=[2a01:4f8:c2c:XXXXXX]:5060
listen=UNICAST_IP:5060
listen=UNICAST_IP:8933
listen=ANYCAST_IP:5060
listen=ANYCAST_IP:8933

[email protected]$ kamcmd ps |grep "udp receiver" | wc -l
48

[email protected]$ kamcmd ps |grep "tcp receiver" | wc -l
8

Cheers,

Henning

-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

> -----Original Message-----
> From: Alex Balashov via sr-users <[email protected]>
> Sent: Sonntag, 21. Juli 2024 14:44
> To: Kamailio (SER) - Users Mailing List <[email protected]>
> Cc: Alex Balashov <[email protected]>
> Subject: [SR-Users] Re: Listening on multiple TLS ports
> 
> Henning,
> 
> > On Jul 21, 2024, at 6:57 AM, Henning Westerholt via sr-users <sr-
> [email protected]> wrote:
> >
> > For TCP/TLS the server uses a different approach, but this is still 
> > something
> that probably was rarely tested. So, give it a try, but there might be some
> issues you encounter.
> 
> What is the different approach? My understanding is that, by default, Kamailio
> creates the full complement of child processes per listener, regardless of
> transport.
> 
> children=4
> 
> listen=udp:10.165.41.241:5060 advertise 54.85.142.125:5060
> listen=tcp:10.165.41.241:5060 advertise 54.85.142.125:5060
> 
> # kamcmd -s /tmp/kamailio_ctl ps | fgrep receiver
> 962193        udp receiver child=0 sock=10.165.41.241:5060
> (54.85.142.125:5060)
> 962194        udp receiver child=1 sock=10.165.41.241:5060
> (54.85.142.125:5060)
> 962196        udp receiver child=2 sock=10.165.41.241:5060
> (54.85.142.125:5060)
> 962197        udp receiver child=3 sock=10.165.41.241:5060
> (54.85.142.125:5060)
> 962247        tcp receiver (generic) child=0
> 962248        tcp receiver (generic) child=1
> 962251        tcp receiver (generic) child=2
> 962252        tcp receiver (generic) child=3
> 
> -- Alex
> 
> --
> Alex Balashov
> Principal Consultant
> Evariste Systems LLC
> Web: https://evaristesys.com
> Tel: +1-706-510-6800
> 
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
> send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
> Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to