OpalPluginLID Class Reference

#include <lidpluginmgr.h>

Inheritance diagram for OpalPluginLID:

OpalLineInterfaceDevice List of all members.

Public Member Functions

 OpalPluginLID (const PluginLID_Definition &definition)
 ~OpalPluginLID ()
virtual BOOL Open (const PString &device)
virtual BOOL Close ()
virtual PString GetDeviceType () const
virtual PString GetDeviceName () const
virtual PStringArray GetAllNames () const
virtual PString GetDescription () const
virtual unsigned GetLineCount ()
virtual BOOL IsLineTerminal (unsigned line)
virtual BOOL IsLinePresent (unsigned line, BOOL force=FALSE)
virtual BOOL IsLineOffHook (unsigned line)
virtual BOOL SetLineOffHook (unsigned line, BOOL newState=TRUE)
virtual BOOL HookFlash (unsigned line, unsigned flashTime=200)
virtual BOOL HasHookFlash (unsigned line)
virtual BOOL IsLineRinging (unsigned line, DWORD *cadence=NULL)
virtual BOOL RingLine (unsigned line, PINDEX nCadence, const unsigned *pattern=NULL, unsigned frequency=400)
virtual BOOL IsLineDisconnected (unsigned line, BOOL checkForWink=TRUE)
virtual BOOL SetLineToLineDirect (unsigned line1, unsigned line2, BOOL connect)
virtual BOOL IsLineToLineDirect (unsigned line1, unsigned line2)
virtual OpalMediaFormatList 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 StopReading (unsigned line)
virtual BOOL StopWriting (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 unsigned GetAverageSignalLevel (unsigned line, BOOL playback)
virtual BOOL EnableAudio (unsigned line, BOOL enable=TRUE)
virtual BOOL IsAudioEnabled (unsigned line)
virtual BOOL SetRecordVolume (unsigned line, unsigned volume)
virtual BOOL SetPlayVolume (unsigned line, unsigned volume)
virtual BOOL GetRecordVolume (unsigned line, unsigned &volume)
virtual BOOL GetPlayVolume (unsigned line, unsigned &volume)
virtual AECLevels GetAEC (unsigned line)
virtual BOOL SetAEC (unsigned line, AECLevels level)
virtual BOOL GetVAD (unsigned line)
virtual BOOL SetVAD (unsigned line, BOOL enable)
virtual BOOL GetCallerID (unsigned line, PString &idString, BOOL full=FALSE)
virtual BOOL SetCallerID (unsigned line, const PString &idString)
virtual BOOL SendCallerIDOnCallWaiting (unsigned line, const PString &idString)
virtual BOOL SendVisualMessageWaitingIndicator (unsigned line, BOOL on)
virtual BOOL PlayDTMF (unsigned line, const char *digits, DWORD onTime=DefaultDTMFOnTime, DWORD offTime=DefaultDTMFOffTime)
virtual char ReadDTMF (unsigned line)
virtual BOOL GetRemoveDTMF (unsigned line)
virtual BOOL SetRemoveDTMF (unsigned line, BOOL removeTones)
virtual CallProgressTones IsToneDetected (unsigned line)
virtual CallProgressTones WaitForToneDetect (unsigned line, unsigned timeout=3000)
virtual BOOL WaitForTone (unsigned line, CallProgressTones tone, unsigned timeout=3000)
virtual BOOL SetToneFilterParameters (unsigned line, CallProgressTones tone, unsigned lowFrequency, unsigned highFrequency, PINDEX numCadences, const unsigned *onTimes, const unsigned *offTimes)
virtual BOOL PlayTone (unsigned line, CallProgressTones tone)
virtual BOOL IsTonePlaying (unsigned line)
virtual BOOL StopTone (unsigned line)
virtual CallProgressTones DialOut (unsigned line, const PString &number, BOOL requireTones=FALSE, unsigned uiDialDelay=0)
virtual unsigned GetWinkDuration (unsigned line)
virtual BOOL SetWinkDuration (unsigned line, unsigned winkDuration)
virtual BOOL SetCountryCode (T35CountryCodes country)
virtual PStringList GetCountryCodeNameList () const

Protected Member Functions

 PDECLARE_NOTIFIER (PThread, OpalPluginLID, TonePlayer)

Protected Attributes

const PluginLID_Definitionm_definition
void * m_context
PString m_deviceName
PSoundChannel m_recorder
PSoundChannel m_player
PThread * m_tonePlayer
PSyncPoint m_stopTone

Constructor & Destructor Documentation

OpalPluginLID::OpalPluginLID ( const PluginLID_Definition definition  ) 

OpalPluginLID::~OpalPluginLID (  ) 


Member Function Documentation

virtual BOOL OpalPluginLID::Open ( const PString &  device  )  [virtual]

Open the line interface device.

Parameters:
device  Device identifier name.

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::Close (  )  [virtual]

Close the line interface device.

Reimplemented from OpalLineInterfaceDevice.

virtual PString OpalPluginLID::GetDeviceType (  )  const [virtual]

Get the device type identifier. This is as is used in the factory registration.

Implements OpalLineInterfaceDevice.

virtual PString OpalPluginLID::GetDeviceName (  )  const [virtual]

Get the device name, as used to open the device. Note the format of this name should be as is returned from GetAllName() and must be able to be used in a subsequent Open() call.

Implements OpalLineInterfaceDevice.

virtual PStringArray OpalPluginLID::GetAllNames (  )  const [virtual]

Get all the possible devices that can be opened.

Implements OpalLineInterfaceDevice.

virtual PString OpalPluginLID::GetDescription (  )  const [virtual]

Get the description of the line interface device. This is a string indication of the card type for user interface display purposes or device specific control. The device should be as detailed as possible eg "Quicknet LineJACK".

Implements OpalLineInterfaceDevice.

virtual unsigned OpalPluginLID::GetLineCount (  )  [virtual]

Get the total number of lines supported by this device.

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsLineTerminal ( unsigned  line  )  [virtual]

Get the type of the line. A "terminal" line is one where a call may terminate. For example a POTS line with a standard telephone handset on it would be a terminal line. The alternative is a "network" line, that is one connected to switched network eg the standard PSTN.

Parameters:
line  Number of line

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsLinePresent ( unsigned  line,
BOOL  force = FALSE 
) [virtual]

Determine if a physical line is present on the logical line.

Parameters:
line  Number of line
force  Force test, do not optimise

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsLineOffHook ( unsigned  line  )  [virtual]

Determine if line is currently off hook. This function implies that the state is debounced and that a return value of TRUE indicates that the phone is really off hook. That is hook flashes and winks are masked out.

Parameters:
line  Number of line

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetLineOffHook ( unsigned  line,
BOOL  newState = TRUE 
) [virtual]

Set the hook state of the line. Note that not be possible on a given line, for example a POTS line with a standard telephone handset. The hook state is determined by external hardware and cannot be changed by the software.

Parameters:
line  Number of line
newState  New state to set

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::HookFlash ( unsigned  line,
unsigned  flashTime = 200 
) [virtual]

Set the hook state off then straight back on again. This will only operate if the line is currently off hook.

Parameters:
line  Number of line
flashTime  Time for hook flash in milliseconds

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::HasHookFlash ( unsigned  line  )  [virtual]

Return TRUE if a hook flash has been detected

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsLineRinging ( unsigned  line,
DWORD *  cadence = NULL 
) [virtual]

Determine if line is ringing. This function implies that the state is "debounced" and that a return value of TRUE indicates that the phone is still ringing and it is not simply a pause in the ring cadence.

If cadence is not NULL then it is set with the bit pattern for the incoming ringing. Note that in this case the funtion may take a full sequence to return. If it is NULL it can be assumed that the function will return quickly.

Parameters:
line  Number of line
cadence  Cadence of incoming ring

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::RingLine ( unsigned  line,
PINDEX  nCadence,
const unsigned *  pattern = NULL,
unsigned  frequency = 400 
) [virtual]

Begin ringing local phone set with specified cadence. If nCadence is zero then stops ringing.

Note that not be possible on a given line, for example on a PSTN line the ring state is determined by external hardware and cannot be changed by the software.

Also note that the cadence may be ignored by particular hardware driver so that only the zero or non-zero values are significant.

The ring pattern is an array of millisecond times for on and off parts of the cadence. Thus the Australian ring cadence would be represented by the array unsigned AusRing[] = { 400, 200, 400, 2000 }

Parameters:
line  Number of line
nCadence  Number of entries in cadence array
pattern  Ring pattern times
frequency  Frequency of ring (if relevant)

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsLineDisconnected ( unsigned  line,
BOOL  checkForWink = TRUE 
) [virtual]

Determine if line has been disconnected from a call. This uses the hardware (and country) dependent means for determining if the remote end of a PSTN connection has hung up.

For a POTS port this is equivalent to !IsLineOffHook().

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetLineToLineDirect ( unsigned  line1,
unsigned  line2,
BOOL  connect 
) [virtual]

Directly connect the two lines.

Parameters:
line1  Number of first line
line2  Number of second line
connect  Flag for connect/disconnect

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsLineToLineDirect ( unsigned  line1,
unsigned  line2 
) [virtual]

Determine if the two lines are directly connected.

Parameters:
line1  Number of first line
line2  Number of second line

Reimplemented from OpalLineInterfaceDevice.

virtual OpalMediaFormatList OpalPluginLID::GetMediaFormats (  )  const [virtual]

Get the media formats this device is capable of using.

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetReadFormat ( unsigned  line,
const OpalMediaFormat mediaFormat 
) [virtual]

Set the media format (codec) for reading on the specified line.

Parameters:
line  Number of line
mediaFormat  Codec type

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetWriteFormat ( unsigned  line,
const OpalMediaFormat mediaFormat 
) [virtual]

Set the media format (codec) for writing on the specified line.

Parameters:
line  Number of line
mediaFormat  Codec type

Implements OpalLineInterfaceDevice.

virtual OpalMediaFormat OpalPluginLID::GetReadFormat ( unsigned  line  )  [virtual]

Get the media format (codec) for reading on the specified line.

Parameters:
line  Number of line

Implements OpalLineInterfaceDevice.

virtual OpalMediaFormat OpalPluginLID::GetWriteFormat ( unsigned  line  )  [virtual]

Get the media format (codec) for writing on the specified line.

Parameters:
line  Number of line

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::StopReading ( unsigned  line  )  [virtual]

Stop the read codec.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::StopWriting ( unsigned  line  )  [virtual]

Stop the write codec.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetReadFrameSize ( unsigned  line,
PINDEX  frameSize 
) [virtual]

Set the read frame size in bytes. Note that a LID may ignore this value so always use GetReadFrameSize() for I/O.

Parameters:
line  Number of line
frameSize  New frame size

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetWriteFrameSize ( unsigned  line,
PINDEX  frameSize 
) [virtual]

Set the write frame size in bytes. Note that a LID may ignore this value so always use GetReadFrameSize() for I/O.

Parameters:
line  Number of line
frameSize  New frame size

Implements OpalLineInterfaceDevice.

virtual PINDEX OpalPluginLID::GetReadFrameSize ( unsigned  line  )  [virtual]

Get the read frame size in bytes. All calls to ReadFrame() will return this number of bytes.

Parameters:
line  Number of line

Implements OpalLineInterfaceDevice.

virtual PINDEX OpalPluginLID::GetWriteFrameSize ( unsigned  line  )  [virtual]

Get the write frame size in bytes. All calls to WriteFrame() must be this number of bytes.

Parameters:
line  Number of line

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::ReadFrame ( unsigned  line,
void *  buf,
PINDEX &  count 
) [virtual]

Low level read of a frame from the device.

Parameters:
line  Number of line
buf  Pointer to a block of memory to receive data.
count  Number of bytes read, <= GetReadFrameSize()

Implements OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::WriteFrame ( unsigned  line,
const void *  buf,
PINDEX  count,
PINDEX &  written 
) [virtual]

Low level write frame to the device.

Parameters:
line  Number of line
buf  Pointer to a block of memory to write.
count  Number of bytes to write, <= GetWriteFrameSize()
written  Number of bytes written, <= GetWriteFrameSize()

Implements OpalLineInterfaceDevice.

virtual unsigned OpalPluginLID::GetAverageSignalLevel ( unsigned  line,
BOOL  playback 
) [virtual]

Get average signal level in last frame.

Parameters:
line  Number of line
playback  Get average playback or record level.

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::EnableAudio ( unsigned  line,
BOOL  enable = TRUE 
) [virtual]

Enable audio for the line.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsAudioEnabled ( unsigned  line  )  [virtual]

Determine if audio for the line is enabled.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetRecordVolume ( unsigned  line,
unsigned  volume 
) [virtual]

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.

Parameters:
line  Number of line
volume  Volume level from 0 to 100%

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetPlayVolume ( unsigned  line,
unsigned  volume 
) [virtual]

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.

Parameters:
line  Number of line
volume  Volume level from 0 to 100%

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::GetRecordVolume ( unsigned  line,
unsigned &  volume 
) [virtual]

Get 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.

Parameters:
line  Number of line
volume  Volume level from 0 to 100%

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::GetPlayVolume ( unsigned  line,
unsigned &  volume 
) [virtual]

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.

Parameters:
line  Number of line
volume  Volume level from 0 to 100%

Reimplemented from OpalLineInterfaceDevice.

virtual AECLevels OpalPluginLID::GetAEC ( unsigned  line  )  [virtual]

Get acoustic echo cancellation. Note, not all devices may support this function.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetAEC ( unsigned  line,
AECLevels  level 
) [virtual]

Set acoustic echo cancellation. Note, not all devices may support this function.

Parameters:
line  Number of line
level  AEC level

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::GetVAD ( unsigned  line  )  [virtual]

Get voice activity detection. Note, not all devices, or selected codecs, may support this function.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetVAD ( unsigned  line,
BOOL  enable 
) [virtual]

Set voice activity detection. Note, not all devices, or selected codecs, may support this function.

Parameters:
line  Number of line
enable  Flag for enabling VAD

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::GetCallerID ( unsigned  line,
PString &  idString,
BOOL  full = FALSE 
) [virtual]

Get Caller ID from the last incoming ring. The idString parameter is either simply the "number" field of the caller ID data, or if full is TRUE, all of the fields in the caller ID data.

The full data of the caller ID string consists of the number field, the time/date and the name field separated by tabs ('').

Parameters:
line  Number of line
idString  ID string returned
full  Get full information in idString

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetCallerID ( unsigned  line,
const PString &  idString 
) [virtual]

Set Caller ID for use in next RingLine() call. The full data of the caller ID string consists of the number field, the time/date and the name field separated by tabs ('').

If the date field is missing (two consecutive tabs) then the current time and date is used. Using an empty string will clear the caller ID so that no caller ID is sent on the next RingLine() call.

Parameters:
line  Number of line
idString  ID string to use

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SendCallerIDOnCallWaiting ( unsigned  line,
const PString &  idString 
) [virtual]

Send a Caller ID on call waiting command The full data of the caller ID string consists of the number field, the time/date and the name field separated by tabs ('').

If the date field is missing (two consecutive tabs) then the current time and date is used. Using an empty string will clear the caller ID so that no caller ID is sent on the next RingLine() call.

Parameters:
line  Number of line
idString  ID string to use

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SendVisualMessageWaitingIndicator ( unsigned  line,
BOOL  on 
) [virtual]

Send a Visual Message Waiting Indicator

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::PlayDTMF ( unsigned  line,
const char *  digits,
DWORD  onTime = DefaultDTMFOnTime,
DWORD  offTime = DefaultDTMFOffTime 
) [virtual]

Play a DTMF digit. Any characters that are not in the set 0-9, A-D, * or # will be ignored.

Parameters:
line  Number of line
digits  DTMF digits to be played
onTime  Number of milliseconds to play each DTMF digit
offTime  Number of milliseconds between digits

Reimplemented from OpalLineInterfaceDevice.

virtual char OpalPluginLID::ReadDTMF ( unsigned  line  )  [virtual]

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. Characters E through P indicate the following tones:

E = 800 F = 1000 G = 1250 H = 950 I = 1100 J = 1400 K = 1500 L = 1600 M = 1800 N = 2100 O = 1300 P = 2450

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::GetRemoveDTMF ( unsigned  line  )  [virtual]

Get DTMF removal mode. When set in this mode the DTMF tones detected are removed from the encoded data stream as returned by ReadFrame().

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetRemoveDTMF ( unsigned  line,
BOOL  removeTones 
) [virtual]

Set DTMF removal mode. When set in this mode the DTMF tones detected are removed from the encoded data stream as returned by ReadFrame().

Parameters:
line  Number of line
removeTones  Flag for removing DTMF tones.

Reimplemented from OpalLineInterfaceDevice.

virtual CallProgressTones OpalPluginLID::IsToneDetected ( unsigned  line  )  [virtual]

See if any tone is detected.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual CallProgressTones OpalPluginLID::WaitForToneDetect ( unsigned  line,
unsigned  timeout = 3000 
) [virtual]

See if any tone is detected.

Parameters:
line  Number of line
timeout  Milliseconds to wait for

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::WaitForTone ( unsigned  line,
CallProgressTones  tone,
unsigned  timeout = 3000 
) [virtual]

See if a specific tone is detected.

Parameters:
line  Number of line
tone  Tone to wait for
timeout  Milliseconds to wait for

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetToneFilterParameters ( unsigned  line,
CallProgressTones  tone,
unsigned  lowFrequency,
unsigned  highFrequency,
PINDEX  numCadences,
const unsigned *  onTimes,
const unsigned *  offTimes 
) [virtual]

Set a tones filter information.

Parameters:
line  Number of line
tone  Tone filter to change
lowFrequency  Low frequency
highFrequency  High frequency
numCadences  Number of cadence times
onTimes  Cadence ON times
offTimes  Cadence OFF times

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::PlayTone ( unsigned  line,
CallProgressTones  tone 
) [virtual]

Play a tone.

Parameters:
line  Number of line
tone  Tone to be played

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::IsTonePlaying ( unsigned  line  )  [virtual]

Determine if a tone is still playing

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::StopTone ( unsigned  line  )  [virtual]

Stop playing a tone.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual CallProgressTones OpalPluginLID::DialOut ( unsigned  line,
const PString &  number,
BOOL  requireTones = FALSE,
unsigned  uiDialDelay = 0 
) [virtual]

Dial a number on network line. The takes the line off hook, waits for dial tone, and transmits the specified number as DTMF tones.

If the requireTones flag is TRUE the call is aborted of the call progress tones are not detected. Otherwise the call proceeds with short delays while it tries to detect the call progress tones.

The return code indicates the following: DialTone No dial tone detected RingTone Dial was successful BusyTone The remote phone was busy ClearTone Dial failed (usually means rang out) NoTone There was an internal error making the call

Parameters:
line  Number of line
number  Number to dial
requireTones  Require dial/ring tone to be detected
uiDialDelay  time in msec to wait between the dial tone detection and dialing the dtmf

Reimplemented from OpalLineInterfaceDevice.

virtual unsigned OpalPluginLID::GetWinkDuration ( unsigned  line  )  [virtual]

Get wink detect minimum duration. This is the signal used by telcos to end PSTN call.

Parameters:
line  Number of line

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetWinkDuration ( unsigned  line,
unsigned  winkDuration 
) [virtual]

Set wink detect minimum duration. This is the signal used by telcos to end PSTN call.

Parameters:
line  Number of line
winkDuration  New minimum duration

Reimplemented from OpalLineInterfaceDevice.

virtual BOOL OpalPluginLID::SetCountryCode ( T35CountryCodes  country  )  [virtual]

Set the country code set for the device. This may change the line analogue coefficients, ring detect, call disconnect detect and call progress tones to fit the countries telephone network.

Parameters:
country  COuntry code for device

Reimplemented from OpalLineInterfaceDevice.

virtual PStringList OpalPluginLID::GetCountryCodeNameList (  )  const [virtual]

Get the list of countries actually supported by the device

Reimplemented from OpalLineInterfaceDevice.

OpalPluginLID::PDECLARE_NOTIFIER ( PThread  ,
OpalPluginLID  ,
TonePlayer   
) [protected]


Member Data Documentation

const PluginLID_Definition& OpalPluginLID::m_definition [protected]

void* OpalPluginLID::m_context [protected]

PString OpalPluginLID::m_deviceName [protected]

PSoundChannel OpalPluginLID::m_recorder [protected]

PSoundChannel OpalPluginLID::m_player [protected]

PThread* OpalPluginLID::m_tonePlayer [protected]

PSyncPoint OpalPluginLID::m_stopTone [protected]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:34:05 2008 for OPAL by  doxygen 1.5.1