Rate this page:

IVRSettings

IVR menu state settings. Can be passed via the IVRState.settings parameter.
Add the following line to your scenario code to use the interface:

require(Modules.IVR);

Props

inputLength

Copy URL
inputLength: 

number

For inputfixed - length of desired input

inputValidator

Copy URL
inputValidator: 

(input: string) => boolean

For inputunknown states - whether input is complete (input is passed as string)

nextState

Copy URL
nextState: 

IVRState

|

null

Next state to go - for noinput state type

nextStates

Copy URL
nextStates: 

{[name: string]: IVRState}

For select type, map of IVR states to go to according to user input. If there is no next state for specific input, onInutComplete is invoked

prompt

Copy URL
prompt: 

IVRPrompt

Prompt settings object

terminateOn

Copy URL
terminateOn: 

string

When this digit is entered in inputunknown mode, input is considered to be complete

timeout

Copy URL
timeout: 

number

Timeout in milliseconds for user input. The default value is 5000 ms

type

Copy URL
type: 

string

Menu type. Possible values: select, inputfixed, inputunknown, noinput