[Asterisk-Users] Re: Connecting 20+ asterisk servers together

Vikram Rangnekar vicky at freebsdcluster.net
Mon May 9 10:48:15 MST 2005


+++ Kanuri, Seshu (Company IT) [09/05/05 11:25 -0400]:
> Vikram,
> 
> Instead of trying to be over-ambitious and try to connect 20 Asterisk
> boxes together, why don't you try top connect three (3) of them together
> first.
> 
> There may lie a plausible solution for you. If this is done, you may go
> and string four of them together and so on and so forth.
> 
> Take the first step now.
> 
> Seshu Kanuri
> 
Hi Seshu,

Three boxes are no problem I already have that running infact 6 boxes to be
exact. But now I have to do 20 plus boxes and they have to be scalable by
that I mean if I want to say 10 more boxes I should be able to do that
easily. 

For three boxes I just have IAX trunks between them and have a dialplan
extension for each

exten => _1.,1,Dial(IAX2/${EXTEN:1}@192.168.0.1)
exten => _2.,1,Dial(IAX2/${EXTEN:1}@192.168.0.2)
exten => _3.,1,Dial(IAX2/${EXTEN:1}@192.168.0.3)

I can always use the 'switch' statement to share dialplans too just that the
phones will try to directly send their RTP streams to each other which will
not take advantage of IAX trunking. And if any server is slow then the whole
extension mactching will slow down horribly.

The solution I'm looking for is that say there are 20 servers each can have
their own extensions and whenever a call is placed to an extension thats not
in the local dialplan the asterisk box should sent that call through an IAX
trunk to the asterisk server which contains that extension.

What I understand is that we would need a central database (like enum or
soemthing) to hold all the extensions and the server ip on which that
extension exists. Now when a call is placed that list is lookedup and an IAX
trunk is opened to that server and the call is sent to it. Also if another
call is placed to the same server it uses the same IAX trunk to pass the
second call through too.

-- 
regards
Vikram (http://www.vicramresearch.com)



More information about the asterisk-users mailing list