[asterisk-commits] mjordan: trunk r373241 - /trunk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 20 13:59:45 CDT 2012


Author: mjordan
Date: Thu Sep 20 13:59:39 2012
New Revision: 373241

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=373241
Log:
Blocked revisions 373240

........
app_queue: Support an 'agent available' hint

Sets INUSE when no free agents, NOT_INUSE when an agent is free.  

modifes handle_statechange() scan members loop to scan for a free agent
and updates the Queue:queuename_avial devstate.

Previously exited early if the member was found in the queue.

Now Exits later when both a member was found, and a free agent was found.


alecdavis (license 585)
Reported by: Alec Davis
Tested by: alecdavis

Review: https://reviewboard.asterisk.org/r/2121/

~~~~

Support all ways a member can be available for 'agent available' hints

Alec's patch in r373188 added the ability to subscribe to a hint for when
Queue members are available.  This patch modifies the check that determines
when a Queue member is available by refactoring the availability checks in
num_available_members into a shared function is_member_available.  This
should now handle the ringinuse option, as well as device state values
other than AST_DEVICE_NOT_INUSE.

Modified:
    trunk/   (props changed)

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-11-blocked (original)
+++ branch-11-blocked Thu Sep 20 13:59:39 2012
@@ -1,1 +1,1 @@
-/branches/11:
+/branches/11:373240




More information about the asterisk-commits mailing list