lid.h
Go to the documentation of this file.
/*
* lid.h
*
* Line Interface Device
*
* Open Phone Abstraction Library
*
* Copyright (c) 1999-2001 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Open H323 Library.
*
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
*
* Portions of this code were written with the assisance of funding from
* Quicknet Technologies, Inc. http://www.quicknet.net.
*
* Contributor(s): ______________________________________.
*
* $Revision: 24178 $
* $Author: rjongbloed $
* $Date: 2010-04-05 19:10:56 -0500 (Mon, 05 Apr 2010) $
*/
#ifndef OPAL_LIDS_LID_H
#define OPAL_LIDS_LID_H
#ifdef P_USE_PRAGMA
#pragma interface
#endif
#include <opal/buildopts.h>
#include <opal/mediafmt.h>
class OpalLineInterfaceDevice : public PObject
{
PCLASSINFO(OpalLineInterfaceDevice, PObject);
public:
OpalLineInterfaceDevice();
virtual PBoolean Open(
const PString & device
) = 0;
virtual PBoolean IsOpen() const;
virtual PBoolean Close();
virtual PString GetDeviceType() const = 0;
virtual PString GetDeviceName() const = 0;
virtual PStringArray GetAllNames() const = 0;
virtual PString GetDescription() const = 0;
virtual unsigned GetLineCount() const = 0;
virtual PBoolean IsLineTerminal(
unsigned line
) = 0;
virtual PBoolean IsLinePresent(
unsigned line,
PBoolean force = false
);
virtual PBoolean IsLineOffHook(
unsigned line
) = 0;
virtual PBoolean SetLineOffHook(
unsigned line,
PBoolean newState = true
) = 0;
virtual PBoolean SetLineOnHook(
unsigned line
) { return SetLineOffHook(line, false); }
virtual PBoolean HookFlash(
unsigned line,
unsigned flashTime = 200
);
virtual PBoolean HasHookFlash(unsigned line);
virtual PBoolean IsLineRinging(
unsigned line,
DWORD * cadence = NULL
);
virtual PBoolean RingLine(
unsigned line,
PINDEX nCadence,
const unsigned * pattern = NULL,
unsigned frequency = 400
);
virtual PBoolean SetLineConnected(
unsigned line
);
virtual PBoolean IsLineConnected(
unsigned line
);
virtual PBoolean IsLineDisconnected(
unsigned line,
PBoolean checkForWink = true
);
virtual PBoolean SetLineToLineDirect(
unsigned line1,
unsigned line2,
PBoolean connect
);
virtual PBoolean IsLineToLineDirect(
unsigned line1,
unsigned line2
);
virtual OpalMediaFormatList GetMediaFormats() const = 0;
virtual PBoolean SetReadFormat(
unsigned line,
const OpalMediaFormat & mediaFormat
) = 0;
virtual PBoolean SetWriteFormat(
unsigned line,
const OpalMediaFormat & mediaFormat
) = 0;
virtual OpalMediaFormat GetReadFormat(
unsigned line
) = 0;
virtual OpalMediaFormat GetWriteFormat(
unsigned line
) = 0;
virtual PBoolean StopReading(
unsigned line
);
virtual PBoolean StopWriting(
unsigned line
);
virtual bool UsesRTP() const;
virtual PBoolean SetReadFrameSize(
unsigned line,
PINDEX frameSize
);
virtual PBoolean SetWriteFrameSize(
unsigned line,
PINDEX frameSize
);
virtual PINDEX GetReadFrameSize(
unsigned line
);
virtual PINDEX GetWriteFrameSize(
unsigned line
);
virtual PBoolean ReadFrame(
unsigned line,
void * buf,
PINDEX & count
) = 0;
virtual PBoolean WriteFrame(
unsigned line,
const void * buf,
PINDEX count,
PINDEX & written
) = 0;
virtual PBoolean ReadBlock(
unsigned line,
void * buf,
PINDEX count
);
virtual PBoolean WriteBlock(
unsigned line,
const void * buf,
PINDEX count
);
virtual unsigned GetAverageSignalLevel(
unsigned line,
PBoolean playback
);
virtual PBoolean EnableAudio(
unsigned line,
PBoolean enable = true
);
PBoolean DisableAudio(
unsigned line
) { return EnableAudio(line, false); }
virtual PBoolean IsAudioEnabled(
unsigned line
) const;
enum {
MaxVolume = 100
};
virtual PBoolean SetRecordVolume(
unsigned line,
unsigned volume
);
virtual PBoolean SetPlayVolume(
unsigned line,
unsigned volume
);
virtual PBoolean GetRecordVolume(
unsigned line,
unsigned & volume
);
virtual PBoolean GetPlayVolume(
unsigned line,
unsigned & volume
);
enum AECLevels {
AECOff,
AECLow,
AECMedium,
AECHigh,
AECAuto,
AECAGC,
AECError
};
virtual AECLevels GetAEC(
unsigned line
) const;
virtual PBoolean SetAEC(
unsigned line,
AECLevels level
);
virtual PBoolean GetVAD(
unsigned line
) const;
virtual PBoolean SetVAD(
unsigned line,
PBoolean enable
);
virtual PBoolean GetCallerID(
unsigned line,
PString & idString,
PBoolean full = false
);
virtual PBoolean SetCallerID(
unsigned line,
const PString & idString
);
virtual PBoolean SendVisualMessageWaitingIndicator(
unsigned line,
PBoolean on
);
enum {
DefaultDTMFOnTime = 150,
DefaultDTMFOffTime = 50
};
virtual PBoolean PlayDTMF(
unsigned line,
const char * digits,
DWORD onTime = DefaultDTMFOnTime,
DWORD offTime = DefaultDTMFOffTime
);
virtual char ReadDTMF(
unsigned line
);
virtual PBoolean GetRemoveDTMF(
unsigned line
);
virtual PBoolean SetRemoveDTMF(
unsigned line,
PBoolean removeTones
);
enum CallProgressTones {
NoTone = -1, // indicates no tones
DialTone, // Dial tone
RingTone, // Ring indication tone
BusyTone, // Line engaged tone
CongestionTone,// aka fast busy tone
ClearTone, // Call failed/disconnected tone (often same as busy tone)
MwiTone, // Message Waiting Tone
RoutingTone, // Call is being routed (not normal for PSTN, but VoIP can take a while)
CNGTone, // Fax CNG tone
CEDTone, // Fax CED tone
UserDefinedTone,
NumTones
};
virtual CallProgressTones IsToneDetected(
unsigned line
);
virtual CallProgressTones WaitForToneDetect(
unsigned line,
unsigned timeout = 3000
);
virtual PBoolean WaitForTone(
unsigned line,
CallProgressTones tone,
unsigned timeout = 3000
);
virtual bool SetToneDescription(
unsigned line,
CallProgressTones tone,
const PString & description
);
enum ToneMixingModes {
SimpleTone,
AddedTone,
ModulatedTone
};
virtual bool SetToneParameters(
unsigned line,
CallProgressTones tone,
unsigned frequency1,
unsigned frequency2,
ToneMixingModes mode,
PINDEX numCadences,
const unsigned * onTimes,
const unsigned * offTimes
);
virtual PBoolean PlayTone(
unsigned line,
CallProgressTones tone
);
virtual PBoolean IsTonePlaying(
unsigned line
);
virtual PBoolean StopTone(
unsigned line
);
struct DialParams {
DialParams()
: m_requireTones(false)
, m_dialToneTimeout(2500)
, m_dialStartDelay(500)
, m_dialDigitTime(DefaultDTMFOnTime)
, m_dialInterDigitTime(DefaultDTMFOffTime)
, m_progressTimeout(5000)
, m_commaDelay(2000)
{ }
bool m_requireTones;
unsigned m_dialToneTimeout;
unsigned m_dialStartDelay;
unsigned m_dialDigitTime;
unsigned m_dialInterDigitTime;
unsigned m_progressTimeout;
unsigned m_commaDelay;
};
virtual CallProgressTones DialOut(
unsigned line,
const PString & number,
const DialParams & params = DialParams()
);
virtual unsigned GetWinkDuration(
unsigned line
);
virtual PBoolean SetWinkDuration(
unsigned line,
unsigned winkDuration
);
enum T35CountryCodes {
Japan, Albania, Algeria, AmericanSamoa, Germany, Anguilla, AntiguaAndBarbuda,
Argentina, Ascension, Australia, Austria, Bahamas, Bahrain, Bangladesh,
Barbados, Belgium, Belize, Benin, Bermudas, Bhutan, Bolivia, Botswana,
Brazil, BritishAntarcticTerritory, BritishIndianOceanTerritory,
BritishVirginIslands, BruneiDarussalam, Bulgaria, Myanmar, Burundi,
Byelorussia, Cameroon, Canada, CapeVerde, CaymanIslands,
CentralAfricanRepublic, Chad, Chile, China, Colombia, Comoros, Congo,
CookIslands, CostaRica, Cuba, Cyprus, Czechoslovakia, Cambodia,
DemocraticPeoplesRepublicOfKorea, Denmark, Djibouti, DominicanRepublic,
Dominica, Ecuador, Egypt, ElSalvador, EquatorialGuinea, Ethiopia,
FalklandIslands, Fiji, Finland, France, FrenchPolynesia,
FrenchSouthernAndAntarcticLands, Gabon, Gambia, Germany2, Angola, Ghana,
Gibraltar, Greece, Grenada, Guam, Guatemala, Guernsey, Guinea, GuineaBissau,
Guayana, Haiti, Honduras, Hongkong, Hungary, Iceland, India, Indonesia,
Iran, Iraq, Ireland, Israel, Italy, CotedIvoire, Jamaica, Afghanistan,
Jersey, Jordan, Kenya, Kiribati, KoreaRepublic, Kuwait, Lao, Lebanon,
Lesotho, Liberia, Libya, Liechtenstein, Luxemborg, Macao, Madagascar,
Malaysia, Malawi, Maldives, Mali, Malta, Mauritania, Mauritius, Mexico,
Monaco, Mongolia, Montserrat, Morocco, Mozambique, Nauru, Nepal,
Netherlands, NetherlandsAntilles, NewCaledonia, NewZealand, Nicaragua,
Niger, Nigeria, Norway, Oman, Pakistan, Panama, PapuaNewGuinea, Paraguay,
Peru, Philippines, Poland, Portugal, PuertoRico, Qatar, Romania, Rwanda,
SaintKittsAndNevis, SaintCroix, SaintHelenaAndAscension, SaintLucia,
SanMarino, SaintThomas, SaoTomeAndPrincipe, SaintVicentAndTheGrenadines,
SaudiArabia, Senegal, Seychelles, SierraLeone, Singapore, SolomonIslands,
Somalia, SouthAfrica, Spain, SriLanka, Sudan, Suriname, Swaziland, Sweden,
Switzerland, Syria, Tanzania, Thailand, Togo, Tonga, TrinidadAndTobago,
Tunisia, Turkey, TurksAndCaicosIslands, Tuvalu, Uganda, Ukraine,
UnitedArabEmirates, UnitedKingdom, UnitedStates, BurkinaFaso, Uruguay,
USSR, Vanuatu, VaticanCityState, Venezuela, VietNam, WallisAndFutuna,
WesternSamoa, Yemen, Yemen2, Yugoslavia, Zaire, Zambia, Zimbabwe,
NumCountryCodes,
UnknownCountry = -1
};
T35CountryCodes GetCountryCode() const { return countryCode; }
PString GetCountryCodeName() const;
static PString GetCountryCodeName(T35CountryCodes code);
static T35CountryCodes GetCountryCode(const PString & name);
virtual PBoolean SetCountryCode(
T35CountryCodes country
);
virtual PBoolean SetCountryCodeName(
const PString & countryName
);
virtual PStringList GetCountryCodeNameList() const;
virtual PBoolean PlayAudio(
unsigned line,
const PString & filename
);
virtual PBoolean StopAudio(
unsigned line
);
virtual PBoolean RecordAudioStart(
unsigned line,
const PString & filename
);
virtual PBoolean RecordAudioStop(
unsigned line
);
int GetErrorNumber() const { return osError; }
PString GetErrorText() const;
virtual void PrintOn(
ostream & strm
) const;
static OpalLineInterfaceDevice * Create(
const PString & type,
void * parameters = NULL
);
static OpalLineInterfaceDevice * CreateAndOpen(
const PString & descriptor,
void * parameters = NULL
);
static PStringList GetAllTypes();
static PStringList GetAllDevices();
protected:
int os_handle;
mutable int osError;
T35CountryCodes countryCode;
PBYTEArray m_readDeblockingBuffer, m_writeDeblockingBuffer;
PINDEX m_readDeblockingOffset, m_writeDeblockingOffset;
std::vector<bool> m_LineAudioEnabled;
PString m_callProgressTones[NumTones];
#if PTRACING
friend ostream & operator<<(ostream & o, CallProgressTones t);
#endif
};
PLIST(OpalLIDList, OpalLineInterfaceDevice);
class OpalLine : public PObject
{
PCLASSINFO(OpalLine, PObject);
public:
OpalLine(
OpalLineInterfaceDevice & device,
unsigned lineNumber,
const char * userToken = NULL
);
void PrintOn(
ostream & strm
) const;
virtual PBoolean IsTerminal() { return device.IsLineTerminal(lineNumber); }
virtual PBoolean IsPresent(
PBoolean force = false
) { return device.IsLinePresent(lineNumber, force); }
virtual PBoolean IsOffHook() { return device.IsLineOffHook(lineNumber); }
virtual PBoolean SetOffHook() { return device.SetLineOffHook(lineNumber, true); }
virtual PBoolean SetOnHook() { return device.SetLineOffHook(lineNumber, false); }
virtual PBoolean HookFlash(
unsigned flashTime = 200
) { return device.HookFlash(lineNumber, flashTime); }
virtual PBoolean HasHookFlash() { return device.HasHookFlash(lineNumber); }
virtual PBoolean IsRinging(
DWORD * cadence = NULL
);
virtual unsigned GetRingCount(
DWORD * cadence = NULL
);
virtual PBoolean Ring(
PINDEX nCadence,
const unsigned * pattern = NULL,
unsigned frequency = 400
) { return device.RingLine(lineNumber, nCadence, pattern, frequency); }
virtual PBoolean SetConnected() { return device.SetLineConnected(lineNumber); }
virtual PBoolean IsConnected() { return device.IsLineConnected(lineNumber); }
virtual PBoolean IsDisconnected() { return device.IsLineDisconnected(lineNumber); }
virtual PBoolean SetReadFormat(
const OpalMediaFormat & mediaFormat
) { return device.SetReadFormat(lineNumber, mediaFormat); }
virtual PBoolean SetWriteFormat(
const OpalMediaFormat & mediaFormat
) { return device.SetWriteFormat(lineNumber, mediaFormat); }
virtual OpalMediaFormat GetReadFormat() { return device.GetReadFormat(lineNumber); }
virtual OpalMediaFormat GetWriteFormat() { return device.GetWriteFormat(lineNumber); }
virtual PBoolean StopReading() { return device.StopReading(lineNumber); }
virtual PBoolean StopWriting() { return device.StopWriting(lineNumber); }
virtual PBoolean SetReadFrameSize(
PINDEX frameSize
) { return device.SetReadFrameSize(lineNumber, frameSize); }
virtual PBoolean SetWriteFrameSize(
PINDEX frameSize
) { return device.SetWriteFrameSize(lineNumber, frameSize); }
virtual PINDEX GetReadFrameSize() { return device.GetReadFrameSize(lineNumber); }
virtual PINDEX GetWriteFrameSize() { return device.GetWriteFrameSize(lineNumber); }
virtual PBoolean ReadFrame(
void * buf,
PINDEX & count
) { return device.ReadFrame(lineNumber, buf, count); }
virtual PBoolean WriteFrame(
const void * buf,
PINDEX count,
PINDEX & written
) { return device.WriteFrame(lineNumber, buf, count, written); }
virtual PBoolean ReadBlock(
void * buf,
PINDEX count
) { return device.ReadBlock(lineNumber, buf, count); }
virtual PBoolean WriteBlock(
const void * buf,
PINDEX count
) { return device.WriteBlock(lineNumber, buf, count); }
virtual unsigned GetAverageSignalLevel(
PBoolean playback
) { return device.GetAverageSignalLevel(lineNumber, playback); }
virtual PBoolean EnableAudio(
PBoolean enable = true
) { return device.EnableAudio(lineNumber, enable); }
PBoolean DisableAudio() { return EnableAudio(false); }
virtual PBoolean IsAudioEnabled() const { return device.IsAudioEnabled(lineNumber); }
virtual PBoolean SetRecordVolume(
unsigned volume
) { return device.SetRecordVolume(lineNumber, volume); }
virtual PBoolean SetPlayVolume(
unsigned volume
) { return device.SetPlayVolume(lineNumber, volume); }
virtual PBoolean GetRecordVolume(
unsigned & volume
) { return device.GetRecordVolume(lineNumber, volume); }
virtual PBoolean GetPlayVolume(
unsigned & volume
) { return device.GetPlayVolume(lineNumber, volume); }
virtual OpalLineInterfaceDevice::AECLevels GetAEC() const { return device.GetAEC(lineNumber); }
virtual PBoolean SetAEC(
OpalLineInterfaceDevice::AECLevels level
) { return device.SetAEC(lineNumber, level); }
virtual PBoolean GetVAD() const { return device.GetVAD(lineNumber); }
virtual PBoolean SetVAD(
PBoolean enable
) { return device.SetVAD(lineNumber, enable); }
virtual PBoolean GetCallerID(
PString & idString,
PBoolean full = false
) { return device.GetCallerID(lineNumber, idString, full); }
virtual PBoolean SetCallerID(
const PString & idString
) { return device.SetCallerID(lineNumber, idString); }
virtual PBoolean SendVisualMessageWaitingIndicator(
PBoolean on
) { return device.SendVisualMessageWaitingIndicator(lineNumber, on); }
virtual PBoolean PlayDTMF(
const char * digits,
DWORD onTime = OpalLineInterfaceDevice::DefaultDTMFOnTime,
DWORD offTime = OpalLineInterfaceDevice::DefaultDTMFOffTime
) { return device.PlayDTMF(lineNumber, digits, onTime, offTime); }
virtual char ReadDTMF() { return device.ReadDTMF(lineNumber); }
virtual PBoolean GetRemoveDTMF() { return device.GetRemoveDTMF(lineNumber); }
virtual PBoolean SetRemoveDTMF(
PBoolean removeTones
) { return device.SetRemoveDTMF(lineNumber, removeTones); }
virtual OpalLineInterfaceDevice::CallProgressTones IsToneDetected() { return device.IsToneDetected(lineNumber); }
virtual OpalLineInterfaceDevice::CallProgressTones WaitForToneDetect(
unsigned timeout = 3000
) { return device.WaitForToneDetect(lineNumber, timeout); }
virtual PBoolean WaitForTone(
OpalLineInterfaceDevice::CallProgressTones tone,
unsigned timeout = 3000
) { return device.WaitForTone(lineNumber, tone, timeout); }
virtual PBoolean PlayTone(
OpalLineInterfaceDevice::CallProgressTones tone
) { return device.PlayTone(lineNumber, tone); }
virtual PBoolean IsTonePlaying() { return device.IsTonePlaying(lineNumber); }
virtual PBoolean StopTone() { return device.StopTone(lineNumber); }
virtual OpalLineInterfaceDevice::CallProgressTones DialOut(
const PString & number,
const OpalLineInterfaceDevice::DialParams & params = OpalLineInterfaceDevice::DialParams()
) { return device.DialOut(lineNumber, number, params); }
OpalLineInterfaceDevice & GetDevice() const { return device; }
unsigned GetLineNumber() const { return lineNumber; }
PString GetToken() const { return token; }
void SetToken(const PString & t) { token = t; }
protected:
OpalLineInterfaceDevice & device;
unsigned lineNumber;
PString token;
PTimeInterval ringStoppedTime;
PTimeInterval ringInterCadenceTime;
PTimeInterval ringTick;
unsigned ringCount;
bool lastRingState;
};
PLIST(OpalLineList, OpalLine);
class OpalLIDRegistration : public PCaselessString
{
PCLASSINFO(OpalLIDRegistration, PCaselessString);
public:
OpalLIDRegistration(
const char * name
);
~OpalLIDRegistration();
virtual OpalLineInterfaceDevice * Create(
void * parameters
) const = 0;
protected:
OpalLIDRegistration * link;
bool duplicate;
friend class OpalLineInterfaceDevice;
};
#define OPAL_REGISTER_LID_FUNCTION(cls, type, param) \
static class cls##_Registration : public OpalLIDRegistration { \
public: \
cls##_Registration() : OpalLIDRegistration(type) { } \
OpalLineInterfaceDevice * Create(void * param) const; \
} instance_##cls##_Registration; \
OpalLineInterfaceDevice * cls##_Registration::Create(void * param) const
#ifndef OPAL_NO_PARAM
#define OPAL_NO_PARAM
#endif
#define OPAL_REGISTER_LID(cls, type) \
OPAL_REGISTER_LID_FUNCTION(cls, type, OPAL_NO_PARAM) \
{ return new cls; }
#define OPAL_REGISTER_LID_PARAM(cls, type) \
OPAL_REGISTER_LID_FUNCTION(cls, type, parameter) \
{ return new cls(parameter); }
#endif // OPAL_LIDS_LID_H
// End of File ///////////////////////////////////////////////////////////////
OpalLineInterfaceDevice::Byelorussia
Definition: lid.h:753
OpalLineInterfaceDevice::SetRecordVolume
virtual PBoolean SetRecordVolume(unsigned line, unsigned volume)
OpalLineInterfaceDevice::France
Definition: lid.h:758
OpalLineInterfaceDevice::Ukraine
Definition: lid.h:775
OpalLineInterfaceDevice::Gambia
Definition: lid.h:759
OpalLineInterfaceDevice::HasHookFlash
virtual PBoolean HasHookFlash(unsigned line)
OpalLineInterfaceDevice::BritishIndianOceanTerritory
Definition: lid.h:751
OpalLineInterfaceDevice::m_callProgressTones
PString m_callProgressTones[NumTones]
Definition: lid.h:893
OpalLineInterfaceDevice::DialParams::m_requireTones
bool m_requireTones
Require dial/ring tone to be detected.
Definition: lid.h:700
OpalLineInterfaceDevice::Malawi
Definition: lid.h:765
OpalLineInterfaceDevice::CreateAndOpen
static OpalLineInterfaceDevice * CreateAndOpen(const PString &descriptor, void *parameters=NULL)
OpalLineInterfaceDevice::Iceland
Definition: lid.h:761
OpalLineInterfaceDevice::PapuaNewGuinea
Definition: lid.h:768
OpalLineInterfaceDevice::Jordan
Definition: lid.h:763
OpalLineInterfaceDevice::Germany2
Definition: lid.h:759
OpalLineInterfaceDevice::SaudiArabia
Definition: lid.h:772
OpalLineInterfaceDevice::Nicaragua
Definition: lid.h:767
OpalLineInterfaceDevice::ReadBlock
virtual PBoolean ReadBlock(unsigned line, void *buf, PINDEX count)
OpalLIDRegistration::OpalLIDRegistration
OpalLIDRegistration(const char *name)
OpalLineInterfaceDevice::Swaziland
Definition: lid.h:773
OpalLineInterfaceDevice::SaintThomas
Definition: lid.h:771
OpalLineInterfaceDevice::EnableAudio
virtual PBoolean EnableAudio(unsigned line, PBoolean enable=true)
OpalLineInterfaceDevice::Germany
Definition: lid.h:748
OpalLine::SetRecordVolume
virtual PBoolean SetRecordVolume(unsigned volume)
Definition: lid.h:1164
OpalLineInterfaceDevice::GetCountryCodeName
PString GetCountryCodeName() const
OpalLineInterfaceDevice::BritishAntarcticTerritory
Definition: lid.h:751
OpalLineInterfaceDevice::GetAllNames
virtual PStringArray GetAllNames() const =0
OpalLineInterfaceDevice::Zambia
Definition: lid.h:778
OpalLineInterfaceDevice::ModulatedTone
Definition: lid.h:651
OpalLine::DisableAudio
PBoolean DisableAudio()
Definition: lid.h:1153
OpalLineInterfaceDevice::UsesRTP
virtual bool UsesRTP() const
OpalLineInterfaceDevice::SendVisualMessageWaitingIndicator
virtual PBoolean SendVisualMessageWaitingIndicator(unsigned line, PBoolean on)
OpalLineInterfaceDevice::DialParams::DialParams
DialParams()
Definition: lid.h:690
OpalLineInterfaceDevice::SaintVicentAndTheGrenadines
Definition: lid.h:771
OpalLineInterfaceDevice::m_writeDeblockingOffset
PINDEX m_writeDeblockingOffset
Definition: lid.h:891
OpalLineInterfaceDevice::SetToneParameters
virtual bool SetToneParameters(unsigned line, CallProgressTones tone, unsigned frequency1, unsigned frequency2, ToneMixingModes mode, PINDEX numCadences, const unsigned *onTimes, const unsigned *offTimes)
OpalLineInterfaceDevice::Haiti
Definition: lid.h:761
OpalLineInterfaceDevice::Iran
Definition: lid.h:762
OpalLineInterfaceDevice::ReadDTMF
virtual char ReadDTMF(unsigned line)
OpalLineInterfaceDevice::Djibouti
Definition: lid.h:756
OpalLineInterfaceDevice::T35CountryCodes
T35CountryCodes
Definition: lid.h:747
OpalLine::ringTick
PTimeInterval ringTick
Definition: lid.h:1383
OpalLine::ringCount
unsigned ringCount
Definition: lid.h:1384
OpalLineInterfaceDevice::BruneiDarussalam
Definition: lid.h:752
OpalLineInterfaceDevice::NoTone
Definition: lid.h:585
OpalLineInterfaceDevice::StopWriting
virtual PBoolean StopWriting(unsigned line)
OpalLineInterfaceDevice::Mauritania
Definition: lid.h:765
OpalLineInterfaceDevice::RecordAudioStart
virtual PBoolean RecordAudioStart(unsigned line, const PString &filename)
OpalLineInterfaceDevice::GetAllTypes
static PStringList GetAllTypes()
OpalLine::WriteFrame
virtual PBoolean WriteFrame(const void *buf, PINDEX count, PINDEX &written)
Definition: lid.h:1116
OpalLineInterfaceDevice::IsTonePlaying
virtual PBoolean IsTonePlaying(unsigned line)
OpalLine::EnableAudio
virtual PBoolean EnableAudio(PBoolean enable=true)
Definition: lid.h:1147
OpalLineInterfaceDevice::WaitForTone
virtual PBoolean WaitForTone(unsigned line, CallProgressTones tone, unsigned timeout=3000)
OpalLineInterfaceDevice::Turkey
Definition: lid.h:775
OpalLineInterfaceDevice::NewZealand
Definition: lid.h:767
OpalLine::ReadDTMF
virtual char ReadDTMF()
Definition: lid.h:1287
OpalLineInterfaceDevice::Togo
Definition: lid.h:774
OpalLineInterfaceDevice::m_writeDeblockingBuffer
PBYTEArray m_writeDeblockingBuffer
Definition: lid.h:890
buildopts.h
OpalLineInterfaceDevice::FrenchSouthernAndAntarcticLands
Definition: lid.h:759
OpalLine::WaitForToneDetect
virtual OpalLineInterfaceDevice::CallProgressTones WaitForToneDetect(unsigned timeout=3000)
Definition: lid.h:1310
OpalLineInterfaceDevice::DialOut
virtual CallProgressTones DialOut(unsigned line, const PString &number, const DialParams &params=DialParams())
OpalLineInterfaceDevice::Libya
Definition: lid.h:764
OpalLineInterfaceDevice::UserDefinedTone
Definition: lid.h:595
OpalLineInterfaceDevice::GetErrorText
PString GetErrorText() const
OpalLineInterfaceDevice::SetWriteFormat
virtual PBoolean SetWriteFormat(unsigned line, const OpalMediaFormat &mediaFormat)=0
OpalLineInterfaceDevice::AECHigh
Definition: lid.h:448
OpalLineInterfaceDevice::Lao
Definition: lid.h:763
OpalLineInterfaceDevice::Madagascar
Definition: lid.h:764
OpalLine::GetCallerID
virtual PBoolean GetCallerID(PString &idString, PBoolean full=false)
Definition: lid.h:1232
OpalLine::DialOut
virtual OpalLineInterfaceDevice::CallProgressTones DialOut(const PString &number, const OpalLineInterfaceDevice::DialParams &params=OpalLineInterfaceDevice::DialParams())
Definition: lid.h:1351
OpalLineInterfaceDevice::Uganda
Definition: lid.h:775
OpalLineInterfaceDevice::CNGTone
Definition: lid.h:593
OpalLineInterfaceDevice::PrintOn
virtual void PrintOn(ostream &strm) const
OpalLineInterfaceDevice::TurksAndCaicosIslands
Definition: lid.h:775
OpalLineInterfaceDevice::India
Definition: lid.h:761
OpalLineInterfaceDevice::SetAEC
virtual PBoolean SetAEC(unsigned line, AECLevels level)
OpalLineInterfaceDevice::AECAGC
Definition: lid.h:450
OpalLineInterfaceDevice::BurkinaFaso
Definition: lid.h:776
OpalLineInterfaceDevice::Japan
Definition: lid.h:748
OpalLine::SetVAD
virtual PBoolean SetVAD(PBoolean enable)
Definition: lid.h:1214
OpalLineInterfaceDevice::SouthAfrica
Definition: lid.h:773
OpalLine::SetWriteFrameSize
virtual PBoolean SetWriteFrameSize(PINDEX frameSize)
Definition: lid.h:1093
OpalLineInterfaceDevice::Tonga
Definition: lid.h:774
OpalLineInterfaceDevice::Philippines
Definition: lid.h:769
OpalLineInterfaceDevice::Montserrat
Definition: lid.h:766
OpalLineInterfaceDevice::Tunisia
Definition: lid.h:775
OpalLineInterfaceDevice::DefaultDTMFOffTime
Definition: lid.h:540
OpalLineInterfaceDevice::Romania
Definition: lid.h:769
OpalLineInterfaceDevice::MwiTone
Definition: lid.h:591
OpalLineInterfaceDevice::Lesotho
Definition: lid.h:764
OpalLineInterfaceDevice::DialParams::m_dialInterDigitTime
unsigned m_dialInterDigitTime
Time in msec of silence between each DTMF digit.
Definition: lid.h:704
OpalLineInterfaceDevice::MaxVolume
Definition: lid.h:404
OpalLineInterfaceDevice::BritishVirginIslands
Definition: lid.h:752
OpalLineInterfaceDevice::Egypt
Definition: lid.h:757
OpalLine::IsTonePlaying
virtual PBoolean IsTonePlaying()
Definition: lid.h:1329
OpalLineInterfaceDevice::GetReadFormat
virtual OpalMediaFormat GetReadFormat(unsigned line)=0
OpalLineInterfaceDevice::SierraLeone
Definition: lid.h:772
OpalLIDRegistration::duplicate
bool duplicate
Definition: lid.h:1426
OpalLineInterfaceDevice::ReadFrame
virtual PBoolean ReadFrame(unsigned line, void *buf, PINDEX &count)=0
OpalLineInterfaceDevice::Belize
Definition: lid.h:750
OpalLineInterfaceDevice::China
Definition: lid.h:754
OpalLineInterfaceDevice::Cambodia
Definition: lid.h:755
OpalLineInterfaceDevice::m_LineAudioEnabled
std::vector< bool > m_LineAudioEnabled
Definition: lid.h:892
OpalLineInterfaceDevice::AmericanSamoa
Definition: lid.h:748
OpalLineInterfaceDevice::Malta
Definition: lid.h:765
OpalLineInterfaceDevice::SetWinkDuration
virtual PBoolean SetWinkDuration(unsigned line, unsigned winkDuration)
OpalLineInterfaceDevice::GetLineCount
virtual unsigned GetLineCount() const =0
OpalLineInterfaceDevice::AntiguaAndBarbuda
Definition: lid.h:748
OpalLine::ReadFrame
virtual PBoolean ReadFrame(void *buf, PINDEX &count)
Definition: lid.h:1109
OpalLine::SetReadFormat
virtual PBoolean SetReadFormat(const OpalMediaFormat &mediaFormat)
Definition: lid.h:1055
OpalLineInterfaceDevice::Maldives
Definition: lid.h:765
OpalLine::IsDisconnected
virtual PBoolean IsDisconnected()
Definition: lid.h:1051
OpalLineInterfaceDevice::Hungary
Definition: lid.h:761
OpalLineInterfaceDevice::Qatar
Definition: lid.h:769
OpalLine::device
OpalLineInterfaceDevice & device
Definition: lid.h:1377
OpalLineInterfaceDevice::Brazil
Definition: lid.h:751
OpalLineInterfaceDevice::Nauru
Definition: lid.h:766
OpalLineInterfaceDevice::CongestionTone
Definition: lid.h:589
OpalLineInterfaceDevice::GetCountryCode
T35CountryCodes GetCountryCode() const
Definition: lid.h:785
OpalLineInterfaceDevice::Guinea
Definition: lid.h:760
OpalLineInterfaceDevice::PuertoRico
Definition: lid.h:769
OpalLineInterfaceDevice::AECLevels
AECLevels
Definition: lid.h:444
OpalLineInterfaceDevice::WallisAndFutuna
Definition: lid.h:777
OpalLineInterfaceDevice::Luxemborg
Definition: lid.h:764
OpalLineInterfaceDevice::Bangladesh
Definition: lid.h:749
OpalLine::GetWriteFormat
virtual OpalMediaFormat GetWriteFormat()
Definition: lid.h:1071
OpalLineInterfaceDevice::Honduras
Definition: lid.h:761
OpalLineInterfaceDevice::GetWriteFrameSize
virtual PINDEX GetWriteFrameSize(unsigned line)
OpalLineInterfaceDevice::Sudan
Definition: lid.h:773
OpalLineInterfaceDevice::CaymanIslands
Definition: lid.h:753
PLIST
PLIST(OpalLIDList, OpalLineInterfaceDevice)
OpalLineInterfaceDevice::GetAverageSignalLevel
virtual unsigned GetAverageSignalLevel(unsigned line, PBoolean playback)
OpalLineInterfaceDevice::Niger
Definition: lid.h:768
OpalLineInterfaceDevice::GetAllDevices
static PStringList GetAllDevices()
OpalLineInterfaceDevice::PlayTone
virtual PBoolean PlayTone(unsigned line, CallProgressTones tone)
OpalLineInterfaceDevice::Congo
Definition: lid.h:754
OpalLineInterfaceDevice::Oman
Definition: lid.h:768
OpalLineInterfaceDevice::Mexico
Definition: lid.h:765
OpalLineInterfaceDevice::SetVAD
virtual PBoolean SetVAD(unsigned line, PBoolean enable)
OpalLineInterfaceDevice::Guatemala
Definition: lid.h:760
OpalLineInterfaceDevice::Kenya
Definition: lid.h:763
OpalLineInterfaceDevice::SolomonIslands
Definition: lid.h:772
OpalLineInterfaceDevice::Colombia
Definition: lid.h:754
OpalLineInterfaceDevice::SetCountryCode
virtual PBoolean SetCountryCode(T35CountryCodes country)
OpalLineInterfaceDevice::IsToneDetected
virtual CallProgressTones IsToneDetected(unsigned line)
OpalLine::Ring
virtual PBoolean Ring(PINDEX nCadence, const unsigned *pattern=NULL, unsigned frequency=400)
Definition: lid.h:1019
OpalLineInterfaceDevice::IsLineConnected
virtual PBoolean IsLineConnected(unsigned line)
OpalLineInterfaceDevice::Tuvalu
Definition: lid.h:775
OpalLineInterfaceDevice::DialParams::m_commaDelay
unsigned m_commaDelay
Time in msec to wait when a comma (',') is found in the dial string.
Definition: lid.h:706
OpalLineInterfaceDevice::DialParams::m_dialToneTimeout
unsigned m_dialToneTimeout
Time in msec to wait for a dial tone to be detected.
Definition: lid.h:701
OpalLineInterfaceDevice::Mongolia
Definition: lid.h:766
OpalLineInterfaceDevice::CentralAfricanRepublic
Definition: lid.h:754
OpalLine::GetRingCount
virtual unsigned GetRingCount(DWORD *cadence=NULL)
OpalLine::SetRemoveDTMF
virtual PBoolean SetRemoveDTMF(PBoolean removeTones)
Definition: lid.h:1299
OpalLineInterfaceDevice::NumCountryCodes
Definition: lid.h:779
OpalLineInterfaceDevice::Ecuador
Definition: lid.h:757
OpalLineInterfaceDevice::FrenchPolynesia
Definition: lid.h:758
OpalLine::GetAEC
virtual OpalLineInterfaceDevice::AECLevels GetAEC() const
Definition: lid.h:1196
OpalLineInterfaceDevice::SetToneDescription
virtual bool SetToneDescription(unsigned line, CallProgressTones tone, const PString &description)
OpalLine::PlayDTMF
virtual PBoolean PlayDTMF(const char *digits, DWORD onTime=OpalLineInterfaceDevice::DefaultDTMFOnTime, DWORD offTime=OpalLineInterfaceDevice::DefaultDTMFOffTime)
Definition: lid.h:1272
OpalLine::SetReadFrameSize
virtual PBoolean SetReadFrameSize(PINDEX frameSize)
Definition: lid.h:1085
OpalLineInterfaceDevice::Nepal
Definition: lid.h:766
OpalMediaFormatList
Definition: mediafmt.h:72
OpalLineInterfaceDevice::DemocraticPeoplesRepublicOfKorea
Definition: lid.h:756
OpalLineInterfaceDevice::GetDeviceType
virtual PString GetDeviceType() const =0
OpalLineInterfaceDevice::Syria
Definition: lid.h:774
OpalLineInterfaceDevice::Switzerland
Definition: lid.h:774
OpalLine::IsOffHook
virtual PBoolean IsOffHook()
Definition: lid.h:955
OpalLineInterfaceDevice::Botswana
Definition: lid.h:750
OpalLine::SendVisualMessageWaitingIndicator
virtual PBoolean SendVisualMessageWaitingIndicator(PBoolean on)
Definition: lid.h:1264
OpalLineInterfaceDevice::Open
virtual PBoolean Open(const PString &device)=0
OpalLineInterfaceDevice::Liberia
Definition: lid.h:764
OpalLineInterfaceDevice::Paraguay
Definition: lid.h:768
OpalLineInterfaceDevice::countryCode
T35CountryCodes countryCode
Definition: lid.h:889
OpalLineInterfaceDevice::SetLineOffHook
virtual PBoolean SetLineOffHook(unsigned line, PBoolean newState=true)=0
OpalLine::SetOnHook
virtual PBoolean SetOnHook()
Definition: lid.h:967
OpalLIDRegistration::Create
virtual OpalLineInterfaceDevice * Create(void *parameters) const =0
OpalLineInterfaceDevice::Chad
Definition: lid.h:754
OpalLineInterfaceDevice::Guam
Definition: lid.h:760
OpalLineInterfaceDevice::Fiji
Definition: lid.h:758
OpalLineInterfaceDevice::AddedTone
Definition: lid.h:650
OpalLine::GetReadFormat
virtual OpalMediaFormat GetReadFormat()
Definition: lid.h:1067
OpalLineInterfaceDevice::Italy
Definition: lid.h:762
OpalLineInterfaceDevice::KoreaRepublic
Definition: lid.h:763
OpalLineInterfaceDevice::GetWinkDuration
virtual unsigned GetWinkDuration(unsigned line)
OpalLine::GetWriteFrameSize
virtual PINDEX GetWriteFrameSize()
Definition: lid.h:1105
OpalLineInterfaceDevice::HookFlash
virtual PBoolean HookFlash(unsigned line, unsigned flashTime=200)
OpalLineInterfaceDevice::Venezuela
Definition: lid.h:777
OpalLineInterfaceDevice::AECLow
Definition: lid.h:446
OpalLine::HookFlash
virtual PBoolean HookFlash(unsigned flashTime=200)
Definition: lid.h:972
OpalLineInterfaceDevice::Monaco
Definition: lid.h:766
OpalLineInterfaceDevice::SetLineConnected
virtual PBoolean SetLineConnected(unsigned line)
OpalLineInterfaceDevice::SetPlayVolume
virtual PBoolean SetPlayVolume(unsigned line, unsigned volume)
OpalLineInterfaceDevice::AECOff
Definition: lid.h:445
OpalLine::StopReading
virtual PBoolean StopReading()
Definition: lid.h:1075
OpalLineInterfaceDevice::AECMedium
Definition: lid.h:447
OpalLine::StopWriting
virtual PBoolean StopWriting()
Definition: lid.h:1079
OpalLineInterfaceDevice::Lebanon
Definition: lid.h:763
OpalLine::ringStoppedTime
PTimeInterval ringStoppedTime
Definition: lid.h:1380
OpalLineInterfaceDevice::WesternSamoa
Definition: lid.h:778
OpalLineInterfaceDevice::Mozambique
Definition: lid.h:766
OpalLine::SetPlayVolume
virtual PBoolean SetPlayVolume(unsigned volume)
Definition: lid.h:1172
OpalLineInterfaceDevice::NewCaledonia
Definition: lid.h:767
OpalLineInterfaceDevice::Cameroon
Definition: lid.h:753
OpalLineInterfaceDevice::IsAudioEnabled
virtual PBoolean IsAudioEnabled(unsigned line) const
OpalMediaFormat
Definition: mediafmt.h:724
OpalLineInterfaceDevice::SetLineOnHook
virtual PBoolean SetLineOnHook(unsigned line)
Definition: lid.h:141
OpalLineInterfaceDevice::CEDTone
Definition: lid.h:594
OpalLineInterfaceDevice::GetPlayVolume
virtual PBoolean GetPlayVolume(unsigned line, unsigned &volume)
OpalLine::GetToken
PString GetToken() const
Definition: lid.h:1369
OpalLineInterfaceDevice::Zaire
Definition: lid.h:778
OpalLineInterfaceDevice::SaintHelenaAndAscension
Definition: lid.h:770
OpalLine::IsToneDetected
virtual OpalLineInterfaceDevice::CallProgressTones IsToneDetected()
Definition: lid.h:1306
OpalLine::SetCallerID
virtual PBoolean SetCallerID(const PString &idString)
Definition: lid.h:1258
OpalLineInterfaceDevice::BusyTone
Definition: lid.h:588
OpalLineInterfaceDevice::FalklandIslands
Definition: lid.h:758
OpalLineInterfaceDevice::Suriname
Definition: lid.h:773
OpalLineInterfaceDevice::Peru
Definition: lid.h:769
OpalLineInterfaceDevice::Nigeria
Definition: lid.h:768
OpalLineInterfaceDevice::SetReadFormat
virtual PBoolean SetReadFormat(unsigned line, const OpalMediaFormat &mediaFormat)=0
OpalLineInterfaceDevice::Comoros
Definition: lid.h:754
OpalLineInterfaceDevice::GetVAD
virtual PBoolean GetVAD(unsigned line) const
OpalLineInterfaceDevice::Yugoslavia
Definition: lid.h:778
OpalLineInterfaceDevice::SaintKittsAndNevis
Definition: lid.h:770
OpalLineInterfaceDevice::UnknownCountry
Definition: lid.h:780
OpalLineInterfaceDevice::AECError
Definition: lid.h:451
OpalLineInterfaceDevice::Myanmar
Definition: lid.h:752
OpalLine::SetAEC
virtual PBoolean SetAEC(OpalLineInterfaceDevice::AECLevels level)
Definition: lid.h:1201
OpalLineInterfaceDevice::IsLineOffHook
virtual PBoolean IsLineOffHook(unsigned line)=0
OpalLineInterfaceDevice::m_readDeblockingOffset
PINDEX m_readDeblockingOffset
Definition: lid.h:891
OpalLineInterfaceDevice::PlayAudio
virtual PBoolean PlayAudio(unsigned line, const PString &filename)
OpalLine::lineNumber
unsigned lineNumber
Definition: lid.h:1378
OpalLine::StopTone
virtual PBoolean StopTone()
Definition: lid.h:1333
OpalLineInterfaceDevice::GuineaBissau
Definition: lid.h:760
OpalLineInterfaceDevice::DominicanRepublic
Definition: lid.h:756
OpalLineInterfaceDevice::WriteFrame
virtual PBoolean WriteFrame(unsigned line, const void *buf, PINDEX count, PINDEX &written)=0
OpalLineInterfaceDevice::Bermudas
Definition: lid.h:750
OpalLineInterfaceDevice::DialParams::m_dialDigitTime
unsigned m_dialDigitTime
Time in msec to play DTMF digit.
Definition: lid.h:703
OpalLineInterfaceDevice::Uruguay
Definition: lid.h:776
OpalLineInterfaceDevice::Canada
Definition: lid.h:753
OpalLineInterfaceDevice::NumTones
Definition: lid.h:596
OpalLineInterfaceDevice::DialParams::m_progressTimeout
unsigned m_progressTimeout
Time in msec to wait for a progress tone (ring, busy or connected) to be detected.
Definition: lid.h:705
OpalLineInterfaceDevice::Pakistan
Definition: lid.h:768
OpalLineInterfaceDevice::TrinidadAndTobago
Definition: lid.h:774
OpalLineInterfaceDevice::Bahrain
Definition: lid.h:749
OpalLineInterfaceDevice::Cyprus
Definition: lid.h:755
OpalLineInterfaceDevice::GetCountryCodeNameList
virtual PStringList GetCountryCodeNameList() const
OpalLineInterfaceDevice::SaintCroix
Definition: lid.h:770
OpalLineInterfaceDevice::SetRemoveDTMF
virtual PBoolean SetRemoveDTMF(unsigned line, PBoolean removeTones)
OpalLineInterfaceDevice::VaticanCityState
Definition: lid.h:777
OpalLineInterfaceDevice::Ghana
Definition: lid.h:759
OpalLineInterfaceDevice::PlayDTMF
virtual PBoolean PlayDTMF(unsigned line, const char *digits, DWORD onTime=DefaultDTMFOnTime, DWORD offTime=DefaultDTMFOffTime)
OpalLineInterfaceDevice::Burundi
Definition: lid.h:752
OpalLine::GetReadFrameSize
virtual PINDEX GetReadFrameSize()
Definition: lid.h:1100
OpalLineInterfaceDevice::GetMediaFormats
virtual OpalMediaFormatList GetMediaFormats() const =0
OpalLineInterfaceDevice::Panama
Definition: lid.h:768
OpalLine::token
PString token
Definition: lid.h:1379
OpalLineInterfaceDevice::Algeria
Definition: lid.h:748
OpalLine::IsTerminal
virtual PBoolean IsTerminal()
Definition: lid.h:940
OpalLineInterfaceDevice::NetherlandsAntilles
Definition: lid.h:767
OpalLineInterfaceDevice::IsLineToLineDirect
virtual PBoolean IsLineToLineDirect(unsigned line1, unsigned line2)
OpalLineInterfaceDevice::OpalLineInterfaceDevice
OpalLineInterfaceDevice()
OpalLineInterfaceDevice::RoutingTone
Definition: lid.h:592
OpalLine::PlayTone
virtual PBoolean PlayTone(OpalLineInterfaceDevice::CallProgressTones tone)
Definition: lid.h:1323
OpalLineInterfaceDevice::RingLine
virtual PBoolean RingLine(unsigned line, PINDEX nCadence, const unsigned *pattern=NULL, unsigned frequency=400)
OpalLine::GetRemoveDTMF
virtual PBoolean GetRemoveDTMF()
Definition: lid.h:1293
OpalLineInterfaceDevice::Mauritius
Definition: lid.h:765
OpalLine::SetToken
void SetToken(const PString &t)
Definition: lid.h:1373
OpalLineInterfaceDevice::Ascension
Definition: lid.h:749
OpalLine::GetVAD
virtual PBoolean GetVAD() const
Definition: lid.h:1209
OpalLineInterfaceDevice::Bulgaria
Definition: lid.h:752
OpalLineInterfaceDevice::Close
virtual PBoolean Close()
OpalLineInterfaceDevice::Ethiopia
Definition: lid.h:757
OpalLineInterfaceDevice::WaitForToneDetect
virtual CallProgressTones WaitForToneDetect(unsigned line, unsigned timeout=3000)
OpalLineInterfaceDevice::Dominica
Definition: lid.h:757
operator<<
ostream & operator<<(ostream &strm, OpalSilenceDetector::Mode mode)
OpalLineInterfaceDevice::Gabon
Definition: lid.h:759
OpalLineInterfaceDevice::Belgium
Definition: lid.h:750
OpalLineInterfaceDevice::Anguilla
Definition: lid.h:748
OpalLineInterfaceDevice::Israel
Definition: lid.h:762
OpalLineInterfaceDevice::Ireland
Definition: lid.h:762
OpalLineInterfaceDevice::Kuwait
Definition: lid.h:763
OpalLineInterfaceDevice::IsLineDisconnected
virtual PBoolean IsLineDisconnected(unsigned line, PBoolean checkForWink=true)
OpalLineInterfaceDevice::Rwanda
Definition: lid.h:769
OpalLineInterfaceDevice::Argentina
Definition: lid.h:749
OpalLine::lastRingState
bool lastRingState
Definition: lid.h:1385
mediafmt.h
OpalLineInterfaceDevice::Macao
Definition: lid.h:764
OpalLineInterfaceDevice::DefaultDTMFOnTime
Definition: lid.h:539
OpalLineInterfaceDevice::DialParams
Definition: lid.h:689
OpalLineInterfaceDevice::SaoTomeAndPrincipe
Definition: lid.h:771
OpalLineInterfaceDevice::os_handle
int os_handle
Definition: lid.h:887
OpalLineInterfaceDevice::GetCallerID
virtual PBoolean GetCallerID(unsigned line, PString &idString, PBoolean full=false)
OpalLineInterfaceDevice::GetErrorNumber
int GetErrorNumber() const
Definition: lid.h:849
OpalLineInterfaceDevice::Liechtenstein
Definition: lid.h:764
OpalLine::IsConnected
virtual PBoolean IsConnected()
Definition: lid.h:1045
OpalLineInterfaceDevice::Portugal
Definition: lid.h:769
OpalLineInterfaceDevice::VietNam
Definition: lid.h:777
OpalLineInterfaceDevice::Barbados
Definition: lid.h:750
OpalLineInterfaceDevice::Czechoslovakia
Definition: lid.h:755
OpalLineInterfaceDevice::Greece
Definition: lid.h:760
OpalLineInterfaceDevice::DialTone
Definition: lid.h:586
OpalLineInterfaceDevice::Indonesia
Definition: lid.h:761
OpalLineInterfaceDevice::IsOpen
virtual PBoolean IsOpen() const
OpalLineInterfaceDevice::Somalia
Definition: lid.h:773
OpalLineInterfaceDevice::SriLanka
Definition: lid.h:773
OpalLineInterfaceDevice
Definition: lid.h:51
OpalLineInterfaceDevice::Thailand
Definition: lid.h:774
OpalLineInterfaceDevice::Poland
Definition: lid.h:769
OpalLine::GetAverageSignalLevel
virtual unsigned GetAverageSignalLevel(PBoolean playback)
Definition: lid.h:1140
OpalLineInterfaceDevice::Bahamas
Definition: lid.h:749
OpalLineInterfaceDevice::SetReadFrameSize
virtual PBoolean SetReadFrameSize(unsigned line, PINDEX frameSize)
OpalLineInterfaceDevice::Malaysia
Definition: lid.h:765
OpalLineInterfaceDevice::Vanuatu
Definition: lid.h:777
OpalLineInterfaceDevice::GetDescription
virtual PString GetDescription() const =0
OpalLineInterfaceDevice::Albania
Definition: lid.h:748
OpalLineInterfaceDevice::Yemen
Definition: lid.h:778
OpalLineInterfaceDevice::Jersey
Definition: lid.h:763
OpalLineInterfaceDevice::Norway
Definition: lid.h:768
OpalLineInterfaceDevice::CapeVerde
Definition: lid.h:753
OpalLineInterfaceDevice::Afghanistan
Definition: lid.h:762
OpalLineInterfaceDevice::USSR
Definition: lid.h:777
OpalLineInterfaceDevice::CostaRica
Definition: lid.h:755
OpalLineInterfaceDevice::Finland
Definition: lid.h:758
OpalLineInterfaceDevice::Denmark
Definition: lid.h:756
OpalLineInterfaceDevice::StopReading
virtual PBoolean StopReading(unsigned line)
OpalLineInterfaceDevice::SetWriteFrameSize
virtual PBoolean SetWriteFrameSize(unsigned line, PINDEX frameSize)
OpalLineInterfaceDevice::Singapore
Definition: lid.h:772
OpalLineInterfaceDevice::AECAuto
Definition: lid.h:449
OpalLineInterfaceDevice::Morocco
Definition: lid.h:766
OpalLineInterfaceDevice::Hongkong
Definition: lid.h:761
OpalLineInterfaceDevice::StopTone
virtual PBoolean StopTone(unsigned line)
OpalLine::HasHookFlash
virtual PBoolean HasHookFlash()
Definition: lid.h:978
OpalLine::GetDevice
OpalLineInterfaceDevice & GetDevice() const
Definition: lid.h:1361
OpalLineInterfaceDevice::Cuba
Definition: lid.h:755
OpalLIDRegistration
Definition: lid.h:1398
OpalLineInterfaceDevice::Sweden
Definition: lid.h:773
OpalLineInterfaceDevice::DisableAudio
PBoolean DisableAudio(unsigned line)
Definition: lid.h:392
OpalLine::WaitForTone
virtual PBoolean WaitForTone(OpalLineInterfaceDevice::CallProgressTones tone, unsigned timeout=3000)
Definition: lid.h:1316
OpalLineInterfaceDevice::GetReadFrameSize
virtual PINDEX GetReadFrameSize(unsigned line)
OpalLine::IsAudioEnabled
virtual PBoolean IsAudioEnabled() const
Definition: lid.h:1157
OpalLine::OpalLine
OpalLine(OpalLineInterfaceDevice &device, unsigned lineNumber, const char *userToken=NULL)
OpalLineInterfaceDevice::RingTone
Definition: lid.h:587
OpalLineInterfaceDevice::SetCountryCodeName
virtual PBoolean SetCountryCodeName(const PString &countryName)
OpalLineInterfaceDevice::SanMarino
Definition: lid.h:771
OpalLineInterfaceDevice::EquatorialGuinea
Definition: lid.h:757
OpalLineInterfaceDevice::CallProgressTones
CallProgressTones
Definition: lid.h:584
OpalLineInterfaceDevice::CookIslands
Definition: lid.h:755
OpalLineInterfaceDevice::IsLineTerminal
virtual PBoolean IsLineTerminal(unsigned line)=0
OpalLineInterfaceDevice::UnitedKingdom
Definition: lid.h:776
OpalLineInterfaceDevice::Seychelles
Definition: lid.h:772
OpalLineInterfaceDevice::DialParams::m_dialStartDelay
unsigned m_dialStartDelay
Time in msec to wait between the dial tone detection and dialing the DTMF.
Definition: lid.h:702
OpalLineInterfaceDevice::Kiribati
Definition: lid.h:763
OpalLineInterfaceDevice::IsLinePresent
virtual PBoolean IsLinePresent(unsigned line, PBoolean force=false)
OpalLineInterfaceDevice::Angola
Definition: lid.h:759
OpalLineInterfaceDevice::Bhutan
Definition: lid.h:750
OpalLine::IsRinging
virtual PBoolean IsRinging(DWORD *cadence=NULL)
OpalLine::ringInterCadenceTime
PTimeInterval ringInterCadenceTime
Definition: lid.h:1381
OpalLineInterfaceDevice::Gibraltar
Definition: lid.h:760
OpalLineInterfaceDevice::UnitedArabEmirates
Definition: lid.h:776
OpalLineInterfaceDevice::Senegal
Definition: lid.h:772
OpalLineInterfaceDevice::ClearTone
Definition: lid.h:590
OpalLineInterfaceDevice::ToneMixingModes
ToneMixingModes
Definition: lid.h:648
OpalLineInterfaceDevice::Spain
Definition: lid.h:773
OpalLineInterfaceDevice::Jamaica
Definition: lid.h:762
OpalLineInterfaceDevice::GetWriteFormat
virtual OpalMediaFormat GetWriteFormat(unsigned line)=0
OpalLineInterfaceDevice::Iraq
Definition: lid.h:762
OpalLine
Definition: lid.h:906
OpalLine::SetOffHook
virtual PBoolean SetOffHook()
Definition: lid.h:962
OpalLineInterfaceDevice::WriteBlock
virtual PBoolean WriteBlock(unsigned line, const void *buf, PINDEX count)
OpalLineInterfaceDevice::Grenada
Definition: lid.h:760
OpalLine::IsPresent
virtual PBoolean IsPresent(PBoolean force=false)
Definition: lid.h:945
OpalLineInterfaceDevice::osError
int osError
Definition: lid.h:888
OpalLineInterfaceDevice::GetDeviceName
virtual PString GetDeviceName() const =0
OpalLineInterfaceDevice::GetRemoveDTMF
virtual PBoolean GetRemoveDTMF(unsigned line)
OpalLineInterfaceDevice::Benin
Definition: lid.h:750
OpalLineInterfaceDevice::Guernsey
Definition: lid.h:760
OpalLIDRegistration::~OpalLIDRegistration
~OpalLIDRegistration()
OpalLineInterfaceDevice::Australia
Definition: lid.h:749
OpalLine::GetRecordVolume
virtual PBoolean GetRecordVolume(unsigned &volume)
Definition: lid.h:1180
OpalLineInterfaceDevice::Austria
Definition: lid.h:749
OpalLineInterfaceDevice::Chile
Definition: lid.h:754
OpalLineInterfaceDevice::Mali
Definition: lid.h:765
OpalLine::WriteBlock
virtual PBoolean WriteBlock(const void *buf, PINDEX count)
Definition: lid.h:1132
OpalLineInterfaceDevice::UnitedStates
Definition: lid.h:776
OpalLineInterfaceDevice::GetRecordVolume
virtual PBoolean GetRecordVolume(unsigned line, unsigned &volume)
OpalLineInterfaceDevice::SimpleTone
Definition: lid.h:649
OpalLineInterfaceDevice::ElSalvador
Definition: lid.h:757
OpalLineInterfaceDevice::Netherlands
Definition: lid.h:767
OpalLine::SetWriteFormat
virtual PBoolean SetWriteFormat(const OpalMediaFormat &mediaFormat)
Definition: lid.h:1061
OpalLineInterfaceDevice::Yemen2
Definition: lid.h:778
OpalLIDRegistration::link
OpalLIDRegistration * link
Definition: lid.h:1425
OpalLineInterfaceDevice::Guayana
Definition: lid.h:761
OpalLine::ReadBlock
virtual PBoolean ReadBlock(void *buf, PINDEX count)
Definition: lid.h:1125
OpalLine::PrintOn
void PrintOn(ostream &strm) const
OpalLineInterfaceDevice::SetLineToLineDirect
virtual PBoolean SetLineToLineDirect(unsigned line1, unsigned line2, PBoolean connect)
OpalLineInterfaceDevice::GetAEC
virtual AECLevels GetAEC(unsigned line) const
OpalLineInterfaceDevice::Bolivia
Definition: lid.h:750
OpalLine::SetConnected
virtual PBoolean SetConnected()
Definition: lid.h:1036
OpalLineInterfaceDevice::SaintLucia
Definition: lid.h:770
OpalLineInterfaceDevice::SetCallerID
virtual PBoolean SetCallerID(unsigned line, const PString &idString)
OpalLineInterfaceDevice::Create
static OpalLineInterfaceDevice * Create(const PString &type, void *parameters=NULL)
OpalLineInterfaceDevice::Tanzania
Definition: lid.h:774
OpalLineInterfaceDevice::Zimbabwe
Definition: lid.h:778
OpalLine::GetLineNumber
unsigned GetLineNumber() const
Definition: lid.h:1365
OpalLineInterfaceDevice::CotedIvoire
Definition: lid.h:762
OpalLineInterfaceDevice::IsLineRinging
virtual PBoolean IsLineRinging(unsigned line, DWORD *cadence=NULL)
OpalLineInterfaceDevice::m_readDeblockingBuffer
PBYTEArray m_readDeblockingBuffer
Definition: lid.h:890
OpalLine::GetPlayVolume
virtual PBoolean GetPlayVolume(unsigned &volume)
Definition: lid.h:1188
OpalLineInterfaceDevice::RecordAudioStop
virtual PBoolean RecordAudioStop(unsigned line)
OpalLineInterfaceDevice::StopAudio
virtual PBoolean StopAudio(unsigned line)