Re: [asterisk-users] Call Queues : linear strategy WITH priority

2015-08-12 Thread A J Stiles
On Wednesday 12 Aug 2015, Jonas Kellens wrote:
 Hello
 
 I was wondering of it is possible to have Queue Agents with the same
 priority (penalty) but with a certain order ?
 
 So I have 20 Agents.
 
 Agent 1 till Agent 10 has penalty 1.
 
 Agent 11 till Agent 15 has penalty 2.
 (only contacted if 1 - 10 are busy)
 
 Agent 16 till Agent 20 has penalty 3.
 (only contacted if 1 - 10 and 11 - 15 are busy)
 
 Within the range of Agent 1 till Agent 10, can I have a certain order in
 these Agents in which they are rung ?? Like Agent 1 - Agent 5 - Agent
 2  3  4 - Agent 6 - Agent 7 - Agent 8  9  10.

What's wrong with giving agent 1 penalty 1; agent 5 penalty 2; agents 2, 3 and 
4 penalty 3; agent 6 penalty 4, agent 7 penalty 5, and so forth?

-- 
AJS

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Call Queues : linear strategy WITH priority

2015-08-12 Thread Jonas Kellens


On 12-08-15 16:31, A J Stiles wrote:

On Wednesday 12 Aug 2015, Jonas Kellens wrote:

Hello

I was wondering of it is possible to have Queue Agents with the same
priority (penalty) but with a certain order ?

So I have 20 Agents.

Agent 1 till Agent 10 has penalty 1.

Agent 11 till Agent 15 has penalty 2.
(only contacted if 1 - 10 are busy)

Agent 16 till Agent 20 has penalty 3.
(only contacted if 1 - 10 and 11 - 15 are busy)

Within the range of Agent 1 till Agent 10, can I have a certain order in
these Agents in which they are rung ?? Like Agent 1 - Agent 5 - Agent
2  3  4 - Agent 6 - Agent 7 - Agent 8  9  10.

What's wrong with giving agent 1 penalty 1; agent 5 penalty 2; agents 2, 3 and
4 penalty 3; agent 6 penalty 4, agent 7 penalty 5, and so forth?



By giving a different penalty to Agents 1 to 10, there is no order. With 
penalty, the Agent keeps on being contacted untill it takes the call. 
Many forget that this is how penalties work !



So in stead of going from Agent 1 to Agent 5 to Agent 2,3,4 it is very 
possible that Agent 5 keeps on ringing when Agent 1 is 'busy calling', 
in stead of going further to Agents 2,3,5.


In your case, Agent 5 will be called over and over again untill it takes 
the call.



Not exactly what I'm looking for.



Kind regards,

Jonas.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] strange warnings no samples for alawtolin

2015-08-12 Thread jg



[Aug 11 21:57:14] WARNING[1992] translate.c: no samples for alawtolin
[Aug 11 21:57:14] WARNING[2005] translate.c: no samples for alawtolin
[Aug 11 21:57:15] WARNING[2027] translate.c: no samples for alawtolin
Hi to all,

I have an elastix box running asterisk 1.8.20 without problem. It's
about four days I've started seen in log a warning message saying
translate.c: no samples for alawtolin, and now the frequency of this
message is about 6 times a second.

There's no other clue, everything is running smoothly and googling for
it doesn't help.

Here's an excerpt:

[Aug 11 21:57:15] WARNING[2029] translate.c: no samples for alawtolin
[Aug 11 21:57:15] WARNING[2038] translate.c: no samples for alawtolin
[Aug 11 21:57:15] WARNING[2045] translate.c: no samples for alawtolin
[Aug 11 21:57:15] WARNING[2055] translate.c: no samples for alawtolin
[Aug 11 21:57:15] WARNING[2059] translate.c: no samples for alawtolin
[Aug 11 21:57:15] WARNING[2078] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2093] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2095] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2110] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2120] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2125] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2132] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2139] translate.c: no samples for alawtolin
[Aug 11 21:57:19] WARNING[2141] translate.c: no samples for alawtolin
[Aug 11 21:57:20] WARNING[2152] translate.c: no samples for alawtolin
[Aug 11 21:57:20] WARNING[2174] translate.c: no samples for alawtolin
[Aug 11 21:57:20] WARNING[2177] translate.c: no samples for alawtolin
[Aug 11 21:57:20] WARNING[2208] translate.c: no samples for alawtolin
[Aug 11 21:57:20] WARNING[2210] translate.c: no samples for alawtolin
[Aug 11 21:57:20] WARNING[] translate.c: no samples for alawtolin

Does anyone have an idea of what is means and how I can get rid of it?

Thanks
AFAIK this is related to the settings of silence suppression. I haven't seen this for a while, 
but you might want to check the Silence Suppression, or Voice Activity Detection (VAD) 
settings of your SIP endpoints.


jg

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] webrtc no audio

2015-08-12 Thread Marek Červenka

Dne 11.8.2015 v 12:18 Joshua Colp napsal(a):

Vinicius Fontes wrote:

I'm having the same issue! The difference in my case is Asterisk server
has a public IPv4 and the browser is behind a single NAT.

I'm forwarding my configuration below (which I posted previously on
asterisk-users).

How can we debug ICE negotiation?


You have to do a packet capture, look at the exchange in Wireshark, 
and see how the negotiation flows. It requires a basic understanding 
of ICE.




it looks like we are facing this problem 
https://issues.asterisk.org/jira/browse/ASTERISK-24146 too
if we use [] in sipml5 expert config To disable TURN/STUN to speedup 
ICE candidates gathering you can use an empty array. e.g. [].

it works better




--
---
Marek Cervenka
===


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 786 000 files limit Centos 7 - Asterisk

2015-08-12 Thread Stefan Viljoen
Hi Tony

Thanks again for replying.

Ok, I've set the SYSMAXFILES and MAXFILES in the script, hopefully it will
have an effect.

Kind regards,

Message: 12
Date: Tue, 11 Aug 2015 16:50:29 + (UTC)
From: t...@softins.co.uk (Tony Mountifield)
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] 786 000 files limit Centos 7 - Asterisk
keepcomplaining
Message-ID: assp.06651285b6.mqd94l$qb1$1...@softins.softins.co.uk

In article 002b01d0d414$36af31b0$a40d9510$@verishare.co.za,
Stefan Viljoen viljo...@verishare.co.za wrote:
  Anybody else ran into this?
 
 No, but I would ask myself why so many file descriptors are being used.
 It sounds like you have a file descriptor leak (not being closed when
 finished with).
 
 Hi Tony
 
 Thanks for replying.
 
 I suspected something like that, though repeatedly running
 
 lsof | wc -l
 
 Always stays quite low - 100 000 open files, which is still 8 times less
 than the system maximum as confirmed by running ulimit -n

From what you said below, the above is probably not relevant...

 
 SOMETHING NEW
 
 I have now ran
 
 /usr/bin/prlimit --pid `pidof asterisk` 
 
 and I have noticed that even though I have 800 000 files specified, the
 ACTUAL limit in place on Asterisk for numbers of files is only 1024?!

Yes, this is likely. Have a look in /usr/sbin/safe_asterisk, at the
commented-out settings for SYSMAXFILES and MAXFILES, and try setting those.

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org



--

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

End of asterisk-users Digest, Vol 133, Issue 13
***


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 786 000 files limit Centos 7 - Asterisk

2015-08-12 Thread Stefan Viljoen
Hi Markus

Thanks for the reply, I have set those files previously as well...

It seems the problem for me is on my Centos 7 box that the Asterisk binary
does not know that these are the limits, and imposes a 1024 open file
limit count for some reason.

It seems using prlimit to force the running binary to use a higher file
limit is working - but it has to be done manually each time the asterisk
process is started, the prlimit cronjob I set up to force the file limit
higher does not seem to work - you have to physically type in 

/usr/bin/prlimit --pid `pidof asterisk` --nofile=786000:786000

and running that from a script (As root) doesn't seem to work.

Anyway, thanks for the advice and taking the time to reply.

Kind regards,

Message: 11
Date: Tue, 11 Aug 2015 18:29:01 +0200
From: Markus Weiler markus_wei...@mailworks.org
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] 786 000 files limit Centos 7 - Asterisk
keep complaining
Message-ID: 55ca22cd.4060...@mailworks.org
Content-Type: text/plain; charset=windows-1252; format=flowed

Hi Stefan,

we ran into a similar problem using Debian.

There we are able to check the current limits using:

pidof asterisk  - 23351
cat /proc/23351/limits

Output:
Limit Soft Limit   Hard Limit Units
Max open files1024 1024 files


I think that in the end

/etc/security/limits.conf

* hardnofile  50
* softnofile  50
root  hardnofile  50
root  softnofile  50


did the trick. We also tried

vi /etc/sysctl.conf
fs.file-max = 50

not sure what the solution in the end was. But I remember rebooting was 
important.


Markus



Am 11.08.2015 um 11:00 schrieb Stefan Viljoen:
 Anybody else ran into this?
 No, but I would ask myself why so many file descriptors are being used.
 It sounds like you have a file descriptor leak (not being closed when
 finished with).
 Hi Tony

 Thanks for replying.

 I suspected something like that, though repeatedly running

 lsof | wc -l

 Always stays quite low - 100 000 open files, which is still 8 times less
 than the system maximum as confirmed by running ulimit -n

 I also note that this number will increase to about 125 000 but never go
 higher than that, then, as calls hang up, decreate again - during times
when
 the CLI is spammed with 100s of broken pipe errors due to insuffiecient
 file descriptors, this number never reaches beyond 125  000 out of the
 available 800 000 open files.

 You might also want to look at the output of lsof (or at least some of
it)
 to see what all these file descriptors are pointing to, and whether it is
 indeed Asterisk that is consuming them.
 If I grep by asterisk on the output of lsof the few thousand lines I have
 looked at all seem to indicate legitimate uses - there are at least two
 files for each conversation in progress (I assume for inward and outward
 RTP) plus one for each file being mixmonitored (which also seems logical)
 and also number-of-active-calls connections to res_timing_dahdi - which
all
 looks correct...

 If it is Asterisk, it's quite possible, even probable, that such a leak
 has been found and fixed, even in the 1.8 series. 1.8.11.0 is rather old
-
 the latest is 1.8.32.3, so it would be best to update to that version and
 see if the problem persists.
 Ok, I will have to consider that. The thing is the problem is not
consistent
 - I can (for example) run 60 calls, with no problems and no reported
 failures in opening files, then calls will -decrease- to about 40 and then
 later spike to 70, but around 50 calls I get the errors coming up
thousands
 of times in the CLI, then suddenly stop as the calls -increase- which
 doesn't make sense. But this kind of behaviour does seem consistent with a
 possible leak.

 SOMETHING NEW

 I have now ran

 /usr/bin/prlimit --pid `pidof asterisk`

 and I have noticed that even though I have 800 000 files specified, the
 ACTUAL limit in place on Asterisk for numbers of files is only 1024?!

 # prlimit --pid `pidof asterisk`
 RESOURCE   DESCRIPTION SOFT  HARD UNITS
 AS address space limitunlimited unlimited bytes
 CORE   max core file size unlimited unlimited blocks
 CPUCPU time   unlimited unlimited seconds
 DATA   max data size  unlimited unlimited bytes
 FSIZE  max file size  unlimited unlimited blocks
 LOCKS  max number of file locks held  unlimited unlimited
 MEMLOCKmax locked-in-memory address space 65536 65536 bytes
 MSGQUEUE   max bytes in POSIX mqueues819200819200 bytes
 NICE   max nice prio allowed to raise 0 0
 NOFILE max number of open files1024  4096
 NPROC  max number of processes30861 30861
 RSSmax resident set size   

Re: [asterisk-users] 786 000 files limit Centos 7 - Asterisk keep complaining

2015-08-12 Thread Stefan Viljoen
Hi Steve

Just running about 50 calls??

If I do

lsof | grep asterisk | wc -l

to narrow the realm of what is reported I still get just under 100 000
files:

lsof | grep asterisk | wc -l
95903

with 50 calls running.

So apparently this is excessive? I can only guess that there must be a MAJOR
bug in 1.8.11.0 given that you are running 347 calls on 2161 open files with
Ast 11...?

I'm on Centos 7.

As I mentioned previously, I have found that my problem with Asterisk
running out of files is that the Asterisk binary, on startup, does NOT
detect that the open file limit it 768 000, it always selects 1024 as the
soft limit for open files and 4096 as the hard limit for open files. I have
to manually (cron does not work - wonder why?) do

/usr/bin/prlimit --pid `pidof asterisk` --nofile=786000:786000

in order to get the running Asterisk instance to ACTUALLY have a soft and
hard number of files limit of 786 000.

The machine under discussion never runs more than about 60 calls, at which
point it consumes about 125 000 file descriptors / handles in Asterisk
(total open files in the kernel goes to about 195 000) - I thought this was
normal!

Note that besides some timer problems that pop up occassionally (unsure if
it is related) the box is totally stable and has spent days at 100 000+ open
file descriptors operating Asterisk 1.8.11.0 quite happily with no other
problems save that when the binary started up for that run it did not have a
sufficiently high file limit to actually work.

Thanks for the reply!

Kind regards,

 I suspected something like that, though repeatedly running

 lsof | wc -l

 Always stays quite low - 100 000 open files, which is still 8 times 
 less than the system maximum as confirmed by running ulimit -n

What the 'h' are you doing that takes x00,000 open files?

I'm running Asterisk 11.17.0 on CentOS 6.7 and my 'numbers' seem
insignificant by comparison.

sudo /usr/sbin/asterisk -r -x 'core show channels' | grep active
347 active channels
344 active calls

sudo lsof | wc -l
3945

sudo lsof | grep asterisk | wc -l
2161

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST



--

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

End of asterisk-users Digest, Vol 133, Issue 14
***


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 786 000 files limit Centos 7 - Asterisk

2015-08-12 Thread Joshua Colp
On Wed, Aug 12, 2015, at 04:43 AM, Stefan Viljoen wrote:
 Hi Markus
 
 Thanks for the reply, I have set those files previously as well...
 
 It seems the problem for me is on my Centos 7 box that the Asterisk
 binary
 does not know that these are the limits, and imposes a 1024 open file
 limit count for some reason.

snip

This is actually enforced by the system, not by Asterisk itself.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com  www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] One way audio - doesn't seem to be NAT issue

2015-08-12 Thread Joshua Colp
On Tue, Aug 11, 2015, at 04:10 PM, D'Arcy J.M. Cain wrote:
 I have been banging my head against the wall for weeks now on this
 one.  I have a switch running NetBSD and Asterisk 11.19.0 although I
 have had this problem on older versions as well.  I, and my users, can
 call out, we can receive calls, quality is excellent but I cannot talk
 with one user.  The different elements are as follows:

snip

I'd suggest getting a packet capture to see the RTP traffic to see the
actual path of things, not just thinking of what it should be. Media
doesn't just get lost. It's told to go somewhere ultimately and either
that is incorrect for some reason or something is blocking it.

Cheers,

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com  www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 786 000 files limit Centos 7 - Asterisk keep complaining

2015-08-12 Thread Joshua Colp
On Wed, Aug 12, 2015, at 04:06 AM, Stefan Viljoen wrote:
 Hi Steve
 
 Just running about 50 calls??
 
 If I do
 
 lsof | grep asterisk | wc -l
 
 to narrow the realm of what is reported I still get just under 100 000
 files:
 
 lsof | grep asterisk | wc -l
 95903
 
 with 50 calls running.
 
 So apparently this is excessive? I can only guess that there must be a
 MAJOR
 bug in 1.8.11.0 given that you are running 347 calls on 2161 open files
 with
 Ast 11...?

snip

I vaguely recall potential leaks that caused excess file descriptor
usage in older versions, but it's so old that it's hard to remember.
Just to provide some scope of how many changes there are between even
1.8.11.0 and 1.8:

✔ jcolp@electron:~/development/asterisk/public [11|⚑ 1] git diff
1.8.11.0..1.8 | wc -l
221688

That's 221,688 changed lines.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com  www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] How many Asterisk deployments?

2015-08-12 Thread Eric Klein
Hi AJ

To try for a more numeric response I did a quick check on ShodanHQ shows
the following PBX counts - I am sure it is not a complete count but kind of
gives a minimum as many do not show the server type where Shodan can find
it.

*PBX type (search term)  Count*

asterCC

139

Asterisk

73,819

AsteriskNOW

2,083

Astimax

46

Elastix

187

Freepbx

42

Other

32

Piaf

16

PIKA

899

TrixBox

95

VoiceOne

51

VoipNow

754

XVB

265

*Total Asterisk based PBXs *

*78,428*


Hope this helps,
Eric



 Date: Fri, 7 Aug 2015 15:59:47 +0100
 From: A J Stiles asterisk_l...@earthshod.co.uk
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 asterisk-users@lists.digium.com
 Subject: Re: [asterisk-users] How many Asterisk deployments?
 Message-ID: 201508071559.47104.asterisk_l...@earthshod.co.uk
 Content-Type: Text/Plain;  charset=utf-8

 On Friday 07 Aug 2015, Tech Support wrote:
  All;
 
  I know that there is no way to determine an exact number, or even a
  close number, but does anyone know a ballpark figure of how many Asterisk
  deployments are out there worldwide? How about the percentage of Asterisk
  PBX's compared to the total number of PBX's out there? Do our friends at
  Digium ever think about things like this?


 Well, I'd guess everyone who administers or co-administers an Asterisk PBX
 at
 work probably also has one at home for experimenting on  (whether or not
 it's
 patched through to their office system);  perhaps even with some antique
 telephones plugged into it via an FXS card .


 --
 AJS

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





-- 
Eric Klein
Sr. Consultant
GreenfieldTech
Mobile +972-54-666-0933
Email eric.kl...@greenfieldtech.net
Skype: EricLKlein
Web: http://www.greenfieldtech.net/

*Disclaimer:*
This e-mail is intended solely for the person to whom it is addressed and
may contain confidential or legally privileged information. Access to this
e-mail by anyone else is unauthorized. If an addressing or transmission
error has misdirected this e-mail, please notify the author by replying to
this e-mail and destroy this e-mail and any attachments.
E-mail may be susceptible to data corruption, interception, unauthorized
amendment, viruses and delays or the consequences thereof. If you are not
the intended recipient, be advised that you have received this email in
error and that any use, dissemination, forwarding, printing or copying of
this email is strictly prohibited.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] How to send Image over asterisk sip

2015-08-12 Thread Joshua Colp
On Sat, Aug 8, 2015, at 07:41 AM, Thyda ENG wrote:
 Dear Sir,

Kia ora,

 
 I current have done successfully with sip message over asterisk server ,
 and additionally now I want to send the image between sip using asterisk.
 Could any one share me how to config the asterisk for sending image from
 sip?

What do you mean by image?

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com  www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Busy level in Asterisk 11

2015-08-12 Thread Rafael dos Santos Saraiva
Hi

I need to set the number  of incoming calls to one, but the outgoing calls
should be unlimited. I think the busylevel parameter is for it(incoming
calls), but not works. My config is:

cat sip.conf
[general]

[template](!)
qualify=yes
cc_agent_policy=generic
cc_monitor_policy=generic
call-limit=2
busylevel=1
callcounter=yes
subscribecontext = hint
allowsubscribe=yes

[100](template)
type=friend
context=default
host=dynamic
secret=***

[101](template)
type=friend
context=default
host=dynamic
secret=***

[102](template)
type=friend
context=default
host=dynamic
secret=***


Thanks in advance


[image: Sua Foto] rafaels...@gmail.comRafael S. SaraivaPorto Alegre - RS
| Mobile:  (51) 8174-7956
http://br.linkedin.com/pub/rafael-saraiva/52/aab/230
https://plus.google.com/u/0/+RafaelSaraivaRS
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Busy level in Asterisk 11

2015-08-12 Thread Joshua Colp
On Wed, Aug 12, 2015, at 09:34 AM, Rafael dos Santos Saraiva wrote:
 Hi

Kia ora,

 I need to set the number  of incoming calls to one, but the outgoing
 calls
 should be unlimited. I think the busylevel parameter is for it(incoming
 calls), but not works. My config is:

snip

The busylevel configuration option controls device state:

; If you set the busylevel, we will indicate busy when we have a number
of calls that
; matches the busylevel treshold.

That is, if the number of calls is equal to the busylevel then the state
of the device is considered busy. It does not prevent calls from
occurring.

The call-limit configuration option is what prevents the calls, and it
has no separation between inbound and outbound. You would have to use
other constructs (such as group counting in the dialplan) to do it.

Cheers,

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com  www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Call Queues : linear strategy WITH priority

2015-08-12 Thread Jonas Kellens

Hello

I was wondering of it is possible to have Queue Agents with the same 
priority (penalty) but with a certain order ?


So I have 20 Agents.

Agent 1 till Agent 10 has penalty 1.

Agent 11 till Agent 15 has penalty 2.
(only contacted if 1 - 10 are busy)

Agent 16 till Agent 20 has penalty 3.
(only contacted if 1 - 10 and 11 - 15 are busy)


Within the range of Agent 1 till Agent 10, can I have a certain order in 
these Agents in which they are rung ?? Like Agent 1 - Agent 5 - Agent 
2  3  4 - Agent 6 - Agent 7 - Agent 8  9  10.




I guess I need 'linear' strategy, but will penalty option still work ?




Thank you for your feedback.

Kind regards.


Jonas.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users