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!

Call vectoring - enter your partys extension - HELP!

Status
Not open for further replies.
Nov 22, 2013
600
US
Interesting problem.
In my main vector you press 1, that then brings you to this vector to enter your partys extension, while it is all working the one problem I have is that if you want to dial an extension, 2710 for example, if you just enter 2 and pause (because you dont know your extension or have to look to see what you are dialing) it will timeout after a few seconds and force to extension 2000 (extension 2000 is one of my hunt groups it should not go here) if you press 3 and pause it will force to extension 3000, for and pause it will dial 4000. I would like to know if it is possible to do some sort of unconditional timeout, like if you enter anything less than 4 digits it will start the vector over again at step 3? Thanks for your help.

CALL VECTOR

Number: 50 Name: Main-Extensions
Multimedia? n Attendant Vectoring? n Meet-me Conf? n Lock? n
Basic? y EAS? y G3V4 Enhanced? y ANI/II-Digits? y ASAI Routing? y
Prompting? y LAI? y G3V4 Adv Route? y CINFO? y BSR? y Holidays? y
Variables? y 3.0 Enhanced? y
01 # This is the main menu "if you know your partys extensions" vector.
02 wait-time 1 secs hearing silence
03 collect 1 digits after announcement 6002 for none
04 goto step 15 if digits = 1
05 goto step 19 if digits = 2
06 goto step 23 if digits = 3
07 goto step 27 if digits = 4
08 goto step 31 if digits = 5
09 goto step 35 if digits = 6
10 goto step 39 if digits = 7
11 goto step 43 if digits = 8
12 goto vector 1 @step 1 if digits = 9
13 goto step 2 if unconditionally
14 stop
15 collect 3 digits after announcement none for none
16 set digits = digits ADD 1000
17 route-to digits with coverage y
18 stop
19 collect 3 digits after announcement none for none
20 set digits = digits ADD 2000
21 route-to digits with coverage y
22 stop
23 collect 3 digits after announcement none for none
24 set digits = digits ADD 3000
25 route-to digits with coverage y
26 stop
27 collect 3 digits after announcement none for none
28 set digits = digits ADD 4000
29 route-to digits with coverage y
30 stop
31 collect 3 digits after announcement none for none
32 set digits = digits ADD 5000
33 route-to digits with coverage y
34 stop
35 collect 3 digits after announcement none for none
36 set digits = digits ADD 6000
37 route-to digits with coverage y
38 stop
39 collect 3 digits after announcement none for none
40 set digits = digits ADD 7000
41 route-to digits with coverage y
42 stop
43 collect 3 digits after announcement none for none
44 set digits = digits ADD 8000
45 route-to digits with coverage y
46 stop
 

19 collect 3 digits after announcement none for none
20 goto step X if digits = none
21 set digits = digits ADD 2000
22 route-to digits with coverage y

But this won't solve the issue if they press 2, then 1, then pause too long, then they get sent to 2001.

It would be a pain, but you could put in extensions you don't want them to route to in a VRT and check the VRT before routing.

20 goto step X if digits in VRT 2

Step X could be an announcement that the number they dialed is not a vaild user extension, etc, etc. and then route them back to collecting digits.

- Stinney
"Scire ubi aliquid invenire possis, ea demum maxima pars eruditionis est"

"To know where to find anything is, after all, the greatest part of education"

 
Ok, so I added a vrt and added
2
22
200
2000

here is my test vector
01
02 collect 1 digits after announcement 6002 for none
03 goto step 4 if digits = 2
04 collect 3 digits after announcement none for none
05 set digits = digits ADD 2000
06 goto step 2 if digits in table 1
07 route-to digits with coverage y
08 stop

If i dial 2 and wait, it will time out and go back to step 2 like it is supposed to, if you dial 22 or 222 it will timeout and then disconnect? Any suggestions, I would like to add a few numbers to the VRT like 1 10 100 1000 2 20 200 2000, etc etc.. but I can only get it to work correctly with dialing just 2.
 

Because you are adding 2000 to the number, so when you dial 22 it's checking the vrt for 2022, 222 checking for 2222.

You can refine it so it checks for 3 digits, if they don't minimally have 3 digits dialed go back and colect digits. Then make sure your VRT number check are all 4 digits.

01
02 collect 1 digits after announcement 6002 for none
03 goto step 5 if digits = 2
04 stop
05 collect 3 digits after announcement none for none
06 goto step 2 if digits < 100
07 set digits = digits ADD 2000
08 goto step 2 if digits in table 1
09 route-to digits with coverage y
10 stop



- Stinney
"Scire ubi aliquid invenire possis, ea demum maxima pars eruditionis est"

"To know where to find anything is, after all, the greatest part of education"

 
Ok, So I made my vector exactly this and refined my VRT table 1, it seems to be working, now I just got to add back to my main vector. This should take me a bit to do, but I will post back here and let you know how it works out.
 
To add to this, if you do not ADD 2000, 3000, etc, then you do not need a VRT. Collect the first digit as a variable. Then concatenate the variable to the left of the digits (CATL). This also shortens up your vector.

Example:
01 #
02 wait-time 1 secs hearing silence
03 collect 1 digits after announcement 6002 for AB
04 goto vector 1 @step 1 if digits = 9
05 goto step 7 if unconditionally
06 stop
07 collect 3 digits after announcement none for none
08 set digits = digits CATL AB
09 goto step 2 if digits < 900
10 route-to digits with coverage y
12 stop
 
Nice, solution, I should have thought of the use of variables. But if someone dials 2, then 000 it will still dial to the hunt group. So you might want to still do a VRT lookup and not allow the transfer to that extension.

01 #
02 wait-time 1 secs hearing silence
03 collect 1 digits after announcement 6002 for AB
04 goto vector 1 @step 1 if digits = 9
05 goto step 7 if unconditionally
06 stop
07 collect 3 digits after announcement none for none
08 set digits = digits CATL AB
09 goto step 2 if digits < 900
10 goto step 2 if digits in table 1
11 route-to digits with coverage y
12 stop

- Stinney
"Scire ubi aliquid invenire possis, ea demum maxima pars eruditionis est"

"To know where to find anything is, after all, the greatest part of education"

 
Ok, while this is working. If I dial an extension that does not exsist but is still 4 digits that start with 2, it just disconnects. Any way to make it not do that?

01
02 collect 1 digits after announcement 6002 for none
03 goto step 5 if digits = 2
04 stop
05 collect 3 digits after announcement none for none
06 goto step 2 if digits < 100
07 set digits = digits ADD 2000
08 goto step 2 if digits in table 1
09 route-to digits with coverage y
10 stop

 

How is your DID/Tie/ISDN/SIP Intercept Treatment: setup under system-parameter features (page 1)?

- Stinney
"Scire ubi aliquid invenire possis, ea demum maxima pars eruditionis est"

"To know where to find anything is, after all, the greatest part of education"

 
It goes to announcement 6020, which is a recording saying invalid extension.
 
What does a trace of the vector say it's doing?

- Stinney
"Scire ubi aliquid invenire possis, ea demum maxima pars eruditionis est"

"To know where to find anything is, after all, the greatest part of education"

 
LIST TRACE

time vec st data

14:10:01 TRACE STARTED 05/01/2014 CM Release String cold-03.0.124.0-20850
14:10:04 0 0 ENTERING TRACE cid 1700
14:10:04 49 1 vdn e2003 bsr appl 0 strategy 1st-found override n
14:10:04 49 1 <blank>
14:10:04 49 2 collect 1 digits after annc 6002 for none
14:10:04 49 2 announcement: board 001V9 ann ext: 6002
14:10:04 49 3 Local Call Preference=n
14:10:07 49 3 goto step 13 if digits = 1
14:10:07 49 3 digits = [2]
14:10:07 49 4 goto step 19 if digits = 2
14:10:07 49 4 digits = [2]
14:10:07 49 19 collect 3 digits after annc none for none
14:10:08 49 20 goto step 2 if digits < 100
14:10:08 49 20 digits = [470]
14:10:08 49 21 set digits = digits ADD 2000
14:10:08 49 21 digits = [470]
14:10:08 49 21 operand = [2000]
14:10:08 49 21 ========= ADD =========
14:10:08 49 21 digits = [2470]
14:10:08 49 22 goto step 2 if digits in table 1
14:10:08 49 22 digits = [2470]
14:10:08 49 23 route-to digits with coverage y
14:10:08 49 24 stop
14:10:08 49 24 LEAVING VECTOR PROCESSING cid 1700
14:10:08 49 24 TRACE COMPLETE cid 1700
 

01
02 collect 1 digits after announcement 6002 for none
03 goto step 5 if digits = 2
04 stop
05 collect 3 digits after announcement none for none
06 goto step 2 if digits < 100
07 set digits = digits ADD 2000
08 goto step 2 if digits in table 1
09 route-to digits with coverage y (won't execute this step if digits are invalid/extension doesn't exist)
11 annoucement 6020 (or new announcement that tells them they dialed a non-existing extension)
12 goto step 2 if unconditionally
13 stop




- Stinney
"Scire ubi aliquid invenire possis, ea demum maxima pars eruditionis est"

"To know where to find anything is, after all, the greatest part of education"

 
Well here it is, working.


1
02 collect 1 digits after announcement 6002 for none
03 goto step 13 if digits = 1
04 goto step 21 if digits = 2
05 goto step 29 if digits = 3
06 goto step 37 if digits = 4
07 goto step 45 if digits = 5
08 goto step 52 if digits = 6
09 goto step 60 if digits = 7
10 goto step 68 if digits = 8
11 goto vector 1 @ step 1 if digits = 9
12 stop
13 collect 3 digits after announcement none for none
14 goto step 2 if digits < 100
15 set digits = digits ADD 1000
16 goto step 2 if digits in table 1
17 route-to digits with coverage n
18 announcement 6020
19 goto step 2 if unconditionally
20 stop
21 collect 3 digits after announcement none for none
22 goto step 2 if digits < 100
23 set digits = digits ADD 2000
24 goto step 2 if digits in table 1
25 route-to digits with coverage n
26 announcement 6020
27 goto step 2 if unconditionally
28 stop
29 collect 3 digits after announcement none for none
30 goto step 2 if digits < 100
31 set digits = digits ADD 3000
32 goto step 2 if digits in table 1
33 route-to digits with coverage n
34 announcement 6020
35 goto step 2 if unconditionally
36 stop
37 collect 3 digits after announcement none for none
38 goto step 2 if digits < 100
39 set digits = digits ADD 4000
40 goto step 2 if digits in table 1
41 route-to digits with coverage y
42 announcement 6020
43 goto step 2 if unconditionally
44 stop
45 collect 1 digits after announcement none for none
46 goto step 2 if digits < 100
47 set digits = digits ADD 5000
48 goto step 2 if digits in table 1
49 announcement 6020
50 goto step 2 if unconditionally
51 stop
52 collect 3 digits after announcement none for none
53 goto step 2 if digits < 100
54 set digits = digits ADD 6000
55 goto step 2 if digits in table 1
56 route-to digits with coverage n
57 announcement 6020
58 goto step 2 if unconditionally
59 stop
60 collect 3 digits after announcement none for none
61 goto step 2 if digits < 100
62 set digits = digits ADD 7000
63 goto step 2 if digits in table 1
64 route-to digits with coverage n
65 announcement 6020
66 goto step 2 if unconditionally
67 stop
68 collect 3 digits after announcement none for none
69 goto step 2 if digits < 100
70 set digits = digits ADD 8000
71 goto step 2 if digits in table 1
72 route-to digits with coverage n
73 announcement 6020
74 goto step 2 if unconditionally
75 stop


 
Hmm I stand corrected not working, trying to figure out why now. It just keeps going back to step 2 after I try ANY extension.
 
Seems overly complicated to just exclude the "9". Why not 1 step >8999 to catch that?

collect 4 digits after annc
goto step 99 if digits >8999
goto step 99 if digits <1000
route to digits
annc 6020


step 99 disconnect

-CL
 
I agree seems a bit much. But it is somewhat working. or well it was I must of hosed something up somewhere going over it now.
 

Why did you change to coverage no?

- Stinney
"Scire ubi aliquid invenire possis, ea demum maxima pars eruditionis est"

"To know where to find anything is, after all, the greatest part of education"

 
Yes I cought that after, I pasted it here. Everything is working except any 8000 extension dialed, it keeps going back to step 2 no matter what I do. The onyl way I can make 8000 extensions work is to take out step 69. Weird.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top