Discussion:
[asterisk-users] asterisk.conf ignored?
Stefan Viljoen
2017-06-30 13:15:21 UTC
Permalink
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
Marcelo Terres
2017-06-30 14:41:05 UTC
Permalink
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 <***@gmail.com>
IM: ***@jabber.mundoopensource.com.br
https://www.mundoopensource.com.br
https://twitter.com/mhterres
https://linkedin.com/in/marceloterres
Post by Stefan Viljoen
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
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 --
https://community.asterisk.org/
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- 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/
Marcelo Terres
2017-06-30 14:41:43 UTC
Permalink
You should try to limit it in your sip trunks (is you are using SIP
trunks, of course)
Marcelo H. Terres <***@gmail.com>
IM: ***@jabber.mundoopensource.com.br
https://www.mundoopensource.com.br
https://twitter.com/mhterres
https://linkedin.com/in/marceloterres
Post by Marcelo Terres
Sets a maximum number of simultaneous inbound channels. No limit is
set by default.
https://www.mundoopensource.com.br
https://twitter.com/mhterres
https://linkedin.com/in/marceloterres
Post by Stefan Viljoen
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
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 --
https://community.asterisk.org/
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- 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.co
Tzafrir Cohen
2017-07-02 07:24:42 UTC
Permalink
Post by Stefan Viljoen
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
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
I 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:***@xorcom.com
http://www.xorcom.com
--
_____________________________________________________________________
-- 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
Continue reading on narkive:
Loading...