AMI QueueReload doesn't reload a realtime queue

I am facing what appears to be an Asterisk bug, but it seems so big that I suppose it will be my fault.

I have a realtime queue, saved in a MySQL database. I have changed the members of the queue in the database and now I want to force asterisk to read again the members, so I run the AMI command:

Action: QueueReload
Queue: 8
Members: yes
Rules: yes
Parameters: yes

Response: Success
Message: Queue reloaded successfully

Unfortunately, the members will be not loaded. If I run the following AMI command, I still get the old list of members. If I run “queue show 8” in the Asterisk CLI, the member list is updated. How can I reload the members list from AMI?

Action: QueueStatus
Queue: 8

Response: Success
EventList: start
Message: Queue status will follow

Event: QueueParams
Queue: 8
Max: 0
Strategy: ringall
Calls: 0
Holdtime: 0
TalkTime: 0
Completed: 0
Abandoned: 0
ServiceLevel: 30
ServicelevelPerf: 0.0
ServicelevelPerf2: 0.0
Weight: 0

Event: QueueMember
Queue: 8
Name: 103
Location: Local/AG-000-NFR-1699@fromotherpbx/n
StateInterface: Custom:103-DEVEL
Membership: static
Penalty: 0
CallsTaken: 0
LastCall: 0
LastPause: 0
InCall: 0
Status: 5
Paused: 0
PausedReason:
Wrapuptime: 0

Event: QueueMember
Queue: 8
Name: 104
Location: Local/AG-000-NFR-1701@fromotherpbx/n
StateInterface: Custom:104-DEVEL
Membership: static
Penalty: 0
CallsTaken: 0
LastCall: 0
LastPause: 0
InCall: 0
Status: 1
Paused: 0
PausedReason:
Wrapuptime: 0

Event: QueueMember
Queue: 8
Name: 107
Location: Local/AG-000-NFR-2027@fromotherpbx/n
StateInterface: Custom:107-DEVEL
Membership: static
Penalty: 0
CallsTaken: 0
LastCall: 0
LastPause: 0
InCall: 0
Status: 1
Paused: 0
PausedReason:
Wrapuptime: 0

Event: QueueMember
Queue: 8
Name: 500
Location: Local/AG-000-NFR-28931@fromotherpbx/n
StateInterface: Custom:500-DEVEL
Membership: static
Penalty: 0
CallsTaken: 0
LastCall: 0
LastPause: 0
InCall: 0
Status: 1
Paused: 0
PausedReason:
Wrapuptime: 0

Event: QueueStatusComplete
EventList: Complete
ListItems: 5

Looking at the code it seems as though QueueReload strictly covers configuration file, not realtime. I don’t really have any other info since I’ve never used it.

I would add as well that realtime support in app_queue is not commonly used. It would be what I would consider off-nominal code, and likely has its own quirks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.