Limiting number of calls ZAP

Hi,

I have created a group (g2) in zapata.conf

channel => 49-71
context=test2

I would like to limit number of calls that goes through this group using extensions.conf (I don’t want to create multiple group in Zapata)

how would I do this? I tried this but didn’t work:

[test2]
exten => _1.,1,Dial(Zap/71/${EXTEN})
exten => _1.,n,Dial(Zap/70/${EXTEN})
exten => _1.,n,Dial(Zap/69/${EXTEN})
exten => _1.,n,Dial(Zap/68/${EXTEN})

Thanks all

You would like to limit the total number of calls (per day / per hour)

OR

You would like to limit the number of concurrent calls at any given time?

Why don’t you want to set up another group, seems to be the easiest way to do it.

Hi Chris,

I would like to limit the number of concurrent calls at any given time…

I basically want to make sure that only 5 calls happen in the specific context…

I know creating another group will make thing easier but because of the way I have setup Asterisk I cannot do that at this point…

Thanks

Hi

Then use groupcount and count up the calls, then a gotoif when it trips overs the limit you set, I use this on IP gateways. Zap channels I would use groups

so for example

channel 10-20 are in group 1 and 15 - 20 are in 1 and 2 then to only use the 5 you want you only use group 2 or to use all you use group1

Ian

voip-info.org/wiki/view/Asterisk+func+group

Example 2.

I didn’t even know this existed!
Thanks Ian.

Thanks guys… I used group_count