Load balancer installation
SIP flow with load-balancer
Packages installation
root@server:~# apt update && apt install yeti-lb
Note
On package configuration stage you will be asked to specify address of previously installedsignaling node and address for load balancer to listen on.
After installation you can change any parameters by editing files: /etc/kamailio/dispatcher.list and /etc/kamailio/lb.conf
Warning
You should register your Load balancer instance as trusted load balancer. See System->Load balancers menu.
Launch
Launch load balancer:
root@server:~# service kamailio start
Checks
Check kamailio running and listening desired sockets:
root@server:~# pgrep kamailio
30853
30854
30855
30856
30857
root@server:~# netstat -lpn | grep kamailio
tcp 0 0 127.0.0.1:5060 0.0.0.0:* LISTEN 30857/kamailio
udp 0 0 127.0.0.1:5060 0.0.0.0:* 30853/kamailio
raw 0 0 0.0.0.0:255 0.0.0.0:* 7 30853/kamailio
unix 2 [ ACC ] STREAM LISTENING 2673337 30856/kamailio /var/run/kamailio//kamailio_ctl
Check for /var/log/syslog on possible errors.
Also you can run daemon in foreground with logging to stderr for debugging purposes:
root@server:~# kamailio /etc/kamailio/kamailio.cfg