I would like to include a counter or age of call in a script therefore the call will be routed to another destination if not answered
Can't for the life in me find why the script below is not working can someone please help me what I'm doing wrong? When I use this to test the call flows as normal but after 3 bounces it does not divert. why? (loop_count is an INT variable with the value of 3)
Section Hold_Loop
ASSIGN loop_count - 1 TO loop_count /* deducts 1 from 3 */
IF loop_count = 0 THEN
WHERE DNIS EQUALS
VALUE 8912 : ROUTE CALL Response_line
END WHERE
End IF
IF NOT QUEUED THEN
IF NOT OUT OF SERVICE cv_skillset THEN
QUEUE TO SKILLSET cv_skillset
WAIT 2
ELSE
IF NOT OUT OF SERVICE Default_Skillset THEN
QUEUE TO SKILLSET Default_Skillset
WAIT 2
ELSE
EXECUTE SCRIPT UNFORSEEN
END IF
END IF
END IF
IF NOT LOGGED OUT AGENT gv_unforseen THEN
EXECUTE SCRIPT UNFORSEEN
END IF
EXECUTE Hold_Loop
Can't for the life in me find why the script below is not working can someone please help me what I'm doing wrong? When I use this to test the call flows as normal but after 3 bounces it does not divert. why? (loop_count is an INT variable with the value of 3)
Section Hold_Loop
ASSIGN loop_count - 1 TO loop_count /* deducts 1 from 3 */
IF loop_count = 0 THEN
WHERE DNIS EQUALS
VALUE 8912 : ROUTE CALL Response_line
END WHERE
End IF
IF NOT QUEUED THEN
IF NOT OUT OF SERVICE cv_skillset THEN
QUEUE TO SKILLSET cv_skillset
WAIT 2
ELSE
IF NOT OUT OF SERVICE Default_Skillset THEN
QUEUE TO SKILLSET Default_Skillset
WAIT 2
ELSE
EXECUTE SCRIPT UNFORSEEN
END IF
END IF
END IF
IF NOT LOGGED OUT AGENT gv_unforseen THEN
EXECUTE SCRIPT UNFORSEEN
END IF
EXECUTE Hold_Loop