I would like the Dnis Digits 54741 to go to our voice mail # 15701 after hours only. I am not sure where in the script it should go. I was thinking right after PLAY PROMPT VOICE SEGMENT aa_vs_cr_closed and before the disconnect. All other DNIS still will get the disconnect. Thanks in advance
IF DATE = cr_holiday_dom THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_holiday
ROUTE CALL 15701
END IF
IF DAY OF WEEK = MONDAY..THURSDAY AND TIME OF DAY = cr_time_closed_dom OR
DAY OF WEEK = FRIDAY AND TIME OF DAY = cr_time_closed_friday OR
DAY OF WEEK = SATURDAY AND TIME OF DAY = cr_time_closed_saturday OR
DAY OF WEEK = SUNDAY AND TIME OF DAY = cr_time_closed_sunday THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_closed
___________________________________________________________
IF DNIS = 54741 THEN
ROUTE CALL 15701)
___________________________________________________________
DISCONNECT
END IF
IF cr_meeting = TRUE THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_meeting
ROUTE CALL 15701
END IF
IF OUT OF SERVICE cr_domestic THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_out_of_service
END IF
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_calls_monitor
QUEUE TO SKILLSET cr_domestic
WAIT 2
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_agents_busy
WAIT 30
EXECUTE loop
SECTION loop
IF OUT OF SERVICE cr_domestic THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_out_of_service
ROUTE CALL 15701
END IF
IF NOT QUEUED THEN
QUEUE TO SKILLSET cr_domestic
END IF
WAIT 2
END IF
IF (AGE OF CALL > cr_long_wait) THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_long_wait
ROUTE CALL 15701
END IF
WAIT 30
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_continue_to_hold
WAIT 2
EXECUTE loop
IF DATE = cr_holiday_dom THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_holiday
ROUTE CALL 15701
END IF
IF DAY OF WEEK = MONDAY..THURSDAY AND TIME OF DAY = cr_time_closed_dom OR
DAY OF WEEK = FRIDAY AND TIME OF DAY = cr_time_closed_friday OR
DAY OF WEEK = SATURDAY AND TIME OF DAY = cr_time_closed_saturday OR
DAY OF WEEK = SUNDAY AND TIME OF DAY = cr_time_closed_sunday THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_closed
___________________________________________________________
IF DNIS = 54741 THEN
ROUTE CALL 15701)
___________________________________________________________
DISCONNECT
END IF
IF cr_meeting = TRUE THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_meeting
ROUTE CALL 15701
END IF
IF OUT OF SERVICE cr_domestic THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_out_of_service
END IF
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_calls_monitor
QUEUE TO SKILLSET cr_domestic
WAIT 2
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_agents_busy
WAIT 30
EXECUTE loop
SECTION loop
IF OUT OF SERVICE cr_domestic THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_out_of_service
ROUTE CALL 15701
END IF
IF NOT QUEUED THEN
QUEUE TO SKILLSET cr_domestic
END IF
WAIT 2
END IF
IF (AGE OF CALL > cr_long_wait) THEN
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_cr_long_wait
ROUTE CALL 15701
END IF
WAIT 30
GIVE CONTROLLED BROADCAST ANNOUNCEMENT
PLAY PROMPT VOICE SEGMENT aa_vs_continue_to_hold
WAIT 2
EXECUTE loop