[asterisk-users] Queues with unavailable members

Benny Amorsen benny+usenet at amorsen.dk
Fri Oct 16 04:23:21 CDT 2009


"C. Chad Wallace" <cwallace at lodgingcompany.com> writes:

> OK, I decided to write it up in AEL.  It's incomplete and untested, but
> it probably gets the idea across a little better.
>
> context agentcalls {
>   _2XX => {
>     Set(AGENT=${EXTEN});  // Assuming agent ID is extension.
>     
>     if (${EPOCH}>${DB(AgentPaused/${AGENT})}) {
>       // Let the call through to the cell phone
>       Dial(...);
>
>       if (<cell call was rejected>) {
>         // Flag agent as paused for the next 30 seconds.
>         Set(DB(AgentPaused/${AGENT})=$[${EPOCH}+30]);
>       };
>     }
>     else {
>     	// Agent still paused.
>     };
>   };
> };

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.


/Benny




More information about the asterisk-users mailing list