AsterNet Class Library (Sandcastle documentation)
AsterNet Class Library (Sandcastle documentation)
AsterNET.FastAGI
AGIScript Class
AGIScript Methods
ControlStreamFile Method
ControlStreamFile Method (String)
ControlStreamFile Method (String, String)
ControlStreamFile Method (String, String, Int32)
ControlStreamFile Method (String, String, Int32, String, String, String)

| AGIScript ControlStreamFile Method

Overload List

| Name | Description
--- | --- | ---
| ControlStreamFile(String) | Plays the given file, allowing playback to be interrupted by the given digits, if any, and allows the listner to control the stream. If offset is provided then the audio will seek to sample offset before play starts. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected. Remember, the file extension must not be included in the filename. Available since Asterisk 1.2
| ControlStreamFile(String, String) | Plays the given file, allowing playback to be interrupted by the given digits, if any, and allows the listner to control the stream. If offset is provided then the audio will seek to sample offset before play starts. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected. Remember, the file extension must not be included in the filename. Available since Asterisk 1.2
| ControlStreamFile(String, String, Int32) | Plays the given file, allowing playback to be interrupted by the given digits, if any, and allows the listner to control the stream. If offset is provided then the audio will seek to sample offset before play starts. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected. Remember, the file extension must not be included in the filename. Available since Asterisk 1.2
| ControlStreamFile(String, String, Int32, String, String, String) | Plays the given file, allowing playback to be interrupted by the given digits, if any, and allows the listner to control the stream. If offset is provided then the audio will seek to sample offset before play starts. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected. Remember, the file extension must not be included in the filename. Available since Asterisk 1.2

Top
See Also

#### Reference

AGIScript Class
AsterNET.FastAGI Namespace