[asterisk-users] Extensions routing

Mikhail Lischuk mlischuk at itx.com.ua
Sat May 19 02:48:07 CDT 2012


 

Greetings! 

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
another server. 

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? 

-- 
With Best Regards
Mikhail
Lischuk

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120519/6d28bfe0/attachment.htm>


More information about the asterisk-users mailing list