In addition to :
phoneman2 (http://www.tek-tips.com/faqs.cfm?fid=4624)
and
kristiand'g (http://www.tek-tips.com/faqs.cfm?fid=7516)
I modified the vectors from kristiand'g a little so they can be called and use a variable in stead of collected digits and I formatted it a little for better understanding.
So from a vector you only have to assign the number to a Var , goto vector 390 (in my case) en then return to the calling vector and proceed witch whatever you want.
An Example : Write a vector in witch you ask a number for a department to forward their vdn to in case of absence. (you can't forward a vdn easily)
VAR TT (Global VAR) is the VAR where the number is stored (you could do a route-to TT in a another vector)
Var AB (Local VAR) is used as an intermediate (temporarily) VAR
In a Vector you could do : (see below for the example vector)
let AB = none add TT ; goto vector 390 ; Let TT = none add AB
let TT = TT SEL 10 (make it 10 digits again or whatever length)
Of course the announcements are 15301(one) 15302(two) and so on.
I have tested it quit a few times (but don't blame me if I forgot something)
-----------------------------------------------------------------------------
Vector 389
01 # Just a test vector to play back the digits and return in this vector
02 # collect 4 dgt , 7 dgts or 10 dgts
# assuming that 4 and 7 digits don't start with zero and 10 dgts does
# but you can add more checks !
03 collect 10 digits after announcement xxxxx for AB
(enter a number an stop with a hash)
04 #
05 goto step 12 if AB = ????
06 goto step 12 if AB = ???????
07 goto step 12 if AB = ??????????
08 goto step 3 # to many or few digits
09 #
10 #
11 #
12 # call vector 390
13 goto vector 390 @step 1 if unconditionally
14 # Return from 390 --> 391 --> 392 --> 393 , set TT and say goodbye
# of course you could do : is this number correct press 1 bla bla
15 # or you could make it 10 digits again (set TT = AB Sel 10)
16 disconnect after announcement xxxxx (the number is ok , whatever)
17 stop
18 # the number TT is now stored in a Global Var and you can use every vector
# to do a route-to number TT with coverage y if unconditionally
--------------
Vector 390
01 # Digit #1
02 goto step 12 if AB = 1+
03 goto step 14 if AB = 2+
04 goto step 16 if AB = 3+
05 goto step 18 if AB = 4+
06 goto step 20 if AB = 5+
07 goto step 22 if AB = 6+
08 goto step 24 if AB = 7+
09 goto step 26 if AB = 8+
10 goto step 28 if AB = 9+
11 goto step 30 if AB = 0+
12 announcement 15301
13 goto step 31 if unconditionally
14 announcement 15302
15 goto step 31 if unconditionally
16 announcement 15303
17 goto step 31 if unconditionally
18 announcement 15304
19 goto step 31 if unconditionally
20 announcement 15305
21 goto step 31 if unconditionally
22 announcement 15306
23 goto step 31 if unconditionally
24 announcement 15307
25 goto step 31 if unconditionally
26 announcement 15308
27 goto step 31 if unconditionally
28 announcement 15309
29 goto step 31 if unconditionally
30 announcement 15310
31 goto step 99 if AB = ?
32 # Digit #2
33 goto step 43 if AB = ?1+
34 goto step 45 if AB = ?2+
35 goto step 47 if AB = ?3+
36 goto step 49 if AB = ?4+
37 goto step 51 if AB = ?5+
38 goto step 53 if AB = ?6+
39 goto step 55 if AB = ?7+
40 goto step 57 if AB = ?8+
41 goto step 59 if AB = ?9+
42 goto step 61 if AB = ?0+
43 announcement 15301
44 goto step 62 if unconditionally
45 announcement 15302
46 goto step 62 if unconditionally
47 announcement 15303
48 goto step 62 if unconditionally
49 announcement 15304
50 goto step 62 if unconditionally
51 announcement 15305
52 goto step 62 if unconditionally
53 announcement 15306
54 goto step 62 if unconditionally
55 announcement 15307
56 goto step 62 if unconditionally
57 announcement 15308
58 goto step 62 if unconditionally
59 announcement 15309
60 goto step 62 if unconditionally
61 announcement 15310
62 goto step 99 if AB = ??
63 # Digits #3
64 goto step 74 if AB = ??1+
65 goto step 76 if AB = ??2+
66 goto step 78 if AB = ??3+
67 goto step 80 if AB = ??4+
68 goto step 82 if AB = ??5+
69 goto step 84 if AB = ??6+
70 goto step 86 if AB = ??7+
71 goto step 88 if AB = ??8+
72 goto step 90 if AB = ??9+
73 goto step 92 if AB = ??0+
74 announcement 15301
75 goto step 93 if unconditionally
76 announcement 15302
77 goto step 93 if unconditionally
78 announcement 15303
79 goto step 93 if unconditionally
80 announcement 15304
81 goto step 93 if unconditionally
82 announcement 15305
83 goto step 93 if unconditionally
84 announcement 15306
85 goto step 93 if unconditionally
86 announcement 15307
87 goto step 93 if unconditionally
88 announcement 15308
89 goto step 93 if unconditionally
90 announcement 15309
91 goto step 93 if unconditionally
92 announcement 15310
93 goto step 99 if AB = ???
94 #
95
96 # Digits 4-6
97 goto vector 391 @step 1 if unconditionally
98
99 return
----------------------------------
Vector 391
01 # Digit #4
02 goto step 12 if AB = ???1+
03 goto step 14 if AB = ???2+
04 goto step 16 if AB = ???3+
05 goto step 18 if AB = ???4+
06 goto step 20 if AB = ???5+
07 goto step 22 if AB = ???6+
08 goto step 24 if AB = ???7+
09 goto step 26 if AB = ???8+
10 goto step 28 if AB = ???9+
11 goto step 30 if AB = ???0+
12 announcement 15301
13 goto step 31 if unconditionally
14 announcement 15302
15 goto step 31 if unconditionally
16 announcement 15303
17 goto step 31 if unconditionally
18 announcement 15304
19 goto step 31 if unconditionally
20 announcement 15305
21 goto step 31 if unconditionally
22 announcement 15306
23 goto step 31 if unconditionally
24 announcement 15307
25 goto step 31 if unconditionally
26 announcement 15308
27 goto step 31 if unconditionally
28 announcement 15309
29 goto step 31 if unconditionally
30 announcement 15310
31 goto step 99 if AB = ????
32 # Digit #5
33 goto step 43 if AB = ????1+
34 goto step 45 if AB = ????2+
35 goto step 47 if AB = ????3+
36 goto step 49 if AB = ????4+
37 goto step 51 if AB = ????5+
38 goto step 53 if AB = ????6+
39 goto step 55 if AB = ????7+
40 goto step 57 if AB = ????8+
41 goto step 59 if AB = ????9+
42 goto step 61 if AB = ????0+
43 announcement 15301
44 goto step 62 if unconditionally
45 announcement 15302
46 goto step 62 if unconditionally
47 announcement 15303
48 goto step 62 if unconditionally
49 announcement 15304
50 goto step 62 if unconditionally
51 announcement 15305
52 goto step 62 if unconditionally
53 announcement 15306
54 goto step 62 if unconditionally
55 announcement 15307
56 goto step 62 if unconditionally
57 announcement 15308
58 goto step 62 if unconditionally
59 announcement 15309
60 goto step 62 if unconditionally
61 announcement 15310
62 goto step 99 if AB = ?????
63 # Digit #6
64 goto step 74 if AB = ?????1+
65 goto step 76 if AB = ?????2+
66 goto step 78 if AB = ?????3+
67 goto step 80 if AB = ?????4+
68 goto step 82 if AB = ?????5+
69 goto step 84 if AB = ?????6+
70 goto step 86 if AB = ?????7+
71 goto step 88 if AB = ?????8+
72 goto step 90 if AB = ?????9+
73 goto step 92 if AB = ?????0+
74 announcement 15301
75 goto step 93 if unconditionally
76 announcement 15302
77 goto step 93 if unconditionally
78 announcement 15303
79 goto step 93 if unconditionally
80 announcement 15304
81 goto step 93 if unconditionally
82 announcement 15305
83 goto step 93 if unconditionally
84 announcement 15306
85 goto step 93 if unconditionally
86 announcement 15307
87 goto step 93 if unconditionally
88 announcement 15308
89 goto step 93 if unconditionally
90 announcement 15309
91 goto step 93 if unconditionally
92 announcement 15310
93 goto step 99 if AB = ??????
94
95
96 # Digits 4-6
97 goto vector 392 @step 1 if unconditionally
98
99 return
-----------------------------------
Vector 392
01 # Digit #7
02 goto step 12 if AB = ??????1+
03 goto step 14 if AB = ??????2+
04 goto step 16 if AB = ??????3+
05 goto step 18 if AB = ??????4+
06 goto step 20 if AB = ??????5+
07 goto step 22 if AB = ??????6+
08 goto step 24 if AB = ??????7+
09 goto step 26 if AB = ??????8+
10 goto step 28 if AB = ??????9+
11 goto step 30 if AB = ??????0+
12 announcement 15301
13 goto step 31 if unconditionally
14 announcement 15302
15 goto step 31 if unconditionally
16 announcement 15303
17 goto step 31 if unconditionally
18 announcement 15304
19 goto step 31 if unconditionally
20 announcement 15305
21 goto step 31 if unconditionally
22 announcement 15306
23 goto step 31 if unconditionally
24 announcement 15307
25 goto step 31 if unconditionally
26 announcement 15308
27 goto step 31 if unconditionally
28 announcement 15309
29 goto step 31 if unconditionally
30 announcement 15310
31 goto step 99 if AB = ???????
32 # Digit #8
33 goto step 43 if AB = ???????1+
34 goto step 45 if AB = ???????2+
35 goto step 47 if AB = ???????3+
36 goto step 49 if AB = ???????4+
37 goto step 51 if AB = ???????5+
38 goto step 53 if AB = ???????6+
39 goto step 55 if AB = ???????7+
40 goto step 57 if AB = ???????8+
41 goto step 59 if AB = ???????9+
42 goto step 61 if AB = ???????0+
43 announcement 15301
44 goto step 62 if unconditionally
45 announcement 15302
46 goto step 62 if unconditionally
47 announcement 15303
48 goto step 62 if unconditionally
49 announcement 15304
50 goto step 62 if unconditionally
51 announcement 15305
52 goto step 62 if unconditionally
53 announcement 15306
54 goto step 62 if unconditionally
55 announcement 15307
56 goto step 62 if unconditionally
57 announcement 15308
58 goto step 62 if unconditionally
59 announcement 15309
60 goto step 62 if unconditionally
61 announcement 15310
62 goto step 99 if AB = ????????
63 # Digit #9
64 goto step 74 if AB = ????????1+
65 goto step 76 if AB = ????????2+
66 goto step 78 if AB = ????????3+
67 goto step 80 if AB = ????????4+
68 goto step 82 if AB = ????????5+
69 goto step 84 if AB = ????????6+
70 goto step 86 if AB = ????????7+
71 goto step 88 if AB = ????????8+
72 goto step 90 if AB = ????????9+
73 goto step 92 if AB = ????????0+
74 announcement 15301
75 goto step 93 if unconditionally
76 announcement 15302
77 goto step 93 if unconditionally
78 announcement 15303
79 goto step 93 if unconditionally
80 announcement 15304
81 goto step 93 if unconditionally
82 announcement 15305
83 goto step 93 if unconditionally
84 announcement 15306
85 goto step 93 if unconditionally
86 announcement 15307
87 goto step 93 if unconditionally
88 announcement 15308
89 goto step 93 if unconditionally
90 announcement 15309
91 goto step 93 if unconditionally
92 announcement 15310
93 goto step 99 if AB = ?????????
94
95
96 # Digits 10-12
97 goto vector 393 @step 1 if unconditionally
98
99 return
---------------------------------------
Vector 393
01 # Digit #10
02 goto step 12 if AB = ?????????1+
03 goto step 14 if AB = ?????????2+
04 goto step 16 if AB = ?????????3+
05 goto step 18 if AB = ?????????4+
06 goto step 20 if AB = ?????????5+
07 goto step 22 if AB = ?????????6+
08 goto step 24 if AB = ?????????7+
09 goto step 26 if AB = ?????????8+
10 goto step 28 if AB = ?????????9+
11 goto step 30 if AB = ?????????0+
12 announcement 15301
13 goto step 31 if unconditionally
14 announcement 15302
15 goto step 31 if unconditionally
16 announcement 15303
17 goto step 31 if unconditionally
18 announcement 15304
19 goto step 31 if unconditionally
20 announcement 15305
21 goto step 31 if unconditionally
22 announcement 15306
23 goto step 31 if unconditionally
24 announcement 15307
25 goto step 31 if unconditionally
26 announcement 15308
27 goto step 31 if unconditionally
28 announcement 15309
29 goto step 31 if unconditionally
30 announcement 15310
31 goto step 99 if AB = ??????????
32 # Digit # 11
33 goto step 43 if AB = ??????????1+
34 goto step 45 if AB = ??????????2+
35 goto step 47 if AB = ??????????3+
36 goto step 49 if AB = ??????????4+
37 goto step 51 if AB = ??????????5+
38 goto step 53 if AB = ??????????6+
39 goto step 55 if AB = ??????????7+
40 goto step 57 if AB = ??????????8+
41 goto step 59 if AB = ??????????9+
42 goto step 61 if AB = ??????????0+
43 announcement 15301
44 goto step 62 if unconditionally
45 announcement 15302
46 goto step 62 if unconditionally
47 announcement 15303
48 goto step 62 if unconditionally
49 announcement 15304
50 goto step 62 if unconditionally
51 announcement 15305
52 goto step 62 if unconditionally
53 announcement 15306
54 goto step 62 if unconditionally
55 announcement 15307
56 goto step 62 if unconditionally
57 announcement 15308
58 goto step 62 if unconditionally
59 announcement 15309
60 goto step 62 if unconditionally
61 announcement 15310
62 goto step 99 if AB = ???????????
63 # Digit #12
64 goto step 74 if AB = ???????????1+
65 goto step 76 if AB = ???????????2+
66 goto step 78 if AB = ???????????3+
67 goto step 80 if AB = ???????????4+
68 goto step 82 if AB = ???????????5+
69 goto step 84 if AB = ???????????6+
70 goto step 86 if AB = ???????????7+
71 goto step 88 if AB = ???????????8+
72 goto step 90 if AB = ???????????9+
73 goto step 92 if AB = ???????????0+
74 announcement 15301
75 goto step 93 if unconditionally
76 announcement 15302
77 goto step 93 if unconditionally
78 announcement 15303
79 goto step 93 if unconditionally
80 announcement 15304
81 goto step 93 if unconditionally
82 announcement 15305
83 goto step 93 if unconditionally
84 announcement 15306
85 goto step 93 if unconditionally
86 announcement 15307
87 goto step 93 if unconditionally
88 announcement 15308
89 goto step 93 if unconditionally
90 announcement 15309
91 goto step 93 if unconditionally
92 announcement 15310
93 # Thats it , 12 digits thats the limit
# more digit's ? create a vector 394 for yourself
94 goto step 99 if unconditionally
95
96
97
98
99 return
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.