Summary: | ASTERISK-27597: AMI Queuestatus not working (with realtime queue) | ||||
Reporter: | cagdas kopuz (cagdas) | Labels: | |||
Date Opened: | 2018-01-18 07:34:48.000-0600 | Date Closed: | 2022-02-11 12:21:15.000-0600 | ||
Priority: | Major | Regression? | |||
Status: | Closed/Complete | Components: | Core/ManagerInterface | ||
Versions: | 13.19.0 | Frequency of Occurrence | |||
Related Issues: |
| ||||
Environment: | Attachments: | ||||
Description: | When I make AMI request "queuestatus", ami returns empty stats. If i run "queue show 999" command on CLI. Afther that, Queuestatus response filled and correct.
1- AMI queuestatus -> response empty 2- "queue show 999" on asterisk CLI 3- AMI queuestatus -> response correct | ||||
Comments: | By: Asterisk Team (asteriskteam) 2018-01-18 07:34:49.783-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Kevin Harwell (kharwell) 2018-01-18 12:02:52.726-0600 I was able to replicate: 1) Setup queues in realtime 2) Execute the [queuestatus AMI action|https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_QueueStatus] specifying the configured queue name 3) Observed the following in the ami output: {noformat} Response: Success EventList: start Message: Queue status will follow Event: QueueStatusComplete EventList: Complete ListItems: 0 {noformat} 4) Executed the "queue show <queue name>" on the Asterisk CLI *or* executed the [queues AMI action|https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_Queues] 5) Repeated the queuestatus ami action again and the queue data was output: {noformat} Response: Success EventList: start Message: Queue status will follow Event: QueueParams Queue: 100 Max: 0 Strategy: fewestcalls Calls: 0 Holdtime: 0 TalkTime: 0 Completed: 0 Abandoned: 0 ServiceLevel: 0 ServicelevelPerf: 0.0 Weight: 0 Event: QueueMember Queue: 100 Name: 101 Location: Local/101@default StateInterface: hint:101@default Membership: static Penalty: 0 CallsTaken: 0 LastCall: 0 InCall: 0 Status: 5 Paused: 0 PausedReason: Event: QueueMember Queue: 100 Name: 161 Location: Local/161@default StateInterface: hint:161@default Membership: static Penalty: 0 CallsTaken: 0 LastCall: 0 InCall: 0 Status: 5 Paused: 0 PausedReason: Event: QueueStatusComplete EventList: Complete ListItems: 3 {noformat} By: Kevin Harwell (kharwell) 2018-01-18 12:05:41.202-0600 [~cagdas], note above I was able to also execute the [queues AMI action|https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_Queues] in order to then get output from the queuestatus action. You could use this instead as a workaround. By: cagdas kopuz (cagdas) 2018-01-19 02:19:54.325-0600 Thanks Kevin, I add my code queues AMI action before queuestats, it works. But I have about 14000 queues, It affecting response time very badly. By: Friendly Automation (friendly-automation) 2022-02-11 12:21:16.562-0600 Change 17918 merged by Friendly Automation: app_queue: load queues and members from Realtime when needed [https://gerrit.asterisk.org/c/asterisk/+/17918|https://gerrit.asterisk.org/c/asterisk/+/17918] By: Friendly Automation (friendly-automation) 2022-02-11 12:43:22.277-0600 Change 17987 merged by Friendly Automation: app_queue: load queues and members from Realtime when needed [https://gerrit.asterisk.org/c/asterisk/+/17987|https://gerrit.asterisk.org/c/asterisk/+/17987] By: Friendly Automation (friendly-automation) 2022-02-11 12:44:35.690-0600 Change 17985 merged by Friendly Automation: app_queue: load queues and members from Realtime when needed [https://gerrit.asterisk.org/c/asterisk/+/17985|https://gerrit.asterisk.org/c/asterisk/+/17985] By: Friendly Automation (friendly-automation) 2022-02-11 12:57:03.773-0600 Change 17986 merged by Joshua Colp: app_queue: load queues and members from Realtime when needed [https://gerrit.asterisk.org/c/asterisk/+/17986|https://gerrit.asterisk.org/c/asterisk/+/17986] |