We would like to use a shared generic vector to play announcements and handle menu options for multiple VDN's. The VDN variables V1-V9 will be used to pass the announcement number and route to extensions.
For example, one of our menus has the announcement "press 1 for sales press 2 for service press 6 for assistance".
The VDN looks like:
VECTOR DIRECTORY NUMBER
VDN VARIABLES*
Var Description Assignment
V1 Announcement 1990010
V2
V3 Option 1 1061131111
V4 Option 2 1061132222
V5
V6
V7
V8 Option 6 1061133333
V9
The shared vector would be something like:
01 wait-time 2 secs hearing silence
02 collect 1 digits after announcement V1 for none
03 route-to number V3 with cov y if digit = 1
04 route-to number V4 with cov y if digit = 2
05 route-to number V5 with cov y if digit = 3
06 route-to number V6 with cov y if digit = 4
07 route-to number V7 with cov y if digit = 5
08 route-to number V8 with cov y if digit = 6
09 goto step 2 if unconditionally
10 stop
11
12
Our menus have variable numbers of options, and the options are often non-sequential. I have been unable to find a way to check that the option pressed was a valid option. In the above example, valid options would be 1,2, and 6. If the caller presses a non-valid option I would like to give them an announcement and then loop them back to step 2.
I played around with assigning the actual option numbers to V2, for example V2 = 126, and then tried to check in the vector if the digit pressed was "in" V2 but I am only able to do that using a table. If our options were sequential, like 0,1,2 I could have put the total options in V2 and then compared the digits to V2. We have too many existing menus with non-sequential options to make changing them impractical.
Any ideas would be greatly appreciated.
For example, one of our menus has the announcement "press 1 for sales press 2 for service press 6 for assistance".
The VDN looks like:
VECTOR DIRECTORY NUMBER
VDN VARIABLES*
Var Description Assignment
V1 Announcement 1990010
V2
V3 Option 1 1061131111
V4 Option 2 1061132222
V5
V6
V7
V8 Option 6 1061133333
V9
The shared vector would be something like:
01 wait-time 2 secs hearing silence
02 collect 1 digits after announcement V1 for none
03 route-to number V3 with cov y if digit = 1
04 route-to number V4 with cov y if digit = 2
05 route-to number V5 with cov y if digit = 3
06 route-to number V6 with cov y if digit = 4
07 route-to number V7 with cov y if digit = 5
08 route-to number V8 with cov y if digit = 6
09 goto step 2 if unconditionally
10 stop
11
12
Our menus have variable numbers of options, and the options are often non-sequential. I have been unable to find a way to check that the option pressed was a valid option. In the above example, valid options would be 1,2, and 6. If the caller presses a non-valid option I would like to give them an announcement and then loop them back to step 2.
I played around with assigning the actual option numbers to V2, for example V2 = 126, and then tried to check in the vector if the digit pressed was "in" V2 but I am only able to do that using a table. If our options were sequential, like 0,1,2 I could have put the total options in V2 and then compared the digits to V2. We have too many existing menus with non-sequential options to make changing them impractical.
Any ideas would be greatly appreciated.