[asterisk-users] Load balance outgoing calls

Steve Edwards asterisk.org at sedwards.com
Mon Feb 22 18:50:11 CST 2010


On Mon, 22 Feb 2010, Alejandro Recarey wrote:

> I have a provider that has 3 asterisk boxes which I must balance my 
> calls against. At the moment, I route different destinations to 
> different boxes but this causes lots of problems.

[snip]

> Is there any way I can balance calls between all of the hosts in the 
> providers description?

Name the provider hosts something like isp0, isp1, and isp2. Then in 
extensions.conf, use something like:

 	dial(iax2/isp${MATH(${EPOCH}%3):0:1}/${EXTEN})

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list