How to limit concurrent calls for asterisk extensions

Written by admin on November 22, 2014. Posted in Asterisk, Server Security

Sometime you need to limit the number of simultaneous calls that an extension can be allowed to make. freepbx has a trunk simultaneous calls limitation but does not have the SIP account limitation facility. the workaround  is to do the following.

Login to your server via ssh and do the following

# nano sip_custom_post.conf

suppose the extension you want to limit is 3500  and you want to limit the call limit to 3 simultaneous calls. hen you must copy and paste the following.

[3500](+)
call-limit=3

Save the file by clicking  CTRL + X   and then confirm with a Y

Restart asterisk

# amportal restart