<div>Dear Tarek,</div><div><br></div><div>IN_USE is other then the BUSY status, i want to skip the BUSY agent but not IN_USE</div><div><br></div>--<br clear="all"><div>Regards,</div><div>Shariq Khan</div><div>0333-3501125</div>
<br>
<br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 4:07 PM, Tarek Sawah <span dir="ltr"><<a href="mailto:tareksawah@hotmail.com">tareksawah@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Gareth<br>
<br>
Usualy the queue has the ability to know if the agent is "INUSE" and skip<br>
them.. you can simply use ringinuse=no to the queues.conf under the queue<br>
itself or the general section and that's it .. no need for the whole<br>
dialplan.. as you are using SIP members.<br>
Salam<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Gareth Blades<br>
Sent: Wednesday, September 15, 2010 1:46 PM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
Subject: Re: [asterisk-users] Skip Busy Agents/Channels from Queue<br>
<br>
Yes something like this. Note the Execif syntax I have used is for<br>
asterisk 1.6<br>
<br>
exten => s,n,Set(AGENTSBUSY=yes)<br>
exten => s,n,ExecIf($[${DEVICE_STATE(SIP/1009} =<br>
NOT_INUSE]?Set(AGENTSBUSY=no))<br>
exten => s,n,ExecIf($[${DEVICE_STATE(SIP/1010} =<br>
NOT_INUSE]?Set(AGENTSBUSY=no))<br>
exten => s,n,ExecIf($[$AGENTSBUSY = no]?QUEUE(xxx))<br>
<br>
<br>
Shariq Khan wrote:<br>
> You mean, I need to check the DEVICE_STATUS of both (sip) users before<br>
> sending the caller into queue, otherwise skip the caller from going into<br>
> Queue by using ExecIf.<br>
><br>
><br>
> --<br>
> Regards,<br>
> Shariq Khan<br>
> 0333-3501125<br>
><br>
><br>
><br>
> On Wed, Sep 15, 2010 at 3:16 PM, Gareth Blades<br>
> <<a href="mailto:list-asterisk@skycomuk.com">list-asterisk@skycomuk.com</a> <mailto:<a href="mailto:list-asterisk@skycomuk.com">list-asterisk@skycomuk.com</a>>> wrote:<br>
><br>
> Shariq Khan wrote:<br>
> > Is there a way skip / ignore the member whose status is busy in<br>
> the Queue.<br>
> ><br>
> > I have two channel member in queue and i have set the peer limit<br>
> 2 for<br>
> > these members.<br>
> ><br>
> > I want to skip those member who are currently on the call<br>
> (answered to<br>
> > calls) and now their status is busy, if Queue see the busy status<br>
> caller<br>
> > will not enter in the Queue and go to the next priority.<br>
> ><br>
> > [test-queue]<br>
> > strategy = rrmemory<br>
> > memberdelay=0<br>
> > timeoutrestart = no<br>
> > joinempty = strict<br>
> > leavewhenempty = yes<br>
> > timeout = 50<br>
> > member => SIP/1009<br>
> > member => SIP/1010<br>
> ><br>
> > sip.conf<br>
> ><br>
> > [1009]<br>
> > username=1009<br>
> > type=friend<br>
> > secret=XXXX<br>
> > mailbox=779000<br>
> > context=default<br>
> > host=dynamic<br>
> > call-limit=2<br>
> ><br>
> > [1010]<br>
> > username=1010<br>
> > type=friend<br>
> > secret=XXXX<br>
> > mailbox=779000<br>
> > context=default<br>
> > host=dynamic<br>
> > call-limit=2<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Regards,<br>
> > Shariq Khan<br>
> > 0333-3501125<br>
> ><br>
><br>
> You could use ${DEVICE_STATE(SIP/1009}. Set a variable to indicate all<br>
> extensions are busy and then a couple of ExecIf calls to reset the<br>
> variable if either of the extensions state is set to NOT_INUSE. You<br>
then<br>
> have a variab you can use to decide where to jump to in the dialplan<br>
> depending on whether both phones are busy or not.<br>
><br>
><br>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>