In my script I have a step that checks a database field to see if the call centre has been put into an emergency state. If it has all new calls will be played a message and then hung up.
I need to be able to apply this method for all callers within the queue at the time the emergency state is activated. I don't want to keep checking the database after every step so I am testing things like if a call has been waiting for +10 mins go and check the database or if there are multiple ROI. Does any one have a way of doing this?
Or is there a way I can transfer all calls currently in the queue to another number or to voicemail or just disconnect them?