Click or drag to resize
RecordFileCommand Class
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.
Inheritance Hierarchy

Namespace: AsterNET.FastAGI.Command
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class RecordFileCommand : AGICommand

The RecordFileCommand type exposes the following members.

Constructors
  NameDescription
Public methodRecordFileCommand(String, String, String, Int32)
Creates a new RecordFileCommand.
Public methodRecordFileCommand(String, String, String, Int32, Int32, Boolean, Int32)
Creates a new RecordFileCommand.
Top
Methods
  NameDescription
Public methodBuildCommand (Overrides AGICommandBuildCommand.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodEscapeAndQuote (Inherited from AGICommand.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Inherited from AGICommand.)
Top
Properties
  NameDescription
Public propertyBeep
Get/Set true if a beep should be played before recording. false if not.
Public propertyEscapeDigits
Get/Set the digits that allow the user to end recording.
Public propertyFile
Get/Set the name of the file to stream.
Public propertyFormat
Get/Set the format of the file to be recorded, for example "wav".
Public propertyOffset
Get/Set the offset samples to skip.
Public propertyTimeout
Get/Set the maximum record time in milliseconds, or -1 for no timeout.
Top
See Also