Problem with queue ringinuse

I have a queue with 2 members:

when a caller going to this queue even when Agent is in use currently I see attempt to this agent:
– Got SIP response 486 “Busy Here” back from x:62776
– SIP/103-00000226 is busy
– Nobody picked up in 0 ms
(on Agent which has call waiting enabled call is ringing)
is there any way to only attempt to free agents?

timeout = 15
retry = 5
timeoutpriority = app|conf
maxlen = 0
ringinuse = no
setinterfacevar = yes

Use AgentLogin. AgentCallBackLogin and both it and the preferred method, using Local channels, don’t propagate device state well. (Note you must have a call-limit for device state to be tracked at all, the fact that you appear to have received a remote 486, suggests that the device state, even on the underlying device, didn’t indicate busy.)

Thanks for your reply.
How about “AddQueueMember” , is it tracing device stat well?


AddQueueMember doesn’t do anything different from statically defining the member. If the device has a good state and is directly added, it should honour the state.

This may help:

Following reports from several Asterisk users that they’re having
problems with ringinuse=no not working when Local Channels are used to
provide hot-desking support within the Asterisk Queue() function, we
have developed a very easy fix for this that is now documented in our
popular Asterisk Queues Tutorial.

You don’t need to do anything fancy with STATEINTERFACE to get this to
work, and it also works with all Asterisk phone types, including SIP and
DAHDI channels.

For further details please see:

So, if you’re struggling with this, perhaps as a result of abandoning
the now-deprecated Agent Channel mechanism, you might want to take a look :smile: