How can you use a variable that can be used to store a counter value and be used by more than one vector. For example I want to repeat an announcement, collect digits and goto commands a 2 times before disconnectiong a caller. But, I want to be able to use this variable for multiple VDN/Vectors that could increment the counter at the same time. I did some testing with 2 VDN's/vectors and it seems like both vectors are incrementing the value of the counter! It seems silly to create a separate variable for each vector/counter situation. Example:
display variables Page 1 of 2
VARIABLES FOR VECTORS
Var Description Type Scope Length Start Assignment VAC
A SC Meeting collect G 5 1 1
B SC Bypass to T-2 collect G 5 1 91630
C Test Elk Grove collect G 12 1 91630623
D Counter collect G 1 1 0
display vector 251 Page 1 of 3
CALL VECTOR
Number: 251 Name: Collect test
Multimedia? n Attendant Vectoring? n Meet-me Conf? n Lock? n
Basic? y EAS? y G3V4 Enhanced? y ANI/II-Digits? y ASAI Routing? n
Prompting? y LAI? y G3V4 Adv Route? y CINFO? y BSR? y Holidays? y
Variables? y 3.0 Enhanced? y
01 wait-time 0 secs hearing silence
02 collect 1 digits after announcement 0827 for none
03 goto step 8 if digits = 1
04 goto step 10 if digits = 2
05 goto step 12 if D = 2
06 set D = D ADD 1
07 goto step 2 if unconditionally
08 announcement 0296
09 goto step 12 if unconditionally
10 wait-time 10 secs hearing music
11 goto step 12 if unconditionally
12 set D = none ADD 0
13 disconnect after announcement none
14 stop
15
16
17
18
19
20
21
22
display variables Page 1 of 2
VARIABLES FOR VECTORS
Var Description Type Scope Length Start Assignment VAC
A SC Meeting collect G 5 1 1
B SC Bypass to T-2 collect G 5 1 91630
C Test Elk Grove collect G 12 1 91630623
D Counter collect G 1 1 0
display vector 251 Page 1 of 3
CALL VECTOR
Number: 251 Name: Collect test
Multimedia? n Attendant Vectoring? n Meet-me Conf? n Lock? n
Basic? y EAS? y G3V4 Enhanced? y ANI/II-Digits? y ASAI Routing? n
Prompting? y LAI? y G3V4 Adv Route? y CINFO? y BSR? y Holidays? y
Variables? y 3.0 Enhanced? y
01 wait-time 0 secs hearing silence
02 collect 1 digits after announcement 0827 for none
03 goto step 8 if digits = 1
04 goto step 10 if digits = 2
05 goto step 12 if D = 2
06 set D = D ADD 1
07 goto step 2 if unconditionally
08 announcement 0296
09 goto step 12 if unconditionally
10 wait-time 10 secs hearing music
11 goto step 12 if unconditionally
12 set D = none ADD 0
13 disconnect after announcement none
14 stop
15
16
17
18
19
20
21
22