AsterNet Class Library (Sandcastle documentation)

| AGIScript RecordFile Method

Overload List

| Name | Description
--- | --- | ---

RecordFile(String, String, String, Int32)

Record to a file until a given dtmf digit in the sequence is received.
Returns -1 on hangup or error.
The format will specify what kind of file will be recorded. The timeout is the maximum record time in milliseconds, or -1 for no timeout. Offset samples is optional, and if provided will seek to the offset without exceeding the end of the file. "maxSilence" is the number of seconds of maxSilence allowed before the function returns despite the lack of dtmf digits or reaching timeout.

RecordFile(String, String, String, Int32, Int32, Boolean, Int32)

Record to a file until a given dtmf digit in the sequence is received.
Returns -1 on hangup or error.
The format will specify what kind of file will be recorded. The timeout is the maximum record time in milliseconds, or -1 for no timeout. Offset samples is optional, and if provided will seek to the offset without exceeding the end of the file. "maxSilence" is the number of seconds of maxSilence allowed before the function returns despite the lack of dtmf digits or reaching timeout.

Top
See Also

#### Reference

AGIScript Class
AsterNET.FastAGI Namespace