I'm trying to modify a script so that if a call has been queued to a specific skillset for longer than 120 seconds, it dequeues and executes a new script. I'm able to do it when dequeueing based upon number of calls in queue, but am unable to get it to work with time in queue. Here is what I have, but this dequeues all calls in the script. I need to only do certain skillsets. Does this look right?
IF CDN = 5287 THEN QUEUE TO SKILLSET Telco1 WITH PRIORITY 1
WAIT 2
END IF
IF CDN = 5292 THEN QUEUE TO SKILLSET Telco2 WITH PRIORITY 1
WAIT 2
END IF
IF CDN = 5298 THEN QUEUE TO SKILLSET Helpdesk WITH PRIORITY 1
WAIT 2
END IF
IF (AGE OF CALL > 120) THEN REMOVE FROM SKILLSET Telco2
EXECUTE SCRIPT Outage1
END IF
IF CDN = 5287 THEN QUEUE TO SKILLSET Telco1 WITH PRIORITY 1
WAIT 2
END IF
IF CDN = 5292 THEN QUEUE TO SKILLSET Telco2 WITH PRIORITY 1
WAIT 2
END IF
IF CDN = 5298 THEN QUEUE TO SKILLSET Helpdesk WITH PRIORITY 1
WAIT 2
END IF
IF (AGE OF CALL > 120) THEN REMOVE FROM SKILLSET Telco2
EXECUTE SCRIPT Outage1
END IF