Hello Experts,
The company wants to announce queue position to callers so I went ahead and put this together. I am hoping that someone can guide me on how I can use more variables on this and make the vector a little shorter and flexible. Ex. is there another way of doing the interflow-qpos with a variable instead of listing all of them. is there a way to assign a variable that will determine which announcement to use depending on the queue position. any advise is appreciated.
variable C is set to collect on variable table.
8641 to 8650 are announcment saying the place in queue
8622 to 8625 are the on hold/educational announcements
01 wait-time 0 secs hearing silence
02 goto vector 100 @step 1 if staffed-agents in skill 100 > 0
03 queue-to skill 19 pri l
04 goto step 14 if interflow-qpos = 1
05 goto step 16 if interflow-qpos = 2
06 goto step 18 if interflow-qpos = 3
07 goto step 20 if interflow-qpos = 4
08 goto step 22 if interflow-qpos = 5
09 goto step 24 if interflow-qpos = 6
10 goto step 26 if interflow-qpos = 7
11 goto step 28 if interflow-qpos = 8
12 goto step 30 if interflow-qpos = 9
13 goto step 32 if interflow-qpos > 9
14 announcement 8641
15 goto step 34 if unconditionally
16 announcement 8642
17 goto step 34 if unconditionally
18 announcement 8643
19 goto step 34 if unconditionally
20 announcement 8644
21 goto step 34 if unconditionally
22 announcement 8645
23 goto step 34 if unconditionally
24 announcement 8646
25 goto step 34 if unconditionally
26 announcement 8647
27 goto step 34 if unconditionally
28 announcement 8648
29 goto step 34 if unconditionally
30 announcement 8649
31 goto step 34 if unconditionally
32 announcement 8650
33 goto step 34 if unconditionally
34 set C = C ADD 1
35 goto step 46 if C = 1
36 goto step 49 if C = 2
37 goto step 52 if C = 3
38 goto step 46 if C = 4
39 goto step 49 if C = 5
40 goto step 52 if C = 6
41 goto step 46 if C = 7
42 goto step 49 if C = 8
43 goto step 52 if C = 9
44 goto step 58 if unconditionally
45 stop
46 announcement 8622
47 wait-time 20 secs hearing music
48 goto step 4 if unconditionally
49 announcement 8623
50 wait-time 20 secs hearing music
51 goto step 4 if unconditionally
52 announcement 8624
53 wait-time 20 secs hearing music
54 goto step 4 if unconditionally
55 announcement 8625
56 wait-time 20 secs hearing music
57 goto step 4 if unconditionally
58 wait-time 30 secs hearing music
59 goto step 4 if unconditionally
60 stop
61
62
ezncool
You cannot solve problems with the same
type of thinking that created them.
-Albert Einstein
The company wants to announce queue position to callers so I went ahead and put this together. I am hoping that someone can guide me on how I can use more variables on this and make the vector a little shorter and flexible. Ex. is there another way of doing the interflow-qpos with a variable instead of listing all of them. is there a way to assign a variable that will determine which announcement to use depending on the queue position. any advise is appreciated.
variable C is set to collect on variable table.
8641 to 8650 are announcment saying the place in queue
8622 to 8625 are the on hold/educational announcements
01 wait-time 0 secs hearing silence
02 goto vector 100 @step 1 if staffed-agents in skill 100 > 0
03 queue-to skill 19 pri l
04 goto step 14 if interflow-qpos = 1
05 goto step 16 if interflow-qpos = 2
06 goto step 18 if interflow-qpos = 3
07 goto step 20 if interflow-qpos = 4
08 goto step 22 if interflow-qpos = 5
09 goto step 24 if interflow-qpos = 6
10 goto step 26 if interflow-qpos = 7
11 goto step 28 if interflow-qpos = 8
12 goto step 30 if interflow-qpos = 9
13 goto step 32 if interflow-qpos > 9
14 announcement 8641
15 goto step 34 if unconditionally
16 announcement 8642
17 goto step 34 if unconditionally
18 announcement 8643
19 goto step 34 if unconditionally
20 announcement 8644
21 goto step 34 if unconditionally
22 announcement 8645
23 goto step 34 if unconditionally
24 announcement 8646
25 goto step 34 if unconditionally
26 announcement 8647
27 goto step 34 if unconditionally
28 announcement 8648
29 goto step 34 if unconditionally
30 announcement 8649
31 goto step 34 if unconditionally
32 announcement 8650
33 goto step 34 if unconditionally
34 set C = C ADD 1
35 goto step 46 if C = 1
36 goto step 49 if C = 2
37 goto step 52 if C = 3
38 goto step 46 if C = 4
39 goto step 49 if C = 5
40 goto step 52 if C = 6
41 goto step 46 if C = 7
42 goto step 49 if C = 8
43 goto step 52 if C = 9
44 goto step 58 if unconditionally
45 stop
46 announcement 8622
47 wait-time 20 secs hearing music
48 goto step 4 if unconditionally
49 announcement 8623
50 wait-time 20 secs hearing music
51 goto step 4 if unconditionally
52 announcement 8624
53 wait-time 20 secs hearing music
54 goto step 4 if unconditionally
55 announcement 8625
56 wait-time 20 secs hearing music
57 goto step 4 if unconditionally
58 wait-time 30 secs hearing music
59 goto step 4 if unconditionally
60 stop
61
62
ezncool
You cannot solve problems with the same
type of thinking that created them.
-Albert Einstein