"C. Chad Wallace" <cwall...@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 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users