I have a queue-based script where that is not ending at the terminate step. More specifically, if an agent becomes available and the call is dequeued, because it has made the connection, it advances to the terminate step. However, it does not advance to the exit step and the step counter increments until the 1000 mark (whereby the script then fails). This script responds the same way if I have a caller that hangs up while in queue. what I cannot figure out is why this is happening. The End step is directly after the exit step, but it will not advance to that.
This invariably hangs the session which will eventually make the application unusable (after all sessions are hung).
I am running CRS 4.0(4)SR01_Build029.
You have at least two errors based on your description:
1) There should be a Goto END step in the Connected branch of your Select Resource step. This should go directly to the End step (not a Terminate step).
2) You are missing an On Exception Goto (ContactInactiveException) END step immediately before your Accept step. This should also go directly to the END step.