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!

CC6 Scripting problem

Status
Not open for further replies.

tank121

Technical User
Sep 12, 2005
1
GB
Hello,

I need some help with the script below that has been provided to us. When queue postion 4 is reached the customer gets a choice, it prompts the custmer to press 1 if they want to be transferred to switchboard. The transfer section works fine when one is keyed.
If the customer presses nothing it should execute the loop and keep them in the queue, but it isn't the call is still going to switch.

Please help


IF cv_posn_in_q_orig >= 4 THEN

OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT vs_bol_3rd_hold
COLLECT 1 DIGITS INTO cv_choice INTER DIGIT TIMER 3
END VOICE SESSION

IF cv_choice = 1 THEN
ROUTE CALL 0
ELSE
EXECUTE loop
END IF
END IF


SECTION loop

WAIT 2

ASSIGN POSITION IN QUEUE cv_skillset TO cv_posn_in_q_new

IF cv_posn_in_q_new < cv_posn_in_q_orig THEN
ASSIGN cv_posn_in_q_new TO cv_posn_in_q_orig
END IF

OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT vs_bol_2nd_posn_hold
PLAY PROMPT NUMBER cv_posn_in_q_orig
END VOICE SESSION

IF NOT QUEUED THEN
IF NOT OUT OF SERVICE cv_skillset THEN
QUEUE TO SKILLSET cv_skillset WITH PRIORITY 3
WAIT 2
ELSE
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT vs_bol_unexpected
END VOICE SESSION
DISCONNECT
END IF
END IF

 
You might want to look in Variables at cv_choice to see what the default is.
If it is set for 1 then that would be your problem. Needs to be something other than 1.
 
I would initialize the Call Variable (using the ASSIGN command) to something obviously out of range before the first OPEN VOICE SESSION. That way, if the caller does not enter a digit, the check for the digit "1" will fail and the call will proceed to the LOOP Section. Like this:

ASSIGN 99 TO cv_choice
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top