well, i guess the way to do what I want is to get the real time reporting statistics while in queue for each triggering contact since the script runs as an instance for each incomming call.
when the triggering contact is in top of the queue and the queue has more than a defined number of calls waiting, then it should be dequeued and sent to another team...