djsanction
Technical User
Come to a bit of a dead end with something, perhaps someone might have an alternative solution...
The aim here is to keep a set number of skillet test_1 agents available at all times for any new calls, only flowing calls to test_2 if the number of IDLE agents in test_1 is >= to the integer set in the variable
i.e. if variable is set to 0 then all new calls will flow to test_2, if set to 2 then the calls will sit queuing for the phantom skillset containing no agents until there are 2 or more IDLE agents in test_1
(There is a seperate script for the incoming calls to test_1)
GIVE MUSIC gv_source3
SECTION agt_chk_loop
IF IDLE AGENT COUNT test_1 >= gv_test_integer THEN REMOVE FROM SKILLSET phantom_skset_ltsb_agent_check EXECUTE Loop
ELSE
QUEUE TO SKILLSET phantom_skset_ltsb_agent_check
WAIT 4
EXECUTE agt_chk_loop
END IF
SECTION Loop
QUEUE TO SKILLSET test_2
WAIT 50
EXECUTE Loop
This works to an extent so if the variable is changed then any new calls follow the logic but any existing calls will not pickup the new value of the variable and will sit queuing for the phantom skillset.
There is obviously a fair amount of this script missing in terms of best practice etc but the core is here.
I think there must be an easier way to do this but my heads gone..
Cheers!
The aim here is to keep a set number of skillet test_1 agents available at all times for any new calls, only flowing calls to test_2 if the number of IDLE agents in test_1 is >= to the integer set in the variable
i.e. if variable is set to 0 then all new calls will flow to test_2, if set to 2 then the calls will sit queuing for the phantom skillset containing no agents until there are 2 or more IDLE agents in test_1
(There is a seperate script for the incoming calls to test_1)
GIVE MUSIC gv_source3
SECTION agt_chk_loop
IF IDLE AGENT COUNT test_1 >= gv_test_integer THEN REMOVE FROM SKILLSET phantom_skset_ltsb_agent_check EXECUTE Loop
ELSE
QUEUE TO SKILLSET phantom_skset_ltsb_agent_check
WAIT 4
EXECUTE agt_chk_loop
END IF
SECTION Loop
QUEUE TO SKILLSET test_2
WAIT 50
EXECUTE Loop
This works to an extent so if the variable is changed then any new calls follow the logic but any existing calls will not pickup the new value of the variable and will sit queuing for the phantom skillset.
There is obviously a fair amount of this script missing in terms of best practice etc but the core is here.
I think there must be an easier way to do this but my heads gone..
Cheers!