I need scripting help:
I need to move call from one skillset queue to another one after 28 secs. Here is what I have come up with:
ScriptB_scr:
IF OUT OF SERVICE THEN
ROUTE CALL 2222
ELSE
Queue to Skillset2_sk
WAIT 2
GIVE MUSIC
END IF
Section WAITLOOP
WAIT 10
IF age of call >= 28 then
REMOVE FROM QUEUE Skillset2_sk
EXECUTE SCRIPT ScriptA_scr
END IF
EXECUTE WAITLOOP
__________________________
ScriptA_scr:
IF OUT OF SERVICE THEN
ROUTE CALL 3333
ELSE
Queue to Skillset2_sk
WAIT 2
GIVE MUSIC
Queue to Skillset1_sk
WAIT 2
GIVE MUSIC
Section WAITLOOP
WAIT 10
IF age of call >= 28 then
REMOVE FROM QUEUE Skillset1_sk
EXECUTE SCRIPT ScriptB_scr
END IF
EXECUTE WAITLOOP
_______________________
This is the correct logic/commands, is there a better way to write this. It seems to work but not sure if its right.
Please advise...
I need to move call from one skillset queue to another one after 28 secs. Here is what I have come up with:
ScriptB_scr:
IF OUT OF SERVICE THEN
ROUTE CALL 2222
ELSE
Queue to Skillset2_sk
WAIT 2
GIVE MUSIC
END IF
Section WAITLOOP
WAIT 10
IF age of call >= 28 then
REMOVE FROM QUEUE Skillset2_sk
EXECUTE SCRIPT ScriptA_scr
END IF
EXECUTE WAITLOOP
__________________________
ScriptA_scr:
IF OUT OF SERVICE THEN
ROUTE CALL 3333
ELSE
Queue to Skillset2_sk
WAIT 2
GIVE MUSIC
Queue to Skillset1_sk
WAIT 2
GIVE MUSIC
Section WAITLOOP
WAIT 10
IF age of call >= 28 then
REMOVE FROM QUEUE Skillset1_sk
EXECUTE SCRIPT ScriptB_scr
END IF
EXECUTE WAITLOOP
_______________________
This is the correct logic/commands, is there a better way to write this. It seems to work but not sure if its right.
Please advise...