From: Richard Mudgett Date: Thu, 7 Jun 2012 20:37:05 +0000 (+0000) Subject: Fix inverted test in app_queue for ringinuse. X-Git-Tag: 11.0.0-beta1~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ecd6c9ab43c73d46c0a265aacd06405ba7ec05f;p=thirdparty%2Fasterisk.git Fix inverted test in app_queue for ringinuse. Regression from -r367080 ringinuse commit. (issue ASTERISK-19536) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368674 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 931733cfc9..1740740bb8 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3300,7 +3300,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies return 0; } - if (tmp->member->ringinuse) { + if (!tmp->member->ringinuse) { if (check_state_unknown && (tmp->member->status == AST_DEVICE_UNKNOWN)) { newstate = ast_device_state(tmp->member->interface); if (newstate != tmp->member->status) { @@ -5857,7 +5857,7 @@ static int set_member_value_help_members(struct call_queue *q, const char *inter /*! * \internal * \brief Sets members penalty, if queuename=NULL we set member penalty in all the queues. - * \param[in] queuename If specified, only act on a mem`ber if it belongs to this queue + * \param[in] queuename If specified, only act on a member if it belongs to this queue * \param[in] interface Interface of queue member(s) having priority set. * \param[in] property Which queue property is being set * \param[in] penalty Value penalty is being changed to for each member