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

how can I make this better, shorter or more flexible 1

Status
Not open for further replies.

ezncool

IS-IT--Management
Oct 29, 2003
200
US
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

 
Not tested this, but would this work?:

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 set Z = none ADD 8640
14 set Z = Z ADD 1
15 set Z = Z ADD 1
16 set Z = Z ADD 1
17 set Z = Z ADD 1
18 set Z = Z ADD 1
19 set Z = Z ADD 1
20 set Z = Z ADD 1
21 set Z = Z ADD 1
22 set Z = Z ADD 1
23 set Z = Z ADD 1
24 announcement Z

Something similar could be done for the "educational" announcements.

Ronster

Science is the rehab of the masses.
 
Sorry, I hadn't finished editing! Would THIS work?

03 set Z = none ADD 8640
04 goto step 15 if interflow-qpos > 9
05 goto step 16 if interflow-qpos = 9
06 goto step 17 if interflow-qpos = 8
07 goto step 18 if interflow-qpos = 7
08 goto step 19 if interflow-qpos = 6
09 goto step 20 if interflow-qpos = 5
10 goto step 21 if interflow-qpos = 4
11 goto step 22 if interflow-qpos = 3
12 goto step 23 if interflow-qpos = 2
13 goto step 24 if interflow-qpos = 1
14
15 set Z = Z ADD 1
16 set Z = Z ADD 1
17 set Z = Z ADD 1
18 set Z = Z ADD 1
19 set Z = Z ADD 1
20 set Z = Z ADD 1
20 set Z = Z ADD 1
22 set Z = Z ADD 1
23 set Z = Z ADD 1
24 set Z = Z ADD 1
25 announcement Z

Ronster

Science is the rehab of the masses.
 
not sure if it would, I think it would not give me the correct announcement the second loop around. if the caller is 4th in queue it will still give announcement 8641. Thanks for the Idea tho, I can work on this.

ezncool
You cannot solve problems with the same
type of thinking that created them.
-Albert Einstein

 
you could also do a 'sub-routine'

in main vector,,
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 vector XXX if unconditionally
05 Announcement Z (this is where the sub-routine will send it back)
06 wait time xxx hearing music
07 goto step 4 if unconditionally...

if you need to set a counter,, you can and use another vector as a subroutine to set that announcment variable as well...


now vec XXX
01 goto step 14 if interflow-qpos = 1
02 goto step 16 if interflow-qpos = 2
03 goto step 18 if interflow-qpos = 3
04 goto step 20 if interflow-qpos = 4
05 goto step 22 if interflow-qpos = 5
06 goto step 24 if interflow-qpos = 6
07 goto step 26 if interflow-qpos = 7
08 goto step 28 if interflow-qpos = 8
09 goto step 30 if interflow-qpos = 9


14 Set Z = 8641 add none
15 return (this will send back to first vector)
16 Set z = 8642 add none
17 return
etc....

 
thanks Zen, I will try that

ezncool
You cannot solve problems with the same
type of thinking that created them.
-Albert Einstein

 
Zen,

will the caller not loose its queue position when it jumps to vector xxx?

ezncool
You cannot solve problems with the same
type of thinking that created them.
-Albert Einstein

 
the caller will stay in queue and keep their place...


I have a separate vector to determine time of day (for three different departments,, I just goto vec xxx @ step xxx to get to the start of the different time of day checks)
I also have a expected wait, and calls in queue sub-vectors..
The nice thing is you can have many different vectors goto the sub vectors and then return to their original vector with a variable assigned for further processing...
 
thanks Zen

ezncool
You cannot solve problems with the same
type of thinking that created them.
-Albert Einstein

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top