I’ve been playing around with “clustering” some
Asterisk servers for sake of fail-over and load balancing with DNS
round-robin, and came to one problem.
If I have, say, 2 servers, and
clients register either on 1 or 2, how can I route extensions between
them? I mean, if today user with extension 101 is registered on server1,
and tomorrow he will register with server2 – how would any of servers
know where to route it?
As some examples, if I have only 2 servers,
things are not so bad. I can use Dial(SIP/101&SIP/server2/101) on
server1 and vice versa. OR, I can check the hungup code, and if it’s 34
(or whatever I get when I try to dial unavailable peer) – try it on
But I guess things get tricky when you have 3 or more
servers, and besides maybe this solution is not the best one. Could you
share some knowledge on this, please?