[asterisk-bugs] [JIRA] (ASTERISK-29471) Realtime queue_members does not respect linear strategy

Celso Annes (JIRA) noreply at issues.asterisk.org
Tue Jun 8 15:22:08 CDT 2021


Celso Annes created ASTERISK-29471:
--------------------------------------

             Summary: Realtime queue_members does not respect linear strategy
                 Key: ASTERISK-29471
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29471
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Applications/app_queue, Functions/func_odbc, Functions/func_realtime
    Affects Versions: 18.4.0, 16.18.0
         Environment: Debian 9, Asterisk 16, Asterisk 18
            Reporter: Celso Annes
            Severity: Major


I am using realtime queues and queue_members on postgres, I am using the strategy linear I can not make the queue respect the order I add the members on queue_members, I beleve that the uniqueid shoud set the order that the members are call.

{code:title=/etc/asterisk/extconfig.conf|borderStyle=solid}
[settings]
queue_log => odbc,anequim_cdr,queue_log
queues => odbc,anequim_config
queue_members => odbc,anequim_config
{code}

I am trying to ring on the following order:

# SIP/9000
# SIP/1000
# SIP/3000
# SIP/2000

{code}
anequim_config=# SELECT * FROM queue_members;
 queue_name | interface | uniqueid | membername | state_interface | penalty | paused
------------+-----------+----------+------------+-----------------+---------+--------
 teste      | SIP/9000  | 1        |            |                 |         |
 teste      | SIP/1000  | 2        |            |                 |         |
 teste      | SIP/3000  | 3        |            |                 |         |
 teste      | SIP/2000  | 4        |            |                 |         |
(4 registros)
{code}

Asterisk always load and ring queue based on the interface numeric order:

{code}
asterisk18*CLI> queue show teste
teste has 0 calls (max unlimited) in 'linear' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 0s
   Members:
      SIP/1000 (ringinuse enabled) (realtime) (Invalid) has taken no calls yet
      SIP/2000 (ringinuse enabled) (realtime) (Unavailable) has taken no calls yet
      SIP/3000 (ringinuse enabled) (realtime) (Invalid) has taken no calls yet
      SIP/9000 (ringinuse enabled) (realtime) (Invalid) has taken no calls yet
   No Callers
{code}

I already tried on *Asterisk 16* and now I have the same problem on *Asterisk 18*.
I am using *Debian 9* with *PostgreSQL 9.6.20* and * ODBC* .

I have create a post on the forum but nobody was capable to answer my question: https://community.asterisk.org/t/realtime-queue-members-does-not-respect-linear-strategy/88494



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list