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

Counter for menu in a vector... 1

Status
Not open for further replies.

Bogie303

IS-IT--Management
Feb 18, 2011
17
US
I'm cleaning up some old DTMF menu's in some vectors. I think it's probably a bad practice to continually loop the customer back to the menu announcement if they don't press an option or press the wrong option. I'm guessing if someone called in put down their phone or switched over to answer another call the switch could indefinately loop and process the call forever.

Is there a way that I can count the # of times the customer went through this menu and after 3 times say "sorry your having difficulty..." then disconnect them?

I thought there used be be a "counter" as a vector step option but if I recall, the counter didn't reset so it contined to grow and that won't help me.

Any thoughts?
 
Set up a variable:

See Variable B!

display variables Page 1 of 39
VARIABLES FOR VECTORS

Var Description Type Scope Length Start Assignment VAC
A Annc Number collect G 4 1
B Hold Step Loop Count collect L 1 1
C
D
E Emergency Building Wide collect G 4 1 0000
F


Count and set it in a vector like this:

01 goto step 13 if time-of-day is fri 17:00 to mon 08:00
02 goto step 13 if time-of-day is all 17:00 to all 08:00
03 wait-time 2 secs hearing ringback
04 goto step 13 if staffed-agents in skill 10 < 1
05 queue-to skill 10 pri m
06 announcement 4560
07 set B = digits ADD 0
08 wait-time 50 secs hearing music
09 announcement 4561
10 set B = B ADD 1
11 goto step 13 if B = 3
12 goto step 8 if unconditionally
13 queue-to skill 4 pri m
14 set B = digits ADD 0
15 set B = digits ADD 1
16 goto step 19 if B = 3
17 wait-time 60 secs hearing music
18 goto step 14 if unconditionally
19 queue-to skill 1 pri m
20 wait-time 60 secs hearing music
21 announcement 4561
22 goto step 20 if unconditionally
23
 
You can use a step count variable, it doesn't continue to increment if you set it to local and each incoming call would be treated separately.

However, it's not as versitle as what rockspop suggests. I also recommend using rockpop's method.

Downside to using step count:

1) You have to manually count how many steps the caller would be processed through before you would treat the call differently using the step count variable

2) If you insert or delete rows in your programming later, it effects the step count variable and you manually have to recount what the number of steps would be.

Using rockspop's recommendation, you wouldn't have to worry about adding or removing steps and manually having to change the step count.


- Stinney

Quoting only proves you know how to cut and paste.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top