[asterisk-users] sip trunk balancing

2011-02-03 Thread marek cervenka

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?

thanks
Marek


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sip trunk balancing

2011-02-03 Thread Kevin P. Fleming

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: kflem...@digium.com
Check us out at www.digium.com  www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users