On Tuesday 21 July 2015 12:45:02 Jurijs Ivolga wrote:
Maybe you can share with me full config of your load-balancer? It will be really nice if I can take a look on it. I'm very new in kamailio and for me is very difficult to complile working config from short code snippets. :)
See attachment. It is essentially the default config with some shortcuts for nat detection based on subnet and path support added.
You mentioned that you have 2 load-balancer. Does this 2 load-balancers share one domain-name?
Yes. The idea is that: -smart user agents can use SRV DNS records to do failover -not so smart user agents use the A DNS record (short ttl, maybe round robin) -stupid user agents use the ip adress of a loadbalancer by default and the other as backup
The actual domain is rewritten before sending to backends.
I was thinking to use dispatcher module for load balancing. Do you use dispatcher module in your config?
Yes, you need to loadbalance with dispatcher that the same callid is always routed to the same backend server.