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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable in Vector Question

Status
Not open for further replies.

colinrmgt

Programmer
Jul 9, 2008
8
GB
Hi all,

First time poster here.

I have been asked to look at a way of reporting on menu selections for a client. I thought I might be able to build up a string of numberical values using variables in the vector:

I have set up something like this:

VEC 600:
01 collect 1 digit after announcement x for A
02 goto vector 601 @step 1 if digits = 1
03 goto vector 611 @step 1 if digits = 2
stop

VEC 601:
01 collect 1 digit after announcement y for B
02 goto step 9 if digits = 1
03 goto step 12 if digits = 2
.
.
.
09 set digits = A CATR B
10 queue-to.....
.
.
12 set A = A CATR B
13 goto vector 602 @step 1 if unconditionally


So, a customer calls and enters 1 for the first menu, and 1 for the second. A=1, B=1 which are CATR'd to 'digits' 11, which is written to External_Call_History Column LAST_DIGIT_ENTERED.

My question is; A and B are Global variables, does this mean that they are global to the ACD (2 calls come into the vector and we see cross-over between the menu selections? or are the variables initilised per call so there would never be any cross over?

I hope this makes sense, I've only been looking at VIV for a day so am not 100% clear on how they work.

Thanks,
Colin
 
(G)lobal variables will be global to the PBX, I use them to sut the call center down for meetings, emergencies, and inclement weather...
(L)ocal variables are local to the call.
 
Great, currently when 2 calls hit the vector at the same time the global variable is causing data to cross over. So if I select options 1 - 3 - 1 on one call and 2 - 6 - 2 on another in External_Call_History I see 2361.

I thought Local would only be local to the Vector meaning I couldn't pass the variable onto the next vector in the sequence. However I've made the change as above and it seems to be working the same.

Hopefully there won't be any crossover between some test calls in External_Call_History.

Thanks for your help Zen216. I'll update this thread if I continue to have problems.

Thanks,
Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top