Selection Switch
Runtime Name: select
The selection switch block type is useful as the action
for a <Gather>
operation - it will read the input from a
subscriber collected by the <Gather>
operation and redirect the application flow to another action depending on the input,
without needing to write any code to handle the logic.
The code in this block type is a mapping of every possible input to a relative or absolute URL. Such map is composed of a
set of text lines (ending with a new-line character) where each line is composed of the input to match, followed by a
color (:
) and the destination action.
Example Code
1: sales-queue
2: support-menu
3: dial-billing
Pros and Cons
Pros | Cons |
---|---|
Simple to implement and use. | No dynamic features. |
Good for fast testing or simpler IVR scnearios. | |
Doesn't require any coding skills. | |
When combined with remotely hosted voice applications, can be very powerful. |