I need to terminate a call in a queue subroutine based on criteria. In other words, I want to not ring an agent’s phone in a ring all queue. This is something that must be considered on a call-by-call basis - I cannot add/remove the agent.
I put a Hangup() in the subroutine and it works fine but throws an error every time it is executed. Is there a more elegant way to accomplish this goal?