[Asterisk-Users] Reserving a minimum qty of channels
Martin Pycko
martinp at digium.com
Mon Mar 24 09:15:52 MST 2003
You could use a global variable like this:
[globals]
max_channels_1=10
max_channels_2=13
appl_1=0
[incoming1]
exten => _.,1,GotoIf,$[${appl_1} > ${max_channels_1}]?hangup|1:2
exten => _.,2,SetGlobalVar,appl_1=$[${appl_1} + 1]
exten => _.,3,do_what_you_want_to_do
exten => h,1,SetGlobalVar,appl_1=$[${appl_1} - 1]
exten => hangup,1,Congestion
exten => hangup,2,Hangup
and similar for [incoming_2]
regards
Martin
On Mon, 24 Mar 2003, Ivar van de Pieterman wrote:
> We have two vrs applications running on the same PRI, on different
> phonenumbers. All our traffic is incoming only.
>
> To make sure one application will not eat all the channels, I'd like to
> reserve a minimum of channels available per application. I don't want to
> give each app a fixed number of channels, bcz it could be a waste of
> resources.
>
> I've tried to find some more info about this in the current docs, but
> without success.
>
> Anyone ever tried this? Could you give me a direction where to look?
>
> Thanks, Ivar.
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list