<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>I would like to perform 2 checks on a queue:<br><br>1. if the caller stays in the queue for a certain time, I would like to forward him to phone A.<br><br>2. if the devices/members in the queue are not reachable, I would like to forward him to a phone B.<br><br>The first one is straight-forward via the timeout.<br><br><br>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><br>Thanks a lot,<br>Matt<br><br><br>                                            </div></body>
</html>