[Home]

Summary:ASTERISK-04574: [patch] Manager action "QueueStatus" does not send "StatusCompleteEvent" when done
Reporter:Stefan Reuter (srt)Labels:
Date Opened:2005-07-13 06:11:17Date Closed:2008-01-15 15:41:17.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) QueueStatusComplete.patch
Description:There is no way to now when Asterisk has finished sending the queue status as no final event indicating so is sent.
I followed the way of StatusAction in manager.c (StatusAction -> StatusEvent (0 or more) -> StatusCompleteEvent) and modified app_queue.c to send a QueueStatusComplete event when finished.

This patch will help anybody using the Manager API to observer queues as there is currently no reliable method to receive the queue state.

P.S. I already filed a disclaimer.
Comments:By: Kevin P. Fleming (kpfleming) 2005-07-13 12:37:12

Committed to CVS HEAD with minor mods (simplified locking). Thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:41:17.000-0600

Repository: asterisk
Revision: 6121

U   trunk/apps/app_queue.c

------------------------------------------------------------------------
r6121 | kpfleming | 2008-01-15 15:41:17 -0600 (Tue, 15 Jan 2008) | 2 lines

add QueueStatusComplete event (bug ASTERISK-4574 with minor mods)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6121