PhonemanSam
Technical User
Script Change I would like to Check Age of Call 3 time after that don't give the caller the option of leaving a message just place the in the wait queue forever. If there a better way of doing anything in the script below, just let me know. Thanks
/* Support Center ACD_DN DFDN:44095 */
IF OUT OF SERVICE SC_VIP_sk, Support_Center_sk THEN
EXECUTE Closed
END IF
/* ************************ VIP Call Handling ******************** */
IF (CLID = SC_VIP_gv) THEN /*This section will send calls that are VIP to be handled first*/
IF NOT OUT OF SERVICE SC_VIP_sk THEN
QUEUE TO SKILLSET SC_VIP_sk WITH PRIORITY 1
WAIT 2 /* Allow time in case an agent is available */
GIVE RAN SC_RAN1_gv
WAIT 2
GIVE MUSIC MUSIK_gv
WAIT 2
EXECUTE WaitLoop_VIP
END IF
END IF
/* ************************ Normal Call Handling ***************** */
IF NOT OUT OF SERVICE Support_Center_sk THEN
QUEUE TO SKILLSET Support_Center_sk WITH PRIORITY 6
WAIT 2 /* Allow time in case an agent is available */
GIVE RAN SC_RAN1_gv
WAIT 2
GIVE MUSIC MUSIK_gv
WAIT 60
EXECUTE WaitLoop
END IF
/* ************************ Normal Call WaitLoop **************************** */
SECTION WaitLoop
IF NOT QUEUED THEN
IF OUT OF SERVICE Support_Center_sk THEN
EXECUTE Closed
ELSE
QUEUE TO SKILLSET Support_Center_sk WITH PRIORITY 6
WAIT 2 /* Allow time in case an agent is available */
END IF
END IF
GIVE RAN SC_RAN2_gv
WAIT 2
EXECUTE Check_Age
/* ************************ Check Age of Call ******************** */
SECTION Check_Age
IF AGE OF CALL > 120 THEN
ASSIGN 0 to Support_Ctr_Choice_cv
OPEN VOICE SESSION Access_Queue
PLAY PROMPT VOICE SEGMENT Support_Ctr_Menu_gv
Collect 1 digits into Support_Ctr_Choice_cv INTER DIGIT TIMER 5
END VOICE SESSION
END IF
WHERE Support_Ctr_Choice_cv EQUALS
VALUE 1: Route call 50500
DEFAULT: EXECUTE Waitloop
END WHERE
DISCONNECT
/* ************************ Special Handling for VIP's ************ */
SECTION Special_Handling
IF OUT OF SERVICE SC_VIP_sk THEN
EXECUTE Closed
ELSE
QUEUE TO SKILLSET SC_VIP_sk WITH PRIORITY 1
WAIT 2 /* Allow time in case an agent is available */
GIVE MUSIC MUSIK_gv
EXECUTE WaitLoop_VIP
END IF
/* ************************ Waitloop for VIP's ******************** */
SECTION Waitloop_VIP
IF NOT QUEUED THEN
IF OUT OF SERVICE SC_VIP_sk THEN
EXECUTE Closed
ELSE
QUEUE TO SKILLSET SC_VIP_sk WITH PRIORITY 1
WAIT 2 /* Allow time in case an agent is available */
END IF
END IF
WAIT 60
GIVE RAN SC_RAN2_gv
EXECUTE Check_Age_VIP
/* ************************ Check Age of Call for VIP ************** */
SECTION Check_Age_VIP
IF AGE OF CALL > 120 THEN
ASSIGN 0 to Support_Ctr_Choice_cv
OPEN VOICE SESSION Access_Queue
PLAY PROMPT VOICE SEGMENT Support_Ctr_Menu_gv
Collect 1 digits into Support_Ctr_Choice_cv
END VOICE SESSION
END IF
WHERE Support_Ctr_Choice_cv EQUALS
VALUE 1: Route call 50500
DEFAULT: EXECUTE Waitloop_VIP
END WHERE
DISCONNECT
/* ************************ Night/Closed ************************* */
SECTION Closed
ROUTE CALL 57490
/* Support Center ACD_DN DFDN:44095 */
IF OUT OF SERVICE SC_VIP_sk, Support_Center_sk THEN
EXECUTE Closed
END IF
/* ************************ VIP Call Handling ******************** */
IF (CLID = SC_VIP_gv) THEN /*This section will send calls that are VIP to be handled first*/
IF NOT OUT OF SERVICE SC_VIP_sk THEN
QUEUE TO SKILLSET SC_VIP_sk WITH PRIORITY 1
WAIT 2 /* Allow time in case an agent is available */
GIVE RAN SC_RAN1_gv
WAIT 2
GIVE MUSIC MUSIK_gv
WAIT 2
EXECUTE WaitLoop_VIP
END IF
END IF
/* ************************ Normal Call Handling ***************** */
IF NOT OUT OF SERVICE Support_Center_sk THEN
QUEUE TO SKILLSET Support_Center_sk WITH PRIORITY 6
WAIT 2 /* Allow time in case an agent is available */
GIVE RAN SC_RAN1_gv
WAIT 2
GIVE MUSIC MUSIK_gv
WAIT 60
EXECUTE WaitLoop
END IF
/* ************************ Normal Call WaitLoop **************************** */
SECTION WaitLoop
IF NOT QUEUED THEN
IF OUT OF SERVICE Support_Center_sk THEN
EXECUTE Closed
ELSE
QUEUE TO SKILLSET Support_Center_sk WITH PRIORITY 6
WAIT 2 /* Allow time in case an agent is available */
END IF
END IF
GIVE RAN SC_RAN2_gv
WAIT 2
EXECUTE Check_Age
/* ************************ Check Age of Call ******************** */
SECTION Check_Age
IF AGE OF CALL > 120 THEN
ASSIGN 0 to Support_Ctr_Choice_cv
OPEN VOICE SESSION Access_Queue
PLAY PROMPT VOICE SEGMENT Support_Ctr_Menu_gv
Collect 1 digits into Support_Ctr_Choice_cv INTER DIGIT TIMER 5
END VOICE SESSION
END IF
WHERE Support_Ctr_Choice_cv EQUALS
VALUE 1: Route call 50500
DEFAULT: EXECUTE Waitloop
END WHERE
DISCONNECT
/* ************************ Special Handling for VIP's ************ */
SECTION Special_Handling
IF OUT OF SERVICE SC_VIP_sk THEN
EXECUTE Closed
ELSE
QUEUE TO SKILLSET SC_VIP_sk WITH PRIORITY 1
WAIT 2 /* Allow time in case an agent is available */
GIVE MUSIC MUSIK_gv
EXECUTE WaitLoop_VIP
END IF
/* ************************ Waitloop for VIP's ******************** */
SECTION Waitloop_VIP
IF NOT QUEUED THEN
IF OUT OF SERVICE SC_VIP_sk THEN
EXECUTE Closed
ELSE
QUEUE TO SKILLSET SC_VIP_sk WITH PRIORITY 1
WAIT 2 /* Allow time in case an agent is available */
END IF
END IF
WAIT 60
GIVE RAN SC_RAN2_gv
EXECUTE Check_Age_VIP
/* ************************ Check Age of Call for VIP ************** */
SECTION Check_Age_VIP
IF AGE OF CALL > 120 THEN
ASSIGN 0 to Support_Ctr_Choice_cv
OPEN VOICE SESSION Access_Queue
PLAY PROMPT VOICE SEGMENT Support_Ctr_Menu_gv
Collect 1 digits into Support_Ctr_Choice_cv
END VOICE SESSION
END IF
WHERE Support_Ctr_Choice_cv EQUALS
VALUE 1: Route call 50500
DEFAULT: EXECUTE Waitloop_VIP
END WHERE
DISCONNECT
/* ************************ Night/Closed ************************* */
SECTION Closed
ROUTE CALL 57490