dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 105059 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r105059 | mmichelson | 2008-02-28 14:11:57 -0600 (Thu, 28 Feb 2008) | 6 lines

When using autofill, members who are in use should be counted towards the 
number of available members to call if ringinuse is set to yes.

Thanks to jmls who brought this issue up on IRC


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105061 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mmichelson 2008-02-28 20:14:38 +00:00
parent 6e02d54e7b
commit d4718af66e
1 changed files with 4 additions and 0 deletions

View File

@ -2687,6 +2687,10 @@ static int is_our_turn(struct queue_ent *qe)
struct ao2_iterator mem_iter = ao2_iterator_init(qe->parent->members, 0);
while ((cur = ao2_iterator_next(&mem_iter))) {
switch (cur->status) {
case AST_DEVICE_INUSE:
if (!qe->parent->ringinuse)
break;
/* else fall through */
case AST_DEVICE_NOT_INUSE:
case AST_DEVICE_UNKNOWN:
if (!cur->paused)