Using digits to collect branching information

Last Updated : Sep 08, 2012 |

Call Prompting allows you to direct a call to another step or vector based on the digits that are entered by the caller. This branching is accomplished with a goto step. For example, in the following vector example, digits are used to route calls to different vectors based on an assigned customer number.

Using Call Prompting to branch by collected digits


1. wait-time 0 seconds hearing ringback
2. collect 5 digits after announcement 200 [
Please enter your customer number.
]
3. goto vector 8 if digits = 10+
4. goto vector 9 if digits = 11+
5. goto vector 10 if digits = 12+
6. route-to number 0 with cov n if unconditionally
7. stop

The wildcard + indicates that the two digits can be followed by zero or any number of additional digits. Callers with a number that begins with the digits 10 are routed to vector 8, callers with a number that begins with the digits 11 are routed to vector 9, and callers with a number that begins with the digits 12 are routed to vector 10.