Hi all,
Does anyone know if there is a way to limit the concurrents calls ???
Thank you
what technology, SIP, IAX2, SCCP ??
Hi,
SIP and IAX.
Hi - I’ve had good luck with the below code. For calls that exceed the concurrent call limit I’ve set, a “fake” busy signal is played then the call hangs up. I do this because if I simply reject the excess calls, the callers hear a “your call could not be completed…” message and of course I don’t want that. I’ve found that by not Answering the call until after the busy tones play, I can avoid having the callers hear a ring before the busy signal. There may be better ways, but this works for me. I’d like to hear comments or improvements from others. I use a SIP based provider.
exten => s,1,Set(GROUP(${EXTEN})=incoming)
exten => s,2,noop( ${GROUP_COUNT(incoming@${EXTEN})} )
;set concurrent call limit here
exten => s,3,GotoIf($[${GROUP_COUNT(incoming@${EXTEN})} > 3 ]?333)
…
; Play busy and hangup if incoming limit is exceeded
exten => s,333,Playtones(busy)
exten => s,334,Wait(7)
exten => s,335,Answer
exten => s,336,Hangup
How do you want to limit the calls?
max for the machine, max per extension, max per sip / iax account, …
Dan
The code I posted above works to limit the number of calls coming from my SIP provider, but I’d like to know how to limit the number of calls to a specific extension too. Any hints would be appreciated.
Sorry if I missed the point here, but how about setting call-limit in sip.conf.
call-limit=4
I use that on some of my extensions and it works, you just have to handle the busy condition to make it do what you want to instead.
Mike.
This is a good way to limit the maximum number of calls per sip account, but there are other things you might want to limit that cannot be done so easily. For example, limiting the number of calls coming into an extension.
I think that what this post is aiming to solve.
Dan