#include <vpblid.h>
Inheritance diagram for OpalVpbDevice:
Public Member Functions | |
OpalVpbDevice () | |
~OpalVpbDevice () | |
virtual BOOL | Open (const PString &device) |
virtual BOOL | Close () |
virtual PString | GetName () const |
virtual unsigned | GetLineCount () |
virtual BOOL | IsLineOffHook (unsigned line) |
virtual BOOL | SetLineOffHook (unsigned line, BOOL newState=TRUE) |
virtual BOOL | IsLineRinging (unsigned line, DWORD *cadence=NULL) |
virtual BOOL | IsLineDisconnected (unsigned line, BOOL checkForWink=TRUE) |
virtual OpalMediaFormat::List | GetMediaFormats () const |
virtual BOOL | SetReadFormat (unsigned line, const OpalMediaFormat &mediaFormat) |
virtual BOOL | SetWriteFormat (unsigned line, const OpalMediaFormat &mediaFormat) |
virtual OpalMediaFormat | GetReadFormat (unsigned line) |
virtual OpalMediaFormat | GetWriteFormat (unsigned line) |
virtual BOOL | StopReadCodec (unsigned line) |
virtual BOOL | StopWriteCodec (unsigned line) |
virtual BOOL | SetReadFrameSize (unsigned line, PINDEX frameSize) |
virtual BOOL | SetWriteFrameSize (unsigned line, PINDEX frameSize) |
virtual PINDEX | GetReadFrameSize (unsigned line) |
virtual PINDEX | GetWriteFrameSize (unsigned line) |
virtual BOOL | ReadFrame (unsigned line, void *buf, PINDEX &count) |
virtual BOOL | WriteFrame (unsigned line, const void *buf, PINDEX count, PINDEX &written) |
virtual BOOL | SetRecordVolume (unsigned line, unsigned volume) |
virtual BOOL | SetPlayVolume (unsigned line, unsigned volume) |
int | GetOSHandle (unsigned line) |
virtual char | ReadDTMF (unsigned line) |
virtual BOOL | PlayDTMF (unsigned line, const char *digits, DWORD onTime=90, DWORD offTime=30) |
virtual unsigned | IsToneDetected (unsigned line) |
virtual BOOL | PlayTone (unsigned line, CallProgressTones tone) |
virtual BOOL | StopTone (unsigned line) |
virtual BOOL | PlayAudio (unsigned line, const PString &filename) |
virtual BOOL | StopAudio (unsigned line) |
Protected Types | |
enum | { MaxLineCount = 8 } |
Protected Attributes | |
unsigned | cardNumber |
unsigned | lineCount |
OpalVpbDevice::LineState | lineState [MaxLineCount] |
Classes | |
struct | LineState |
|
|
|
Create a new, closed, device for a VPB card. |
|
Destroy line interface device. This calls Close() on the device. |
|
Close the device. Reimplemented from OpalLineInterfaceDevice. |
|
Get the total number of lines supported by this device. Implements OpalLineInterfaceDevice. |
|
Get the media formats this device is capable of using. Implements OpalLineInterfaceDevice. |
|
Get the device name. Implements OpalLineInterfaceDevice. |
|
Return line handle
|
|
Get the media format (codec) for reading on the specified line.
Implements OpalLineInterfaceDevice. |
|
Get the read frame size in bytes. All calls to ReadFrame() will return this number of bytes.
Implements OpalLineInterfaceDevice. |
|
Get the media format (codec) for writing on the specified line.
Implements OpalLineInterfaceDevice. |
|
Get the write frame size in bytes. All calls to WriteFrame() must be this number of bytes.
Implements OpalLineInterfaceDevice. |
|
Determine if line has been disconnected from a call. return TRUE if a tone is detected.
Reimplemented from OpalLineInterfaceDevice. |
|
Determine if line is currently off hook. This returns TRUE if GetLineState() is a state that implies the line is off hook (eg OffHook or LineBusy).
Implements OpalLineInterfaceDevice. |
|
Determine if line is ringing.
Reimplemented from OpalLineInterfaceDevice. |
|
See if a tone is detected.
Reimplemented from OpalLineInterfaceDevice. |
|
Open the device.
Implements OpalLineInterfaceDevice. |
|
Play a wav file
Reimplemented from OpalLineInterfaceDevice. |
|
Play a DTMF digit. Any characters that are not in the set 0-9, A-D, * or # will be ignored.
Reimplemented from OpalLineInterfaceDevice. |
|
Play a tone.
Reimplemented from OpalLineInterfaceDevice. |
|
Read a DTMF digit detected. This may be characters from the set 0-9, A-D, * or #. A null ('') character indicates that there are no tones in the queue.
Reimplemented from OpalLineInterfaceDevice. |
|
Low level read of a frame from the device.
Implements OpalLineInterfaceDevice. |
|
Set the state of the line. Note that not be possible on a given line.
Implements OpalLineInterfaceDevice. |
|
Set volume level for playing. A value of 100 is the maximum volume possible for the hardware. A value of 0 is the minimum volume possible for the hardware.
Reimplemented from OpalLineInterfaceDevice. |
|
Set the codec for reading.
Implements OpalLineInterfaceDevice. |
|
Set the read frame size in bytes. Note that a LID may ignore this value so always use GetReadFrameSize() for I/O.
Reimplemented from OpalLineInterfaceDevice. |
|
Set volume level for recording. A value of 100 is the maximum volume possible for the hardware. A value of 0 is the minimum volume possible for the hardware.
Reimplemented from OpalLineInterfaceDevice. |
|
Set the codec for writing.
Implements OpalLineInterfaceDevice. |
|
Set the write frame size in bytes. Note that a LID may ignore this value so always use GetReadFrameSize() for I/O.
Reimplemented from OpalLineInterfaceDevice. |
|
Stop playing the Wave File
Reimplemented from OpalLineInterfaceDevice. |
|
Stop the read codec.
Reimplemented from OpalLineInterfaceDevice. |
|
Stop playing a tone.
Reimplemented from OpalLineInterfaceDevice. |
|
Stop the write codec.
Reimplemented from OpalLineInterfaceDevice. |
|
Low level write frame to the device.
Implements OpalLineInterfaceDevice. |
|
|
|
|
|
|