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: yesResponse: 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: 8Response: Success
EventList: start
Message: Queue status will followEvent: 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: 0Event: 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: 0Event: 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: 0Event: 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: 0Event: 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: 0Event: QueueStatusComplete
EventList: Complete
ListItems: 5