bigindian65
Technical User
This script sends a % of calls offsite. Works well, except it seems after the 6th call goes offsite the next call after that chokes and goes to the default SK, then it works, repeats pattern. Cannot tell what is making it fall out of script after reset.
READVAR counter
IF counter = 6 THEN
ASSIGN 0 TO counter
ELSE
IF counter = 0 THEN
ASSIGN 1 TO counter
ELSE
IF counter = 1 THEN
ASSIGN 2 TO counter
ELSE
IF counter = 2 THEN
ASSIGN 3 TO counter
ELSE
IF counter = 3 THEN
ASSIGN 4 TO counter
ELSE
IF counter = 4 THEN
ASSIGN 5 TO counter
ELSE
IF counter = 5 THEN
ASSIGN 6 TO counter
END IF
END IF
END IF
END IF
END IF
END IF
END IF
SAVEVAR
IF counter = 1 THEN
EXECUTE SCRIPT MEDCO
ELSE
IF counter = 2 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 3 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 4 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 5 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 6 THEN
ROUTE CALL 91888xxxxxxx
END IF
END IF
END IF
END IF
END IF
END IF
Mato' Was'aka
READVAR counter
IF counter = 6 THEN
ASSIGN 0 TO counter
ELSE
IF counter = 0 THEN
ASSIGN 1 TO counter
ELSE
IF counter = 1 THEN
ASSIGN 2 TO counter
ELSE
IF counter = 2 THEN
ASSIGN 3 TO counter
ELSE
IF counter = 3 THEN
ASSIGN 4 TO counter
ELSE
IF counter = 4 THEN
ASSIGN 5 TO counter
ELSE
IF counter = 5 THEN
ASSIGN 6 TO counter
END IF
END IF
END IF
END IF
END IF
END IF
END IF
SAVEVAR
IF counter = 1 THEN
EXECUTE SCRIPT MEDCO
ELSE
IF counter = 2 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 3 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 4 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 5 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 6 THEN
ROUTE CALL 91888xxxxxxx
END IF
END IF
END IF
END IF
END IF
END IF
Mato' Was'aka