]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Change default value of 'ignorebusy' on Queue members so that behavior is more like 1.8
authorJonathan Rose <jrose@digium.com>
Wed, 11 Apr 2012 16:07:50 +0000 (16:07 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 11 Apr 2012 16:07:50 +0000 (16:07 +0000)
Prior to this patch, in order to restore that behavior, a function would have
to be used on the QueueMember to make the ringinuse option do anything, which
is pretty unreasonable.

(closes issue ASTERISK-19536)
reported by: Philippe Lindheimer
Review: https://reviewboard.asterisk.org/r/1860/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@361907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CHANGES
apps/app_queue.c
configs/queues.conf.sample

diff --git a/CHANGES b/CHANGES
index b4df62d0a97b79120eff0f12a387498fd43bdc44..e66e02035f083e15b5c2e9728f96468abd0a220f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -24,6 +24,14 @@ Background DNS Update Manager
    should help reduce the 'doing dnsmgr_lookup for' message from spamming the
    CLI.
 
+Queue changes
+-------------
+ * Default value for 'ignorebusy' flag on queue members is now 1 instead of 0
+   to get the default behavior in line with 1.8. The only way to change this
+   flag in 10 is to use the QUEUE_MEMBER function to change ignorebusy unless
+   using realtime queue members (in which case it can be manipualted on the
+   database normally).
+
 ------------------------------------------------------------------------------
 --- Functionality changes since Asterisk 10.1.0 ------------------------------
 ------------------------------------------------------------------------------
index 03ca5b35b91f3b40af4d9d9003af83e682e36fcd..e07be140cba213e951f0e48f274c75ba4e1ee1e8 100644 (file)
@@ -1621,6 +1621,7 @@ static struct member *create_queue_member(const char *interface, const char *mem
        struct member *cur;
        
        if ((cur = ao2_alloc(sizeof(*cur), NULL))) {
+               cur->ignorebusy = 1;
                cur->penalty = penalty;
                cur->paused = paused;
                ast_copy_string(cur->interface, interface, sizeof(cur->interface));
index 4142faaf72ab78b340b2a83eb7dd2f2e2115be50..78a5c3d3eb2b5e99730e0c8f09759ffa1d8630d0 100644 (file)
@@ -68,7 +68,7 @@ monitor-type = MixMonitor
 ; app_queue allows calls to members in a "Unknown" state to be treated as available
 ; setting check_state_unknown = yes will cause app_queue to query the channel driver
 ; to better determine the state this only applies to queues with ringinuse or ignorebusy
-; set appropriately. 
+; set appropriately.
 ;
 ;check_state_unknown = no
 ;
@@ -481,11 +481,10 @@ monitor-type = MixMonitor
 ;
 ; If you want the queue to avoid sending calls to members whose devices are
 ; known to be 'in use' (via the channel driver supporting that device state)
-; uncomment this option. (Note: only the SIP channel driver currently is able
-; to report 'in use'.)
-;
-; A member can have the ignorebusy flag set or unset when ringinuse is set to
-; allow a per member control.
+; uncomment this option. This can be controlled on a per member basis by
+; setting 'ignorebusy' in the QUEUE_MEMBER function. (Note: only the SIP
+; channel driver currently is able to report 'in use'.) (Note: if this option
+; is set to 'no' it will override the per-member 'ignorebusy' setting.
 ;
 ; ringinuse = no
 ;