Hi,
I was asked to create a limit on the inbound concurrent calls on an asterisk system which is receiving calls from a patton in transparent mode, there is no trunk connection.
I’d like to set a limit on the incoming concurrent calls based on a DID. Is it possibile?
Thanks
Offered calls must be limited at the source. Once offered you don’t have to answer the call and you can use GROUPCOUNTs to count the calls in various classes.
Hi, what do you mean by limiting the calls on the source? I’m having this T1 device which is forwarding the calls to the asterisk server (which runs under elastix). This T1 device supports up to 2 channels. I would like to assign one channel only for recieving calls on one did.
If it’s possible please help me with the code since I was never asked for something like this and I never did any scripting or whatever.
Thanks
I have found this code:
exten => s,1, Set(GROUP()=OUTBOUND_GROUP)
exten => s,2, Noop(${GROUP_COUNT(OUTBOUND_GROUP)})
exten => s,3, GotoIf($[${GROUP_COUNT(OUTBOUND_GROUP)} > 8]?103)
exten => s,4, ;THE REST OF YOUR INCOMING DIALPLAN
Incoming Macro
exten => s,1, Set(GROUP()=OUTBOUND_GROUP)
exten => s,2, Noop(${GROUP_COUNT(OUTBOUND_GROUP)})
exten => s,3, GotoIf($[${GROUP_COUNT(OUTBOUND_GROUP)} > 1]?103)
exten => s,4, ;THE REST OF YOUR INCOMING DIALPLAN
exten => s,103,Hangup() ;or whatever you want to do
Is it ok? I’m sure it has to be modified. What should I modify to be sure it will do it’s job?