B.Masoud @ SH
2009-Oct-08 08:57 UTC
[asterisk-users] limiting number of channels to be accessed
Hello all, Assuming I have 1 asterisk with 24 channels fxo and another 2 asterisk boxes all connected iax2, I want to grand the first asterisk box to use all the 24 channels on the main, but I want the 2nd 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) Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091008/757f2351/attachment.htm
Ivan Stepaniuk
2009-Oct-08 09:37 UTC
[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
B.Masoud @ SH
2009-Oct-08 17:46 UTC
[asterisk-users] limiting number of channels to be accessed
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