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 is not working

Status
Not open for further replies.
Dec 7, 2006
696
US
This is a new script i have on one of my queues. However for the Sunday part of it, it does not work. The message will not play at all.


/*PRODUCE*/



IF OUT OF SERVICE produce THEN
GIVE RAN closed_ran
DISCONNECT
END IF


IF (DATE=holidays) THEN
GIVE RAN closed_ran
DISCONNECT
END IF



IF ((DAY OF WEEK=bus_days) AND (TIME OF DAY=bus_hrs))

/*mon thru fri 7:30am to 5pm or sun 7am to 10am*/


THEN

QUEUE TO SKILLSET produce
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14

END IF

IF (DAY OF WEEK=produce_sat) THEN

QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14


END IF

IF ((DAY OF WEEK=produce_sun) AND
(TIME OF DAY=produce_sun_hrs)) AND AGE OF CALL > 18



THEN

QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14

END IF


SECTION WAIT_LOOP
WAIT 60
IF OUT OF SERVICE produce THEN
GIVE RAN closed_ran
DISCONNECT
END IF
GIVE RAN csr_ran2_gv
EXECUTE WAIT_LOOP
 
I would prefer to check on dates & times first and later on OUT OF SERVICE skillsets.
See bvelow for scripting (with Call Variable, type Skillset called: Init_Skill) I would use;

/*PRODUCE*/

IF (DATE=holidays) THEN
EXECUTE Closed_Messages
END IF

IF (DAY OF WEEK=produce_sat) OR ((DAY OF WEEK=produce_sun) AND (TIME OF DAY=produce_sun_hrs))
THEN
Assign cserv to Init_skill
EXECUTE Produce_handling
END IF
IF ((DAY OF WEEK=bus_days) AND (TIME OF DAY=bus_hrs)) /*mon thru fri 7:30am to 5pm or sun 7am to 10am*/
THEN
Assign produce to Init_skill
EXECUTE Produce_handling
END IF

SECTION Produce
IF OUT OF SERVICE Init_skill THEN
EXECUTE Closed_Messages
ELSE QUEUE TO SKILLSET Init_skill
END IF
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14

SECTION WAIT_LOOP
IF OUT OF SERVICE Init_skill THEN
EXECUTE Closed_Messages
ELSE QUEUE TO SKILLSET Init_skill
END IF
GIVE RAN csr_ran2_gv
EXECUTE WAIT_LOOP

SECTION Closed_Messages
GIVE RAN closed_ran
DISCONNECT
 
Take the AGE OF CALL command out. When the call gets to that part of the script, it will never be true, so your set of commands for that day will never execute.
 
Sandyml is right; that's why I also left the AGE OF CALL command out.
 
18 seconds is a short period for moving call to another skillset. In can be done in the following section;

SECTION Produce
IF AGE OF CALL > 18
Assign cserv to Init_skill
END IF
IF OUT OF SERVICE Init_skill THEN
EXECUTE Closed_Messages
ELSE QUEUE TO SKILLSET Init_skill
END IF
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top