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!

READVAR AND SAVEVAR

Status
Not open for further replies.

glynnmsg

Technical User
Jul 26, 2004
249
US
Has anyone every used the READVAR and SAVEVAR commands ?

If so do you have a sample script that I can look at. I have one ready to use but with no testing enviroment I do not want to activate it. I have set up a variable called it counter_CV and have the readvar, and savevar in the script.

Thanks
 
Here is a little script I use to call a different person each time the script is executed using the READVAR nad SAVEVAR.
+++++++++++++++++++++++++++++++++++++++++

The variable (b_CTI_On_Call_wcv) is an integer who's value should be
between 0 and 3.
0 = Lou
1 = Brandy
2 = Marcy
3 = Tracy
The script logic will send the call to the person who is "named" in the variable. The "Wild Call Variable" will be changed after each occurance of a call.
*/

READVAR b_CTI_On_Call_wcv

ASSIGN b_CTI_On_Call_wcv + 1 TO b_CTI_On_Call_wcv

IF
b_CTI_On_Call_wcv = 4
THEN
ASSIGN 0 TO b_CTI_On_Call_wcv
END IF

SAVEVAR



READVAR b_CTI_On_Call_wcv
SAVEVAR

WHERE b_CTI_On_Call_wcv EQUALS
VALUE 0: ROUTE CALL 912225551212
VALUE 1: ROUTE CALL 912225551213
VALUE 2: ROUTE CALL 912225551214
VALUE 3: ROUTE CALL 912225551215
DEFAULT: ROUTE CALL 1000
END WHERE
 
The following example illustrates simple load sharing across a network by routing alternate calls to a network skillset. The first call queues locally. The
next call queues to the network, and the third call is queued locally, and so on:

READVAR wv_alternate_cv
IF wv_alternate_cv = 1 THEN
ASSIGN 0 TO wv_alternate_cv
ELSE
IF wv_alternate_cv = 0 THEN
ASSIGN 1 TO wv_alternate_cv
END IF
END IF
SAVEVAR

IF wv_alternate_cv = 1 THEN
QUEUE TO SKILLSET Sales
WAIT 2
ELSE
QUEUE TO NETWORK SKILLSET Sales
WAIT 2
END IF

Calls that enter a script where there is a READVAR, SAVEVAR block see the value set in the wild variable table only when the call itself actually enters the READVAR, SAVEVAR block. If you write the script such that the caller does
not enter the block, the call then assumes the default value from the script variable as assigned in OAM, or the value assigned to it through the script
commands.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top