[asterisk-users] Queues with unavailable members

Benny Amorsen benny+usenet at amorsen.dk
Thu Oct 15 04:05:51 CDT 2009


Elliot Otchet <elliot.otchet at callingcircles.com> writes:

> Have you tried autopause=yes in your queue configuration? You can then
> unpause the member by either the dialplan (e.g. having the cell phone
> user "log back in") or using an AMI based program to change the
> "paused" state.
>
> You can read more about the latter here:
> http://astbook.asteriskdocs.org/en/2nd_Edition/asterisk-book-html-chunk/asterisk-APP-F-30.html

That looks very interesting, thank you!

First of all though I need to avoid having them autopause just because
they don't answer their phone. It should only happen if the call to
their phone fails completely. I guess that could be done by not doing
autopause but instead pausing "manually" in the context that the Local
call passes through.

That would also solve my second problem, which is that I need to pause
it in all queues, not just one queue.

The last challenge is to somehow unpause them after a while. In
traditional programming that would be something like keeping a list of
timeout,queuemember ordered by timeout, and then when every call comes
in unpause and remove the ones where timeout expired... I'm not sure
that I can make an ordered list in the dialplan though. I may have to
resort to AGI, but I still need somewhere to actually store the list.
Tricky.


/Benny




More information about the asterisk-users mailing list