Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Change I would like to Check Age of Call 3 time

Status
Not open for further replies.

PhonemanSam

Technical User
Dec 4, 2003
70
US
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
 
You may be best of putting a loop counter in one of your holding loops which counts the number of times it is ran, then jumps out of it.

Create a CALL VARIABLE called loop_count with a default value of 3.

In a holding loop put something like this:

ASSIGN loop_count -1 TO loop-count /* deducts 1 from 3 */

IF loop_count = 0 THEN

EXECUTE xxxxx

ELSE

EXECUTE yyyyy

END IF

EXECUTE holding loop

This will jump out of the holding loop when the call variable reaches 0 i.e. the call has been round the loop 3 times.
 
Thanks "captaingadget" for putting me on the right path. I got it working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top