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

How to restrict a vector to allow only certain 4 digits extensions to be entered 1

Status
Not open for further replies.

richb808

Technical User
Nov 10, 2014
78
US
Inherited a vector below that I want to modify to allow only the extensions in the range 8300 to 8399 to be entered.
Currently it collects 4 digits and if they enter something outside the range above the system can route them to other locations. So want to restrict users to entering only the 4 digits in the range 8300 to 8399.
But also still need to route appropriately if they enter a '1', '0' or '#'.
Any suggestions greatly appreciated!

01 wait-time 1 secs hearing ringback
02 announcement 1198371
03 goto step 14 if holiday in table 1
04 goto step 14 if time-of-day is all 16:00 to all 07:30
05 collect 4 digits after announcement 1000012
06 goto step 1 if digits = 911
07 route-to digits with coverage y
08 route-to number 14051009999 with cov y if digit = #
09 route-to number 18081010001 with cov y if digit = 1
10 route-to number 18081010006 with cov y if digit = 0
11 goto step 5 if digits = 9
12 wait-time 7 secs hearing silence
13 stop
14 disconnect after announcement 1000011
15 stop
16 disconnect after announcement none

Thanks!
 
How bout this? If you work out your shorter matches before your longer ones and once you get to 4 digit extensions, go back to start if <8300 or >8399, else route to 8300-8399, something like this ought to sort you out.

05 collect 4 digits after announcement 1000012
06 goto step 1 if digits = 911
07 route-to number 14051009999 with cov y if digit = #
08 route-to number 18081010001 with cov y if digit = 1
09 route-to number 18081010006 with cov y if digit = 0
10 goto step 16 if digits < 8300
11 goto step 16 if digits > 8399
12 route-to digits with coverage y
 
you could also apply a cor to stations 8300-8399 that only also the VDN associated with your vector can dial , bar the vdn from calling other stations by turning access to those cor`s in the allow screens.

ACSS (UC/SBCE/SM/SME)

Not that they mean a thing anymore , get a brain dump pass the test crash the system.
 
Thank you kyle555! I made the change you suggested and it seems to be working.
Thanks for the suggestions montyzummer. I went with kyle's idea as it seemed easier for me. Not too good with cor stuff.
 
you can use a VRT table.

collect digits
goto step X if digits in table 1


change vrt 1

83??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top