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!

Symposium script errors don't make sense

Status
Not open for further replies.

brewerdude

IS-IT--Management
Sep 8, 2003
472
US
Take a look at this snippet of one of my scripts:

Code:
GIVE CONTROLLED BROADCAST ANNOUNCEMENT PLAY PROMPT VOICE SEGMENT First_RAN_Broadcast_gv 

SECTION OnHoldLoop 

WAIT 15 

/********************************************************************/ 
/****  THIS SECTION HERE CHECKS TO SEE IF ALL AGENTS LOGGED OUT  ****/ 
/****  WHILE THE CALL WAS ON HOLD, AND REQUEUES THE CALL IF      ****/ 
/****  SOMEHOW IT DIDN'T GET QUEUED PROPERLY                     ****/ 
/********************************************************************/ 

IF NOT QUEUED OR NOT OUT OF SERVICE Skillset_cv THEN 
        QUEUE TO SKILLSET Skillset_cv 
        WAIT 2 
        ELSE 
                EXECUTE SCRIPT eCustomer_Script 
END IF 

IF AGE OF CALL >= 130 THEN 
        EXECUTE SCRIPT eCustomer_Script 
END IF 

WAIT 30 

GIVE CONTROLLED BROADCAST ANNOUNCEMENT PLAY PROMPT VOICE SEGMENT Second_RAN_Broadcast_gv 

EXECUTE OnHoldLoop


After validating, Symposium tells me the following:

Line 93: Suggestion: QUEUE TO SKILLSET - You should use the OUT OF SERVICE <skillset> intrinsic to test the skillset queue before the QUEUE TO SKILLSET command. This can be done by inserting IF NOT OUT OF SERVICE <skillset> THEN before the QUEUE TO SKILLSET command.

Line 107: Critical error: EXECUTE - Loops must have an exit so that they will not loop indefinitely if the call is not queued. This can be done by inserting a test of the QUEUED intrinsic (except when using NACD) or AGE OF CALL intrinsic (with NACD), and jump out of the loop if the call is not queued.



Why am I getting these, haven't I satisfied the those requirements in my script??

 
OK, I fixed my NOT QUEUED portion, and Symposium is OK with that:

Code:
IF NOT QUEUED THEN
	IF NOT OUT OF SERVICE Skillset_cv THEN
		QUEUE TO SKILLSET Skillset_cv
		WAIT 2
			ELSE
				EXECUTE SCRIPT eCustomer_Script
	END IF
END IF
[\code]


But I'm still getting the loop error.  Any idea why?
 
I belive (don't quote me on this) but it's because it jumps to another script as the exit for a non queued call. Does it still validate?
I've had these on ours (4.0) and it still vaidates ok and never had an issue.

Only the truly stupid believe they know everything.
Stu.. 2004
 
Thinking about it, it may be because, if it jumps to another script, then Symposium thinks there may be an issue if there is a problem with the script it's going to.

I guess to could jump to another part of the script and then exit. Never tried but something like:


Code:
IF NOT QUEUED THEN
    IF NOT OUT OF SERVICE Skillset_cv THEN
        QUEUE TO SKILLSET Skillset_cv
        WAIT 2
            ELSE
                EXECUTE exit_script
    END IF
END IF

SECTION exit_script
EXECUTE SCRIPT eCustomer_Script

Give it a go...


Only the truly stupid believe they know everything.
Stu.. 2004
 
The reason you're getting the CRITICAL error is because SCCS detected a possible infinte loop.

If you meant to have this loop, then ignore the message...the script will validate and work just fine.
 
Make a script variable called something like gv_LongWait and put it to, say 3600 seconds.

then just before the Execute OnHoldLoop line, put

IF AGE OF CALL = gv_LongWait
THEN DISCONNECT
ELSE EXECUTE OnHoldLoop

Means that the call cannot be looping indefinitely.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top