|
|
| OpalLineEndPoint (OpalManager &manager) |
|
| ~OpalLineEndPoint () |
| Make sure thread has stopped before exiting. More...
|
|
|
virtual PSafePtr< OpalConnection > | MakeConnection (OpalCall &call, const PString &party, void *userData=NULL, unsigned int options=0, OpalConnection::StringOptions *stringOptions=NULL) |
|
virtual OpalMediaFormatList | GetMediaFormats () const |
|
|
virtual OpalLineConnection * | CreateConnection (OpalCall &call, OpalLine &line, void *userData, const PString &number) |
|
|
PSafePtr< OpalLineConnection > | GetLIDConnectionWithLock (const PString &token, PSafetyMode mode=PSafeReadWrite) |
|
PBoolean | AddLine (OpalLine *line) |
|
void | RemoveLine (OpalLine *line) |
|
const PList< OpalLine > & | GetLines () const |
|
void | RemoveLine (const PString &token) |
|
void | RemoveAllLines () |
|
virtual PBoolean | AddLinesFromDevice (OpalLineInterfaceDevice &device) |
|
void | RemoveLinesFromDevice (OpalLineInterfaceDevice &device) |
|
PBoolean | AddDeviceNames (const PStringArray &descriptors) |
|
PBoolean | AddDeviceName (const PString &descriptor) |
|
const OpalLineInterfaceDevice * | GetDeviceByName (const PString &descriptor) |
|
virtual PBoolean | AddDevice (OpalLineInterfaceDevice *device) |
|
void | RemoveDevice (OpalLineInterfaceDevice *device) |
|
void | RemoveDevices () |
|
OpalLine * | GetLine (const PString &lineName, bool enableAudio=false, bool terminating=true) |
|
void | SetDefaultLine (const PString &lineName) |
|
bool | SetCountryCode (OpalLineInterfaceDevice::T35CountryCodes country) |
|
bool | SetCountryCodeName (const PString &countryName) |
|
| P_DECLARE_BITWISE_ENUM (Attributes, 2,(NoAttributes, IsNetworkEndPoint, SupportsE164)) |
|
| OpalEndPoint (OpalManager &manager, const PCaselessString &prefix, Attributes attributes) |
|
| ~OpalEndPoint () |
|
virtual void | ShutDown () |
|
void | PrintOn (ostream &strm) const |
|
bool | StartListeners (const PStringArray &interfaces, bool add=true) |
|
PBoolean | StartListener (const OpalTransportAddress &iface) |
|
PBoolean | StartListener (OpalListener *listener) |
|
virtual PStringArray | GetDefaultListeners () const |
|
virtual PString | GetDefaultTransport () const |
|
virtual WORD | GetDefaultSignalPort () const |
|
OpalListener * | FindListener (const OpalTransportAddress &iface) |
|
bool | FindListenerForProtocol (const char *proto, OpalTransportAddress &addr) |
|
PBoolean | StopListener (const OpalTransportAddress &iface) |
|
PBoolean | RemoveListener (OpalListener *listener) |
|
OpalTransportAddressArray | GetInterfaceAddresses (const OpalTransport *associatedTransport=NULL) const |
|
| PDECLARE_AcceptHandlerNotifier (OpalEndPoint, NewIncomingConnection) |
|
virtual void | OnNewConnection (OpalCall &call, OpalConnection &connection) |
|
virtual PBoolean | OnSetUpConnection (OpalConnection &connection) |
|
virtual PBoolean | OnIncomingConnection (OpalConnection &connection, unsigned options, OpalConnection::StringOptions *stringOptions) |
|
virtual void | OnProceeding (OpalConnection &connection) |
|
virtual void | OnAlerting (OpalConnection &connection) |
|
virtual
OpalConnection::AnswerCallResponse | OnAnswerCall (OpalConnection &connection, const PString &caller) |
|
virtual void | OnConnected (OpalConnection &connection) |
|
virtual void | OnEstablished (OpalConnection &connection) |
|
virtual void | OnReleased (OpalConnection &connection) |
|
virtual void | OnHold (OpalConnection &connection, bool fromRemote, bool onHold) |
|
virtual void | OnHold (OpalConnection &connection) |
|
virtual PBoolean | OnForwarded (OpalConnection &connection, const PString &remoteParty) |
|
virtual bool | OnTransferNotify (OpalConnection &connection, const PStringToString &info) |
|
virtual PBoolean | ClearCall (const PString &token, OpalConnection::CallEndReason reason=OpalConnection::EndedByLocalUser, PSyncPoint *sync=NULL) |
|
virtual PBoolean | ClearCallSynchronous (const PString &token, OpalConnection::CallEndReason reason=OpalConnection::EndedByLocalUser, PSyncPoint *sync=NULL) |
|
virtual void | ClearAllCalls (OpalConnection::CallEndReason reason=OpalConnection::EndedByLocalUser, PBoolean wait=true) |
|
PSafePtr< OpalConnection > | GetConnectionWithLock (const PString &token, PSafetyMode mode=PSafeReadWrite) const |
|
template<class ConnClass > |
PSafePtr< ConnClass > | GetConnectionWithLockAs (const PString &token, PSafetyMode mode=PSafeReadWrite) const |
|
PStringList | GetAllConnections () |
|
PINDEX | GetConnectionCount () const |
|
virtual PBoolean | HasConnection (const PString &token) |
|
virtual void | DestroyConnection (OpalConnection *connection) |
|
virtual void | AdjustMediaFormats (bool local, const OpalConnection &connection, OpalMediaFormatList &mediaFormats) const |
|
virtual bool | GetMediaTransportAddresses (const OpalConnection &source, const OpalConnection &destination, const OpalMediaType &mediaType, OpalTransportAddressArray &transports) const |
|
virtual PBoolean | OnOpenMediaStream (OpalConnection &connection, OpalMediaStream &stream) |
|
virtual void | OnClosedMediaStream (const OpalMediaStream &stream) |
|
virtual void | OnFailedMediaStream (OpalConnection &connection, bool fromRemote, const PString &reason) |
|
void | SetMediaCryptoSuites (const PStringArray &security) |
|
PStringArray | GetMediaCryptoSuites () const |
|
virtual PStringArray | GetAllMediaCryptoSuites () const |
|
virtual void | OnUserInputString (OpalConnection &connection, const PString &value) |
|
virtual void | OnUserInputTone (OpalConnection &connection, char tone, int duration) |
|
virtual PString | ReadUserInput (OpalConnection &connection, const char *terminators="#\r\n", unsigned lastDigitTimeout=4, unsigned firstDigitTimeout=30) |
|
virtual PBoolean | Message (const PString &to, const PString &body) |
|
virtual PBoolean | Message (const PURL &to, const PString &type, const PString &body, PURL &from, PString &conversationId) |
|
virtual PBoolean | Message (OpalIM &Message) |
|
virtual void | OnMessageReceived (const OpalIM &message) |
|
virtual void | OnMWIReceived (const PString &party, OpalManager::MessageWaitingType type, const PString &extraInfo) |
|
virtual bool | GetConferenceStates (OpalConferenceStates &states, const PString &name=PString::Empty()) const |
|
virtual void | OnConferenceStatusChanged (OpalEndPoint &endpoint, const PString &uri, OpalConferenceState::ChangeType change) |
|
virtual PStringList | GetNetworkURIs (const PString &name) const |
|
virtual PBoolean | GarbageCollection () |
|
OpalManager & | GetManager () const |
|
const PString & | GetPrefixName () const |
|
bool | HasAttribute (Attributes opt) const |
|
const OpalProductInfo & | GetProductInfo () const |
|
void | SetProductInfo (const OpalProductInfo &info) |
|
const PString & | GetDefaultLocalPartyName () const |
|
virtual void | SetDefaultLocalPartyName (const PString &name) |
|
const PString & | GetDefaultDisplayName () const |
|
void | SetDefaultDisplayName (const PString &name) |
|
OpalBandwidth | GetInitialBandwidth (OpalBandwidth::Direction dir) const |
|
void | SetInitialBandwidth (OpalBandwidth::Direction dir, OpalBandwidth bandwidth) |
|
const OpalListenerList & | GetListeners () const |
|
const
OpalConnection::StringOptions & | GetDefaultStringOptions () const |
|
void | SetDefaultStringOptions (const OpalConnection::StringOptions &opts) |
|
void | SetDefaultStringOption (const PCaselessString &key, const PString &data) |
|
void | RemoveDefaultStringOption (const PCaselessString &key) |
|
virtual PStringList | GetAvailableStringOptions () const |
|
OpalConnection::SendUserInputModes | GetSendUserInputMode () const |
|
void | SetSendUserInputMode (OpalConnection::SendUserInputModes mode) |
|
This class describes and endpoint that handles LID lines. This is the ancestor class to the LID endpoints that handle PSTN lines and POTS lines respectively.
Set up a connection to a remote party. This is called from the OpalManager::MakeConnection() function once it has determined that this is the endpoint for the protocol.
The general form for this party parameter is:
[proto:][alias@][transport$]address[:port]
where the various fields will have meanings specific to the endpoint type. For example, with H.323 it could be "h323:Fred@site.com" which indicates a user Fred at gatekeeper size.com. Whereas for the PSTN endpoint it could be "pstn:5551234" which is to call 5551234 on the first available PSTN line.
The proto field is optional when passed to a specific endpoint. If it is present, however, it must agree with the endpoints protocol name or false is returned.
This function usually returns almost immediately with the connection continuing to occur in a new background thread.
If false is returned then the connection could not be established. For example if a PSTN endpoint is used and the assiciated line is engaged then it may return immediately. Returning a non-NULL value does not mean that the connection will succeed, only that an attempt is being made.
The default behaviour is pure.
- Parameters
-
call | Owner of connection |
party | Remote party to call |
userData | Arbitrary data to pass to connection |
options | options to pass to conneciton |
stringOptions | Options to pass to connection |
Implements OpalEndPoint.