[asterisk-commits] bweschke: trunk r41879 - /trunk/apps/app_queue.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Sep 3 10:12:31 MST 2006


Author: bweschke
Date: Sun Sep  3 12:12:30 2006
New Revision: 41879

URL: http://svn.digium.com/view/asterisk?rev=41879&view=rev
Log:
 Don't keep trying the same member in certain strategies when members of the queue are unavailable (#7278 - diLLec reported and patched)


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=41879&r1=41878&r2=41879&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Sun Sep  3 12:12:30 2006
@@ -1600,6 +1600,11 @@
 			ast_cdr_busy(qe->chan->cdr);
 		tmp->stillgoing = 0;
 		update_dial_status(qe->parent, tmp->member, status);
+
+		ast_mutex_lock(&qe->parent->lock);
+		qe->parent->rrpos++;
+		ast_mutex_unlock(&qe->parent->lock);
+
 		(*busies)++;
 		return 0;
 	} else if (status != tmp->oldstatus)



More information about the asterisk-commits mailing list