[asterisk-users] Queues with unavailable members

C. Chad Wallace cwallace at lodgingcompany.com
Fri Oct 16 12:15:20 CDT 2009


At 11:23 AM on 16 Oct 2009, Benny Amorsen wrote:

> I was going in the same direction at the end of my first mail, but I
> hadn't written any code. There is a problem though: The Queue
> application will keep sending calls to the Local channel, which have
> to be rejected, over and over.
> 
> Would it perhaps work to simply Wait(30) if the call is rejected by
> the phone? If the Queue assumes that the phone is busy for those 30
> seconds, I have accomplished my goal. It's worth a shot.

It would only be trying one agent at a time for each waiting queue
member...  I don't know how expensive it is to open and close a Local
channel and do a DB lookup, but I wouldn't expect it to be a real
problem.  You are at least avoiding multiple calls out to the cellular
network.  

Also, if there is another agent available, the caller would be connected
immediately, and it wouldn't have to make any more attempts.  With the
Wait() solution, that caller would be waiting for 30 seconds regardless
of whether there's anyone else available.  

Of course, I don't know your business case, so you'll have to decide
which of the two problems is worse.

-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091016/c8999f61/attachment.pgp 


More information about the asterisk-users mailing list