Re: [asterisk-users] asterisk ari dialer

2017-06-30 Thread marek cervenka

my use case is for performace testing


scenario

asterisk14 - sip  - tested asterisk - sip - clients (asterisk 14)


i have working ari push configuration


now i want create a call where call leg A will be some media file. call 
leg B will be channel to tested asterisk


i dont have an incoming call e.g. for this example 
https://github.com/asterisk/node-ari-client/blob/master/examples/promises/originate.js





Dne 29/06/2017 v 13:38 marek cervenka napsal(a):

hi,

do you have someone example of

http://blogs.asterisk.org/2016/08/24/asterisk-14-ari-create-bridge-dial/

in node.js asterisk-ari ?

thanks

Marek




--
_
-- 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


[asterisk-users] Asterisk sip_autodestruct messages - extensions locked

2017-06-30 Thread Stefan Viljoen
Hi guys

 

Does anybody have any opinion on what causes tens of thousands of these
messages per hour to pop up in the CLI:

 

[Jun 30 14:24:59] WARNING[2209]: chan_sip.c:4057 __sip_autodestruct:
Autodestruct on dialog '7e9597ae6ce95fef23374f4b380a9b70@192.168.0.1:5060'
with owner SIP/1148-0005bb2d in place (Method: BYE). Rescheduling
destruction for 1 ms

[Jun 30 14:25:01] WARNING[2209]: chan_sip.c:4057 __sip_autodestruct:
Autodestruct on dialog '6faefcc24547f1e774864ca87e3ff335@192.168.0.1:5060'
with owner SIP/1028-0005bb3f in place (Method: BYE). Rescheduling
destruction for 1 ms

[Jun 30 14:25:02] WARNING[2209]: chan_sip.c:4057 __sip_autodestruct:
Autodestruct on dialog '0d64480f4052a9e9054153552f1af7ba@192.168.0.1:5060'
with owner SIP/1412-0005bb5d in place (Method: BYE). Rescheduling
destruction for 1 ms

 

Symptoms are that an extension will dial, converse and hang up, but then be
unable to dial for up to four minutes after the initial call that extension
made - all the while thousands of the above messages scroll by in the CLI.
Along with then hundreds of "too many calls" warnings for each extension
which are limited to 1 call per extension at a time in sip.conf

 

I've googled intensively, no AGI is being run, hangup literally calls
Hangup(). I've already disabled and unloaded CDR-TDS, and ODBC CEL and CDR
logging to MySQL (in case db issues are causing a lock or something when
writing CDRs)

 

I see on big G that many many people have had this issue, but nowhere is
there any kind of concrete end result or answer to any of the questions.
This has started to happen at our site this Monday... it comes and goes
driven by no factor I can determine, except maybe workload. Server load
average when this is going on is 8 in top for a quad-Core i7 machine with
Centos 7 and 8GB of RAM, but the machine has hit 16 as load avg without this
happening. It also sometimes happens with the load average at 4 or less...

 

The particular server has been running undisturbed for about three years and
has handled tens of millions of calls, and only this Monday started
exhibiting this behaviour. The dialplan was last changed about three months
(and about 3 million calls) ago.

 

Any body got ANY advice or ideas where I can begin to diagnose this?

 

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

Re: [asterisk-users] Asterisk sip_autodestruct messages - extensions locked

2017-06-30 Thread Steve Davies
Based on the line number of that error in chan_sip.c, it looks like you're
running Asterisk 1.8 or earlier.

AFAIK, The issue you are seeing was fixed years ago, but not THAT many
years ago!

If I'm right, you should upgrade to fix that issue.

Cheers,
Steve

On Fri, 30 Jun 2017 at 13:39 Stefan Viljoen 
wrote:

> Hi guys
>
>
>
> Does anybody have any opinion on what causes tens of thousands of these
> messages per hour to pop up in the CLI:
>
>
>
> [Jun 30 14:24:59] WARNING[2209]: chan_sip.c:4057 __sip_autodestruct:
> Autodestruct on dialog '7e9597ae6ce95fef23374f4b380a9b70@192.168.0.1:5060'
> with owner SIP/1148-0005bb2d in place (Method: BYE). Rescheduling
> destruction for 1 ms
>
> [Jun 30 14:25:01] WARNING[2209]: chan_sip.c:4057 __sip_autodestruct:
> Autodestruct on dialog '6faefcc24547f1e774864ca87e3ff335@192.168.0.1:5060'
> with owner SIP/1028-0005bb3f in place (Method: BYE). Rescheduling
> destruction for 1 ms
>
> [Jun 30 14:25:02] WARNING[2209]: chan_sip.c:4057 __sip_autodestruct:
> Autodestruct on dialog '0d64480f4052a9e9054153552f1af7ba@192.168.0.1:5060'
> with owner SIP/1412-0005bb5d in place (Method: BYE). Rescheduling
> destruction for 1 ms
>
>
>
> Symptoms are that an extension will dial, converse and hang up, but then
> be unable to dial for up to four minutes after the initial call that
> extension made - all the while thousands of the above messages scroll by in
> the CLI. Along with then hundreds of “too many calls” warnings for each
> extension which are limited to 1 call per extension at a time in sip.conf
>
>
>
> I’ve googled intensively, no AGI is being run, hangup literally calls
> Hangup(). I’ve already disabled and unloaded CDR-TDS, and ODBC CEL and CDR
> logging to MySQL (in case db issues are causing a lock or something when
> writing CDRs)
>
>
>
> I see on big G that many many people have had this issue, but nowhere is
> there any kind of concrete end result or answer to any of the questions.
> This has started to happen at our site this Monday... it comes and goes
> driven by no factor I can determine, except maybe workload. Server load
> average when this is going on is 8 in top for a quad-Core i7 machine with
> Centos 7 and 8GB of RAM, but the machine has hit 16 as load avg without
> this happening. It also sometimes happens with the load average at 4 or
> less...
>
>
>
> The particular server has been running undisturbed for about three years
> and has handled tens of millions of calls, and only this Monday started
> exhibiting this behaviour. The dialplan was last changed about three months
> (and about 3 million calls) ago.
>
>
>
> Any body got ANY advice or ideas where I can begin to diagnose this?
>
>
>
> 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
-- 
_
-- 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

Re: [asterisk-users] asterisk.conf ignored?

2017-06-30 Thread Marcelo Terres
You should try to limit it in your sip trunks (is you are using SIP
trunks, of course)
Marcelo H. Terres 
IM: mhter...@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  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 
> IM: mhter...@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  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

-- 
_
-- 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

[asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Jonathan H
I use a python AGI which pulls some info from a web service, which should
take half a second.

Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but
the dialplan should continue immediately as it's not dependent on the
AGI/web service data.

What's the simplest, easiest quickest least-code way of firing off an AGI
with some variable, and then returning to the dialplan?

I've seen people talking about fastAGI, stasis, python ASYNC... all seems
rather complicated. I feel I must be missing something embarrassingly
obvious - isn't there just the equivalent of the unix shell's "&"?!

Thanks.

(I'm using pyst2 if it matters)
-- 
_
-- 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

Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Antony Stone
On Friday 30 June 2017 at 19:11:08, Jonathan H wrote:

> I use a python AGI which pulls some info from a web service, which should
> take half a second.
> 
> Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but
> the dialplan should continue immediately as it's not dependent on the
> AGI/web service data.
> 
> What's the simplest, easiest quickest least-code way of firing off an AGI
> with some variable, and then returning to the dialplan?

Write your python code to fork() the lookup to a child process, and let the 
parent return immediately to Asterisk.

> I've seen people talking about fastAGI, stasis, python ASYNC... all seems
> rather complicated. I feel I must be missing something embarrassingly
> obvious - isn't there just the equivalent of the unix shell's "&"?!

Not inside Asterisk, no.


Antony.

-- 
The words "e pluribus unum" on the Great Seal of the United States are from a 
poem by Virgil entitled "Moretum", which is about cheese and garlic salad 
dressing.

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- 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


Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread J Montoya or A J Stiles
On Friday 30 Jun 2017, Jonathan H wrote:
> What's the simplest, easiest quickest least-code way of firing off an AGI
> with some variable, and then returning to the dialplan?

You have to use the "fork" command.  This starts a copy of the process with 
all the same internal state including variables and filehandles.  The command 
returns a non-zero value  (which is the PID of the child process; you may need 
this, if you plan to outlive your children and have to clear their entries 
from the process table)  to the parent process, and zero to the child process.  
So in the parent, you exit and return to the dialplan; and in the child, you 
close STDIN, STDOUT and STDERR  (so no process is waiting for you to produce 
output),  then just take your time doing what you have to.  The parent is 
already long dead by this time, so exiting goes nowhere.
 
> I've seen people talking about fastAGI, stasis, python ASYNC... all seems
> rather complicated. I feel I must be missing something embarrassingly
> obvious - isn't there just the equivalent of the unix shell's "&"?!

Yes, fork!  That is what the "&" operator is using "under the bonnet".

-- 
JKLM

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- 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


Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Jonathan H
OK, I give up and come grovelling, "Fork" was suggested at 18:23, it's
now 22:20 and I have been through 4 different methods, all block with
a 2 second delay before returning to dialplan.

Here are just some of the examples I have tried, as as per the
suggestions, I am closing all possible outputs in the forked process.

https://docs.python.org/3.5/library/multiprocessing.html
https://docs.python.org/3.5/library/multiprocessing.html?highlight=multiprocessing#multiprocessing.Process.join
https://stackoverflow.com/questions/19747371/python-exit-commands-why-so-many-and-when-should-each-be-used
https://stackoverflow.com/questions/27624850/launch-a-completely-independent-process
https://stackoverflow.com/questions/13612434/why-are-the-methods-sys-exit-exit-raise-systemexit-not-working
https://stackoverflow.com/questions/43280947/os-fork-share-local-variable-with-parent
https://stackoverflow.com/questions/24052217/may-someone-explain-the-following-os-fork-example-to-me
http://www.python-course.eu/forking.php
https://pymotw.com/3/subprocess/
http://code.activestate.com/recipes/186101-really-closing-stdin-stdout-stderr/

This is the most likely looking code based on the examples. I would
really, really appreciate a couple of pointers as to where I might be
going wrong:

#! /usr/bin/env python3
# -*- coding: utf-8 -*-

import multiprocessing as mp
import time
import sys
import os

#from asterisk.agi import AGI
#agi = AGI()

def f(name):
sys.stdin.close()
sys.stdout.close()
sys.stderr.close()
os.close(0)   # close C's stdin stream
os.close(1)   # close C's stdout stream
os.close(2)   # close C's stderr stream
time.sleep(2)
f = open('/var/lib/asterisk/agi-bin/tns/testing/testout.txt', 'w')
f.write(name)
f.close()


if __name__ == '__main__':
print('before process')
mp.set_start_method('fork')
q = mp.Queue()
p = mp.Process(target=f, args=('asterisk',))
p.start()
sys.exit()

On 30 June 2017 at 19:59, J Montoya or A J Stiles
 wrote:
> On Friday 30 Jun 2017, Jonathan H wrote:
>> What's the simplest, easiest quickest least-code way of firing off an AGI
>> with some variable, and then returning to the dialplan?
>
> You have to use the "fork" command.  This starts a copy of the process with
> all the same internal state including variables and filehandles.  The command
> returns a non-zero value  (which is the PID of the child process; you may need
> this, if you plan to outlive your children and have to clear their entries
> from the process table)  to the parent process, and zero to the child process.
> So in the parent, you exit and return to the dialplan; and in the child, you
> close STDIN, STDOUT and STDERR  (so no process is waiting for you to produce
> output),  then just take your time doing what you have to.  The parent is
> already long dead by this time, so exiting goes nowhere.
>
>> I've seen people talking about fastAGI, stasis, python ASYNC... all seems
>> rather complicated. I feel I must be missing something embarrassingly
>> obvious - isn't there just the equivalent of the unix shell's "&"?!
>
> Yes, fork!  That is what the "&" operator is using "under the bonnet".
>
> --
> JKLM
>
> Note:  Originating address only accepts e-mail from list!  If replying off-
> list, change address to asterisk1list at earthshod dot co dot uk .
>
> --
> _
> -- 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

-- 
_
-- 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


Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Marcelo Terres
Take a look on that:

https://issues.asterisk.org/jira/browse/ASTERISK-20532

Regards,
Marcelo H. Terres 
IM: mhter...@jabber.mundoopensource.com.br
https://www.mundoopensource.com.br
https://twitter.com/mhterres
https://linkedin.com/in/marceloterres


On 30 June 2017 at 22:23, Jonathan H  wrote:
> OK, I give up and come grovelling, "Fork" was suggested at 18:23, it's
> now 22:20 and I have been through 4 different methods, all block with
> a 2 second delay before returning to dialplan.
>
> Here are just some of the examples I have tried, as as per the
> suggestions, I am closing all possible outputs in the forked process.
>
> https://docs.python.org/3.5/library/multiprocessing.html
> https://docs.python.org/3.5/library/multiprocessing.html?highlight=multiprocessing#multiprocessing.Process.join
> https://stackoverflow.com/questions/19747371/python-exit-commands-why-so-many-and-when-should-each-be-used
> https://stackoverflow.com/questions/27624850/launch-a-completely-independent-process
> https://stackoverflow.com/questions/13612434/why-are-the-methods-sys-exit-exit-raise-systemexit-not-working
> https://stackoverflow.com/questions/43280947/os-fork-share-local-variable-with-parent
> https://stackoverflow.com/questions/24052217/may-someone-explain-the-following-os-fork-example-to-me
> http://www.python-course.eu/forking.php
> https://pymotw.com/3/subprocess/
> http://code.activestate.com/recipes/186101-really-closing-stdin-stdout-stderr/
>
> This is the most likely looking code based on the examples. I would
> really, really appreciate a couple of pointers as to where I might be
> going wrong:
>
> #! /usr/bin/env python3
> # -*- coding: utf-8 -*-
>
> import multiprocessing as mp
> import time
> import sys
> import os
>
> #from asterisk.agi import AGI
> #agi = AGI()
>
> def f(name):
> sys.stdin.close()
> sys.stdout.close()
> sys.stderr.close()
> os.close(0)   # close C's stdin stream
> os.close(1)   # close C's stdout stream
> os.close(2)   # close C's stderr stream
> time.sleep(2)
> f = open('/var/lib/asterisk/agi-bin/tns/testing/testout.txt', 'w')
> f.write(name)
> f.close()
>
>
> if __name__ == '__main__':
> print('before process')
> mp.set_start_method('fork')
> q = mp.Queue()
> p = mp.Process(target=f, args=('asterisk',))
> p.start()
> sys.exit()
>
> On 30 June 2017 at 19:59, J Montoya or A J Stiles
>  wrote:
>> On Friday 30 Jun 2017, Jonathan H wrote:
>>> What's the simplest, easiest quickest least-code way of firing off an AGI
>>> with some variable, and then returning to the dialplan?
>>
>> You have to use the "fork" command.  This starts a copy of the process with
>> all the same internal state including variables and filehandles.  The command
>> returns a non-zero value  (which is the PID of the child process; you may 
>> need
>> this, if you plan to outlive your children and have to clear their entries
>> from the process table)  to the parent process, and zero to the child 
>> process.
>> So in the parent, you exit and return to the dialplan; and in the child, you
>> close STDIN, STDOUT and STDERR  (so no process is waiting for you to produce
>> output),  then just take your time doing what you have to.  The parent is
>> already long dead by this time, so exiting goes nowhere.
>>
>>> I've seen people talking about fastAGI, stasis, python ASYNC... all seems
>>> rather complicated. I feel I must be missing something embarrassingly
>>> obvious - isn't there just the equivalent of the unix shell's "&"?!
>>
>> Yes, fork!  That is what the "&" operator is using "under the bonnet".
>>
>> --
>> JKLM
>>
>> Note:  Originating address only accepts e-mail from list!  If replying off-
>> list, change address to asterisk1list at earthshod dot co dot uk .
>>
>> --
>> _
>> -- 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
>
> --
> _
> -- 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

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community 

[asterisk-users] asterisk.conf ignored?

2017-06-30 Thread 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

 

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

Re: [asterisk-users] asterisk.conf ignored?

2017-06-30 Thread Marcelo Terres
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 
IM: mhter...@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  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

-- 
_
-- 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