On 02/03/2011 11:41 AM, marek cervenka wrote:> hi,
>
> is there some way to balance accross sip trunks by the number of calls?
>
> example
> 3 trunks
> alfa(max 30 channels, priority 1),delta(60,priority 2),omega(90,priority 3)
>
> alfa have 25 calls now
> i want next call terminate to delta. how to find in asterisk the current
> calls number on sip trunk alfa?
>
> 1) set call-limit in sip.conf. then in the dialplan "sip show peer
> inuse|grep alfa -> parse -> if "numcalls > 25" then
dial(sip/delta)
> 2) groupcount ?
> 3) what else?
GROUP() would be the way to go, for sure.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming at digium.com
Check us out at www.digium.com & www.asterisk.org