Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17433

Using extensions_custom.conf to choke number of calls to an extension

$
0
0

@bjones3221 wrote:

I am using extensions_custom.conf to create a choke for calls forwarded to a particular extension. The extension can accept 8 calls. The intended behavior is this;
If there are less than 8 calls then ring the extension for X amount of time.
If there are already 8 calls, send Busy.
If no one answers, after X time, hang up.
If the lines are busy, then send to the Voice Mailbox.

The problem is that with my current config, cannot get more than 4 calls to ring. If I do not use this custom destination for my inbound route and just use the extension directly, it allows 8 calls with no problem.

This issue arises because of what could be a large number of inbound calls at once. (possibly 200 or more) which overloads the endpoint, hence the desire to choke it off by the use of a custom destination.

Here is what my settings look like in extensions_custom.conf

[1401-choke]
exten => s,1,Set(GROUP()=1401)
exten => s,2,GotoIf($[${GROUP_COUNT(1401)} > 8]?1003)
exten => s,3,Dial(SIP/1401,180)
exten => s,4,Goto(1401-${DIALSTATUS},1)
exten => 1401-BUSY,1,Voicemail(1401@default,u)
exten => 1401-BUSY,2,Hangup
exten => 1401-NOANSWER,1,Hangup
exten => s,1003,Busy

Any expert insight is greatly appreciated.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>