Skip to main content

Maximum Channels

Posted by serverbeach on Thu, 10/09/2008

Greetings, is there a way to limit the number of simultaneous call on a trunk?

Regards,
Serverbeach


Submitted by gregshap on Sat, 10/11/2008 Permalink

Erik,

So that is why TL won't try my second trunk when my POTS trunk is already on a call. Can you explain how to configure Group_Count?

Also, when a trunk is down (like not registering with the provider) TL won't try the next trunk when I have outbound routes set to "Dial Out (2 trunks)" It just sits there with silence instead of jumping to the second trunk specified.

Have you heard of a fix for that?

It would be great if you could help me solve these two problems.

Thanks,

Greg

Submitted by eeman on Sun, 10/12/2008 Permalink

exten => s,1,Set(GROUP(callpaths)=${ARG1})

exten => s,n,Set(CDR(accountcode)=${ARG1})

exten => s,n,NoOp(GROUP_COUNT = ${GROUP_COUNT(${ARG1}@callpaths)})

exten => s,n,GotoIf($[${GROUP_COUNT(${ARG1}@callpaths)} > ${ARG2}]?congested)

exten => s,n,PROCEED TO ALLOW CALL

exten => s,n,MacroExit

exten => s,n(congested),Playback(all-circuits-busy-now)

exten => s,n,Hangup

this is an example of outbound calling macro using group count to determine if to allow the call or to play a recording to the caller.

Submitted by serverbeach on Fri, 10/17/2008 Permalink

Good afternoon and thank you for your post. Are you setting the GROUP_COUNT in the Global Variables?

Regards,

Serverbeach

Submitted by eeman on Fri, 10/17/2008 Permalink

no GROUP_COUNT is a function. It counts how many current calls are in use for ${GROUP} and I pass ${GROUP} to my macro as ARG1. In my case I create an account code for each customer and use that same number for group counting etc.

Submitted by gerteizinga on Wed, 02/04/2009 Permalink

Hello

Is this limitation for inbound and outbound calls and what happens if the max number is reached

I would like to limit the max number of all all calls (inbound/outbound/internal) per tenant

is that possible and if so how can we achieve that

Regards

Gert

Submitted by eeman on Wed, 02/04/2009 Permalink

its all how you code it, however, in order to limit internal calls you will have to completely re-write all the extension scripts in thirdlane.