Click or drag to resize
AGIScriptGetData Method (String, Int64)
Plays the given file and waits for the user to enter DTMF digits until he presses '#' or the timeout occurs. The user may interrupt the streaming by starting to enter digits.

Namespace: AsterNET.FastAGI
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
protected string GetData(
	string file,
	long timeout
)

Parameters

file
Type: SystemString
the name of the file to play
timeout
Type: SystemInt64
the timeout in milliseconds to wait for user input.
0 means standard timeout value, -1 means "ludicrous time" (essentially never times out).

Return Value

Type: String
a String containing the DTMF the user entered
See Also