[asterisk-commits] pcadach: branch pcadach/chan_h323-live r41813 - in /team/pcadach/chan_h323-li...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Sep 2 11:48:56 MST 2006


Author: pcadach
Date: Sat Sep  2 13:48:55 2006
New Revision: 41813

URL: http://svn.digium.com/view/asterisk?rev=41813&view=rev
Log:
Merged revisions 41810 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r41810 | bweschke | 2006-09-03 00:36:53 +0600 (Вск, 03 Сен 2006) | 3 lines

 With the somewhat recent addition (from one of the Astridevcon Europe sessions) of more detailed device states, we need to change strategy in app_queue in how we determine whether a queue member is "in use" or not. Basically, instead of specifically looking for that device state as we did previously, now we're going to observe any other device state aside from the two that we know for sure are "not in use" as "in use". This will cause some other states to fall through that we know will never be available (eg - "INVALID","UNAVAILABLE",etc) but there's other code already within to handle those conditions. (#7433 - tgrman reporting)


........

Modified:
    team/pcadach/chan_h323-live/   (props changed)
    team/pcadach/chan_h323-live/apps/app_queue.c

Propchange: team/pcadach/chan_h323-live/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Sat Sep  2 13:48:55 2006
@@ -1,1 +1,1 @@
-/trunk:1-41803
+/trunk:1-41812

Modified: team/pcadach/chan_h323-live/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/apps/app_queue.c?rev=41813&r1=41812&r2=41813&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/apps/app_queue.c (original)
+++ team/pcadach/chan_h323-live/apps/app_queue.c Sat Sep  2 13:48:55 2006
@@ -1561,7 +1561,7 @@
 		return 0;
 	}
 
-	if (!qe->parent->ringinuse && (tmp->member->status == AST_DEVICE_INUSE)) {
+	if (!qe->parent->ringinuse && (tmp->member->status != AST_DEVICE_NOT_INUSE) && (tmp->member->status != AST_DEVICE_UNKNOWN)) {
 		if (option_debug)
 			ast_log(LOG_DEBUG, "%s in use, can't receive call\n", tmp->interface);
 		if (qe->chan->cdr)



More information about the asterisk-commits mailing list