My setup has two kamailio proxies for redundancy. My service providers load balance to any of these, and in turn these two proxies load balance to two asterisk servers who identify my kamailios using SRV records. This works great, kamailio handles the load balancing and failover perfectly.
But my issue comes when i want to achieve the same effect when a call goes from the asterisk to either of the two proxies. I want to both load balance and ensure that a call that’s sent to a proxy that is down is retried on the second proxy based on the SRV.
I added an aor with a contact = sip:proxy@example.com which has a SRV record pointing to proxy1 and proxy2. The issue is that if either of these don’t respond to the qualifying sip options then the whole endpoint is set as down despite the second proxy still being up.
If i add two aors and set the endpoint to aors=proxy1,proxy2 it doesn’t load balance.
What’s the recommended way of achieving this? I’m surprised i can’t find any obvious way of doing a LB/HA dial so i’m hoping i’m just missing some obvious setting.