[asterisk-bugs] [JIRA] (ASTERISK-19103) When using realtime queues, function QUEUE_MEMBER_LIST() will return an error if no other app/function has loaded the queues first. This problem does not exist if queues.conf is used.

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Oct 13 12:59:34 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-19103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-19103:
-------------------------------------

    Target Release Version/s: 14.7.0

> When using realtime queues, function QUEUE_MEMBER_LIST() will return an error if no other app/function has loaded the queues first. This problem does not exist if queues.conf is used.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-19103
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19103
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 1.8.8.0
>            Reporter: Jim Van Meggelen
>            Severity: Minor
>      Target Release: 14.7.0, 13.18.0
>
>
> I noticed that if I run the function QUEUE_MEMBER_LIST right after Asterisk starts, I get the following error:
> [2011-12-22 17:10:32] WARNING[9448]: app_queue.c:6355
> queue_function_queuememberlist: queue 98 was not found
> If I then execute the following from the CLI:
> queue show 98
> and then place a call again, there is no error.
> I would expect that the QUEUE_MEMBER_LIST should be reading the database to check for any valid queues before returing 'not found'     
> I found a workaround:
> If I run the QUEUE_EXISTS function on the queue first, the dialplan is then
> able to run the QUEUE_MEMBER_LIST function successfully.
> I would still argue that this is buggy behaviour.
> In lieu of fixing the bug, it might be enough to add the following text to the documentation of this function:
> "If you are using realtime to store queues, run the QUEUE_EXISTS() function before this one, to ensure all the queues are loaded into memory. Otherwise, this function may fail to return a result."



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



More information about the asterisk-bugs mailing list