Click or drag to resize
AGIScriptGetOption Method (String, String)
Plays the given file, and waits for the user to press one of the given digits. If none of the esacpe digits is pressed while streaming the file it waits for the default timeout of 5 seconds still waiting for the user to press a digit.

Namespace: AsterNET.FastAGI
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
protected char GetOption(
	string file,
	string escapeDigits
)

Parameters

file
Type: SystemString
the name of the file to stream, must not include extension.
escapeDigits
Type: SystemString
contains the digits that the user is expected to press.

Return Value

Type: Char
the DTMF digit pressed or 0x0 if none was pressed.
See Also