Hi all I'm trying to limit the maximum concurrent calls on my Asterisk to try and mitigate another problem I posted about earlier. I've edited /etc/asterisk/asterisk.conf And uncommented this line, and put a value of 60 in there: maxcalls = 60 in an effort to limit my Asterisk to 60 simultaneous calls. I did a core reload in the CLI after doing that. Any idea why my running instance totally ignores this setting? I still goes right ahead and services unlimited numbers of simultaneous calls - we have 90 extensions or so and it will happily service 90 simultaneous calls in spite of asterisk.conf clearly stating maxcalls = 60 The "maxload" specification is also ignored, load can go anywhere the Asterisk instance keeps taking more calls despite load exceeding, for example maxload = 10 in /etc/asterisk/asterisk.conf What am I doing wrong that the asterisk binary is apparently ignoring settings in /etc/asterisk/asterisk.conf? Thanks Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170630/8802aa21/attachment.html>
This limit is only valid for inbound calls: Sets a maximum number of simultaneous inbound channels. No limit is set by default. Marcelo H. Terres <mhterres at gmail.com> IM: mhterres at jabber.mundoopensource.com.br https://www.mundoopensource.com.br https://twitter.com/mhterres https://linkedin.com/in/marceloterres On 30 June 2017 at 14:15, Stefan Viljoen <viljoens at verishare.co.za> wrote:> Hi all > > > > I?m trying to limit the maximum concurrent calls on my Asterisk to try and > mitigate another problem I posted about earlier. > > > > I?ve edited > > > > /etc/asterisk/asterisk.conf > > > > And uncommented this line, and put a value of 60 in there: > > > > maxcalls = 60 > > > > in an effort to limit my Asterisk to 60 simultaneous calls. > > > > I did a > > > > core reload > > > > in the CLI after doing that. > > > > Any idea why my running instance totally ignores this setting? I still goes > right ahead and services unlimited numbers of simultaneous calls - we have > 90 extensions or so and it will happily service 90 simultaneous calls in > spite of asterisk.conf clearly stating > > > > maxcalls = 60 > > > > The ?maxload? specification is also ignored, load can go anywhere the > Asterisk instance keeps taking more calls despite load exceeding, for > example > > > > maxload = 10 > > > > in /etc/asterisk/asterisk.conf > > > > What am I doing wrong that the asterisk binary is apparently ignoring > settings in /etc/asterisk/asterisk.conf? > > > > Thanks > > > > Stefan > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
You should try to limit it in your sip trunks (is you are using SIP trunks, of course) Marcelo H. Terres <mhterres at gmail.com> IM: mhterres at jabber.mundoopensource.com.br https://www.mundoopensource.com.br https://twitter.com/mhterres https://linkedin.com/in/marceloterres On 30 June 2017 at 15:41, Marcelo Terres <mhterres at gmail.com> wrote:> This limit is only valid for inbound calls: > > Sets a maximum number of simultaneous inbound channels. No limit is > set by default. > Marcelo H. Terres <mhterres at gmail.com> > IM: mhterres at jabber.mundoopensource.com.br > https://www.mundoopensource.com.br > https://twitter.com/mhterres > https://linkedin.com/in/marceloterres > > > On 30 June 2017 at 14:15, Stefan Viljoen <viljoens at verishare.co.za> wrote: >> Hi all >> >> >> >> I?m trying to limit the maximum concurrent calls on my Asterisk to try and >> mitigate another problem I posted about earlier. >> >> >> >> I?ve edited >> >> >> >> /etc/asterisk/asterisk.conf >> >> >> >> And uncommented this line, and put a value of 60 in there: >> >> >> >> maxcalls = 60 >> >> >> >> in an effort to limit my Asterisk to 60 simultaneous calls. >> >> >> >> I did a >> >> >> >> core reload >> >> >> >> in the CLI after doing that. >> >> >> >> Any idea why my running instance totally ignores this setting? I still goes >> right ahead and services unlimited numbers of simultaneous calls - we have >> 90 extensions or so and it will happily service 90 simultaneous calls in >> spite of asterisk.conf clearly stating >> >> >> >> maxcalls = 60 >> >> >> >> The ?maxload? specification is also ignored, load can go anywhere the >> Asterisk instance keeps taking more calls despite load exceeding, for >> example >> >> >> >> maxload = 10 >> >> >> >> in /etc/asterisk/asterisk.conf >> >> >> >> What am I doing wrong that the asterisk binary is apparently ignoring >> settings in /etc/asterisk/asterisk.conf? >> >> >> >> Thanks >> >> >> >> Stefan >> >> >> >> >> >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> Check out the new Asterisk community forum at: >> https://community.asterisk.org/ >> >> New to Asterisk? Start here: >> https://wiki.asterisk.org/wiki/display/AST/Getting+Started >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users
On Fri, Jun 30, 2017 at 03:15:21PM +0200, Stefan Viljoen wrote:> Hi all > > I'm trying to limit the maximum concurrent calls on my Asterisk to try and > mitigate another problem I posted about earlier. > > I've edited /etc/asterisk/asterisk.conf > > And uncommented this line, and put a value of 60 in there: > > maxcalls = 60 > > in an effort to limit my Asterisk to 60 simultaneous calls. > > I did a > > core reload > > in the CLI after doing that. > > Any idea why my running instance totally ignores this setting? I still goes > right ahead and services unlimited numbers of simultaneous calls - we have > 90 extensions or so and it will happily service 90 simultaneous calls in > spite of asterisk.conf clearly statingI suppose asterisk.conf is not read on a reload. IIUC it is read before the rest of the configuration. Another small thing that makes it slightly different: In any other configuration file you can either have '#include relative/path' or '#include /absolute/path' to include files. A relative path would be relative to $astetcdir. However when reading asterisk.conf, $astetcdir is not set yet, and thus '#include relative/path' would generally not work as expected. -- Tzafrir Cohen +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com