You can test ANI against entries in a Vector Routing Table (VRT). VRT contain lists of numbers that can be used to test a goto...if ani command. ANI can be tested to see if it is either in or not-in the specified table. Entries in the tables can also use the +
and ?
wildcards.
The following sample VRT includes various area codes for the state of California.
VECTOR ROUTING TABLE
Number: 6 Name: California Sort? n
1: 714+ 17: _______
2: 805+ 18: _______
3: 619+ 19: _______
4: 707+ 20: _______
5: 209+ 21: _______
6: 310+ 22: _______
7: 213+ 23: _______
8: 408+ 24: _______
9: 510+ 25: _______
10: 818+ 26: _______
11: 909+ 27: _______
12: 916+ 28: _______
13: 415+ 29: _______
The following vector example shows how calls can be routed based on information provided in the sample VRT.
1. announcement 45673
2. goto step 9 if ani = none
3. goto vector 8 if ani in table 6
4. queue-to split 5 pri l
5. wait-time 10 seconds hearing ringback
6. announcement 2771
7. wait-time 10 seconds hearing music
8. goto step 6 if unconditionally
9. route-to number 0 with cov y if unconditionally
In the example vector, the call is routed to an operator if no ANI is available for the call. If the first three numbers match an area code from table 6, the call is routed to vector 8. All other calls are queued.