I need to have a special message played only when the calls in queue is greater than 20. I am thinking about something like this. Only problem is the EXECUTE continue to hold kicks in after the statement no matter if the calls or 20 or not. I only want that to execute if the vs_longhold is played. Any suggestions?
/* This script is for Number- DNIS 1099 CDN 3027, QUEUE 2909*/
SECTION CONDITION_CHECKS
IF TIME OF DAY<>bushrs_7to9 THEN
ROUTE CALL voice_mail
END IF
SECTION open_treatment
IF OUT OF SERVICE Skillset1 THEN
ROUTE CALL voice_mail
ELSE
QUEUE TO SKILLSET Skillset1 WITH PRIORITY 3
END IF
IF QUEUED CALL COUNT Skillset1 > 20 THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_longhold
EXECUTE continue_to_hold
END IF
WAIT 2
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_gen_hold1
WAIT 2
GIVE MUSIC newroads_music
WAIT 60
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_gen_hold1
EXECUTE continue_to_hold
SECTION continue_to_hold
IF OUT OF SERVICE Skillset1 THEN
ROUTE CALL voice_mail
END IF
WAIT 60
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_gen_hold1
EXECUTE continue_to_hold
/* This script is for Number- DNIS 1099 CDN 3027, QUEUE 2909*/
SECTION CONDITION_CHECKS
IF TIME OF DAY<>bushrs_7to9 THEN
ROUTE CALL voice_mail
END IF
SECTION open_treatment
IF OUT OF SERVICE Skillset1 THEN
ROUTE CALL voice_mail
ELSE
QUEUE TO SKILLSET Skillset1 WITH PRIORITY 3
END IF
IF QUEUED CALL COUNT Skillset1 > 20 THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_longhold
EXECUTE continue_to_hold
END IF
WAIT 2
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_gen_hold1
WAIT 2
GIVE MUSIC newroads_music
WAIT 60
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_gen_hold1
EXECUTE continue_to_hold
SECTION continue_to_hold
IF OUT OF SERVICE Skillset1 THEN
ROUTE CALL voice_mail
END IF
WAIT 60
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 3659
PLAY PROMPT VOICE SEGMENT vs_gen_hold1
EXECUTE continue_to_hold