[asterisk-users] limiting number of channels to be accessed

Michelle Dupuis support at ocg.ca
Thu Oct 8 13:10:30 CDT 2009


And how do you track incoming channels on this trunk? 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve Mathers
Sent: Thursday, October 08, 2009 2:01 PM
To: Asterisk Users List
Subject: Re: [asterisk-users] limiting number of channels to be accessed

/etc/asterisk/extensions.conf

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of B.Masoud @ SH
Sent: Thursday, October 08, 2009 11:46 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [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



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


__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4491 (20091008) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4491 (20091008) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.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