[asterisk-users] limiting number of channels to be accessed
B.Masoud @ SH
info at saudihome.com
Thu Oct 8 12:46:01 CDT 2009
Where do I add these commands? To which file?
[macro-stdvoip]
; ${ARG1} - full dial string
; Return ${DIALSTATUS} = CHANUNAVAIL if ${VOIPMAX} exceeded
exten => s,1,Set(GROUP()=trunkgroup1) ;Set Group
exten => s,2,GotoIf($[${GROUP_COUNT(trunkgroup1)} > ${VOIPMAX}]?103)
;Exceeded?
exten => s,3,Dial(${ARG1}) ;dial it
exten => s,103,SetVar(DIALSTATUS=CHANUNAVAIL) ;deny call
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ivan Stepaniuk
Sent: Thursday, October 08, 2009 12:38 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] limiting number of channels to be accessed
B.Masoud @ SH wrote:
> I want to grand the first asterisk box to use all the 24 channels on the
> main, but I want the 2^nd asterisk to use only 8 port, how can limit the
> second box from receiving more than 8 simultaneous calls?? (even if the
> main have available ports)
This can be done using the GROUP functions under asterisk.
Check this, look at example #2:
http://www.voip-info.org/wiki/index.php?page=Asterisk+func+group
--
Iván Stepaniuk
Alba Fotónica S.L.
www.albafotonica.com
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list