[asterisk-users] Queues with unavailable members

Elliot Otchet elliot.otchet at callingcircles.com
Thu Oct 15 08:19:42 CDT 2009


That shouldn't be too hard to accomplish.  If you've got the addons (and mysql) installed you could store them in a MySQL table (timestamp, device) and have a cron job set to run at X frequency that un-pauses the queue members via AMI.  Don't want to go to MySQL?  Use system() to 'touch' files named after devices.  Then have your cron script go through the files by creation date.  Either way gets you there.

-Elliot

-----Original Message-----
From: Benny Amorsen [mailto:benny+usenet at amorsen.dk]
Sent: Thursday, October 15, 2009 5:06 AM
To: Elliot Otchet
Cc: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: Queues with unavailable members

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


This message is intended only for the use of the individual (s) or entity to which it is addressed and may contain information that is privileged, confidential, and/or proprietary to Calling Circles LLC and its affiliates. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, forwarding or copying of this communication is prohibited without the express permission of the sender. If you have received this communication in error, please notify the sender immediately and delete the original message.



More information about the asterisk-users mailing list