<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
On 11/20/2011 02:49 PM, Matt Hamilton wrote:
<blockquote cite="mid:BAY170-W976C5CC88FFFBF28449058B3CA0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
<br>
<br>
2. if the devices/members in the queue are not reachable, I
would like to forward him to a phone B.<br>
</div>
</blockquote>
<br>
<blockquote cite="mid:BAY170-W976C5CC88FFFBF28449058B3CA0@phx.gbl"
type="cite">
<div dir="ltr">I'm looking for a fast/practical way of
accomplishing the second one. In other words, before sending a
call to a queue, I would like to see if the members/devices in
that queue are available/reachable. <br>
<br>
<br>
I define the members statically in queue.conf and
QUEUE_MEMBER_COUNT gives the count of those - doesn't care if
they are available/reachable or not (even if phone is unhooked,
still counted). <br>
<br>
I should be able to loop through each member and use
${DEVICE_STATE(<sip phone>)}. for every incoming call,
isn't this overkill? Any other way?<br>
</div>
</blockquote>
Have you tried, instead of pre-processing the caller before calling
Queue(), checking the ${QUEUESTATUS} variable. On a Timeout, it
will be TIMEOUT, but there are also JOINEMPTY, LEAVEEMPTY,
JOINEUNAVAIL and LEAVEUNAVAIL options as well (core show application
Queue). If you set your queues.conf to consider the queue to be
empty when the members are unavailable, invalid or unknown, the
Queue() app should return immediately to the next dialplan step with
the QUEUSTATUS of JOINEMPTY.<br>
<br>
Dale<br>
<pre class="moz-signature" cols="72">
--
"The truth speaks for itself. I'm just the messenger."
Lyta Alexander - Babylon 5
</pre>
</body>
</html>