[asterisk-users] Asterisk send calls to SIP Trunks with Round Robin Call Distribution

Steve Edwards asterisk.org at sedwards.com
Fri Apr 2 08:45:19 CDT 2010


On Fri, 2 Apr 2010, JR Richardson wrote:

> I have a special requirement that insist an Asterisk server, 1.6.1.x, is 
> used.  I will have 2 SIP trunks coming into the server and I will have 
> to send calls to these SIP trunks with a round robin distribution 
> pattern.  I was thinking of using a group count function, if call count 
> is even send call to SIP Trunk 1, if call count is odd, send call to SIP 
> Trunk 2.

The "decimal" portion of ${UNIQUEID} is incremented every time Asterisk 
creates a channel. Applying your even/odd logic to this should work fine.

-- 
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