OPAL  Version 3.18.8
OpalManagerConsole Class Reference

#include <console_mgr.h>

Inheritance diagram for OpalManagerConsole:
Collaboration diagram for OpalManagerConsole:

Data Structures

class  LockedStream
 

Public Member Functions

 OpalManagerConsole (const char *endpointPrefixes=OPAL_CONSOLE_PREFIXES)
 
 ~OpalManagerConsole ()
 
virtual PString GetArgumentSpec () const
 
virtual void Usage (ostream &strm, const PArgList &args)
 
bool PreInitialise (PArgList &args, bool verbose=false)
 
virtual bool Initialise (PArgList &args, bool verbose=false, const PString &defaultRoute=PString::Empty())
 
virtual void Run ()
 
virtual void EndRun (bool interrupt=false)
 
virtual void Broadcast (const PString &msg)
 
virtual bool OnLocalOutgoingCall (const OpalLocalConnection &connection)
 
virtual void OnEstablishedCall (OpalCall &call)
 
virtual void OnHold (OpalConnection &connection, bool fromRemote, bool onHold)
 
virtual bool OnChangedPresentationRole (OpalConnection &connection, const PString &newChairURI, bool request)
 
virtual void OnStartMediaPatch (OpalConnection &connection, OpalMediaPatch &patch)
 
virtual void OnClosedMediaStream (const OpalMediaStream &stream)
 
virtual void OnFailedMediaStream (OpalConnection &connection, bool fromRemote, const PString &reason)
 
virtual void OnUserInputString (OpalConnection &connection, const PString &value)
 
virtual void OnClearedCall (OpalCall &call)
 
__inline LockedStream LockedOutput () const
 
bool GetCallFromArgs (PCLI::Arguments &args, PSafePtr< OpalCall > &call)
 
template<class CONTYPE >
bool GetConnectionFromArgs (PCLI::Arguments &args, PSafePtr< CONTYPE > &connection)
 
bool GetStreamFromArgs (PCLI::Arguments &args, const OpalMediaType &mediaType, bool source, PSafePtr< OpalMediaStream > &stream)
 
- Public Member Functions inherited from OpalManager
void GarbageCollection ()
 
void QueueDecoupledEvent (PSafeWork *work, const char *group=NULL)
 
 OpalManager ()
 
 ~OpalManager ()
 
void AttachEndPoint (OpalEndPoint *endpoint, const PString &prefix=PString::Empty())
 
void DetachEndPoint (const PString &prefix)
 
void DetachEndPoint (OpalEndPoint *endpoint)
 
OpalEndPointFindEndPoint (const PString &prefix) const
 
template<class T >
T * FindEndPointAs (const PString &prefix) const
 
PList< OpalEndPointGetEndPoints () const
 
PStringList GetPrefixNames (const OpalEndPoint *endpoint=NULL) const
 
virtual PStringList GetNetworkURIs (const PString &name) const
 
void ShutDownEndpoints ()
 
virtual PSafePtr< OpalCallSetUpCall (const PString &partyA, const PString &partyB, void *userData=NULL, unsigned options=0, OpalConnection::StringOptions *stringOptions=NULL)
 
virtual PBoolean SetUpCall (const PString &partyA, const PString &partyB, PString &token, void *userData=NULL, unsigned options=0, OpalConnection::StringOptions *stringOptions=NULL)
 
virtual bool SetUpConference (OpalCall &call, const char *mixerURI=NULL, const char *localURI=NULL)
 
virtual PBoolean HasCall (const PString &token)
 
PINDEX GetCallCount () const
 
PArray< PString > GetAllCalls () const
 
PSafePtr< OpalCallFindCallWithLock (const PString &token, PSafetyMode mode=PSafeReadWrite) const
 
virtual bool OnLocalIncomingCall (OpalLocalConnection &connection)
 
virtual PBoolean IsCallEstablished (const PString &token)
 
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)
 
virtual void ClearAllCalls (OpalConnection::CallEndReason reason=OpalConnection::EndedByLocalUser, PBoolean wait=true)
 
virtual OpalCallCreateCall (void *userData)
 
OpalCallInternalCreateCall (void *userData=NULL)
 
virtual void DestroyCall (OpalCall *call)
 
virtual PString GetNextToken (char prefix)
 
 PARRAY (RouteTable, RouteEntry)
 
virtual PBoolean AddRouteEntry (const PString &spec)
 
PBoolean SetRouteTable (const PStringArray &specs)
 
void SetRouteTable (const RouteTable &table)
 
const RouteTable & GetRouteTable () const
 
virtual PString ApplyRouteTable (const PString &source, const PString &destination, PINDEX &entry)
 
virtual bool OnRouteConnection (PStringSet &routesTried, const PString &a_party, const PString &b_party, OpalCall &call, unsigned options, OpalConnection::StringOptions *stringOptions)
 
virtual PSafePtr< OpalConnectionMakeConnection (OpalCall &call, const PString &party, void *userData=NULL, unsigned int options=0, OpalConnection::StringOptions *stringOptions=NULL)
 
virtual void OnNewConnection (OpalConnection &connection)
 
virtual PBoolean OnIncomingConnection (OpalConnection &connection, unsigned options, OpalConnection::StringOptions *stringOptions)
 
virtual void OnApplyStringOptions (OpalConnection &connection, OpalConnection::StringOptions &stringOptions)
 
virtual void OnProceeding (OpalConnection &connection)
 
virtual void OnAlerting (OpalConnection &connection, bool withMedia)
 
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)
 
virtual PBoolean OnForwarded (OpalConnection &connection, const PString &remoteParty)
 
virtual bool OnTransferNotify (OpalConnection &connection, const PStringToString &info)
 
virtual void OnUserInputTone (OpalConnection &connection, char tone, int duration)
 
virtual PString ReadUserInput (OpalConnection &connection, const char *terminators="YX#\r\n", unsigned lastDigitTimeout=4, unsigned firstDigitTimeout=30)
 
virtual PBoolean StartRecording (const PString &callToken, const PFilePath &filename, const OpalRecordManager::Options &options=false)
 
virtual bool IsRecording (const PString &callToken)
 
virtual bool StopRecording (const PString &callToken)
 
virtual void OnConversation (const OpalIMContext::ConversationInfo &info)
 
virtual PBoolean Message (OpalIM &message)
 Send an Instant Message to a remote party. Backward compatible to old API. More...
 
virtual PBoolean Message (const PString &to, const PString &body)
 Send an Instant Message to a remote party. Backward compatible to old API. More...
 
virtual PBoolean Message (const PURL &to, const PString &type, const PString &body, PURL &from, PString &conversationId)
 
virtual void OnMessageReceived (const OpalIM &message)
 
virtual void OnMessageDisposition (const OpalIMContext::DispositionInfo &info)
 
virtual void OnCompositionIndication (const OpalIMContext::CompositionInfo &info)
 
virtual PBoolean IsLocalAddress (const PIPSocket::Address &remoteAddress) const
 
virtual PBoolean IsRTPNATEnabled (OpalConnection &connection, const PIPSocket::Address &localAddr, const PIPSocket::Address &peerAddr, const PIPSocket::Address &signalAddr, PBoolean incoming)
 
virtual PBoolean TranslateIPAddress (PIPSocket::Address &localAddress, const PIPSocket::Address &remoteAddress)
 
WORD GetTCPPortBase () const
 
WORD GetTCPPortMax () const
 
void SetTCPPorts (unsigned tcpBase, unsigned tcpMax)
 
PIPSocket::PortRange & GetTCPPortRange ()
 
const PIPSocket::PortRange & GetTCPPortRange () const
 
WORD GetUDPPortBase () const
 
WORD GetUDPPortMax () const
 
void SetUDPPorts (unsigned udpBase, unsigned udpMax)
 
PIPSocket::PortRange & GetUDPPortRange ()
 
const PIPSocket::PortRange & GetUDPPortRange () const
 
WORD GetRtpIpPortBase () const
 
WORD GetRtpIpPortMax () const
 
void SetRtpIpPorts (unsigned udpBase, unsigned udpMax)
 
PIPSocket::PortRange & GetRtpIpPortRange ()
 
const PIPSocket::PortRange & GetRtpIpPortRange () const
 
BYTE GetMediaTypeOfService () const
 
void SetMediaTypeOfService (unsigned tos)
 
BYTE GetMediaTypeOfService (const OpalMediaType &type) const
 
void SetMediaTypeOfService (const OpalMediaType &type, unsigned tos)
 
const PIPSocket::QoS & GetMediaQoS (const OpalMediaType &type) const
 
void SetMediaQoS (const OpalMediaType &type, const PIPSocket::QoS &qos)
 
PINDEX GetMaxRtpPayloadSize () const
 
void SetMaxRtpPayloadSize (PINDEX size, bool mtu=false)
 
PINDEX GetMaxRtpPacketSize () const
 
void SetMaxRtpPacketSize (PINDEX size)
 
const OpalProductInfoGetProductInfo () const
 
void SetProductInfo (const OpalProductInfo &info, bool updateAll=true)
 
const PString & GetDefaultUserName () const
 
void SetDefaultUserName (const PString &name, bool updateAll=true)
 
const PString & GetDefaultDisplayName () const
 
void SetDefaultDisplayName (const PString &name, bool updateAll=true)
 
void SetDefaultConnectionOptions (const OpalConnection::StringOptions &stringOptions)
 
bool CanAutoStartReceiveVideo () const
 
void SetAutoStartReceiveVideo (bool can)
 
bool CanAutoStartTransmitVideo () const
 
void SetAutoStartTransmitVideo (bool can)
 
const OpalJitterBuffer::ParamsGetJitterParameters () const
 
void SetJitterParameters (const OpalJitterBuffer::Params &params)
 
unsigned GetMinAudioJitterDelay () const
 
unsigned GetMaxAudioJitterDelay () const
 
void SetAudioJitterDelay (unsigned minDelay, unsigned maxDelay)
 
const PStringArray & GetMediaFormatOrder () const
 
void SetMediaFormatOrder (const PStringArray &order)
 
const PStringArray & GetMediaFormatMask () const
 
void SetMediaFormatMask (const PStringArray &mask)
 
virtual void SetSilenceDetectParams (const OpalSilenceDetector::Params &params)
 
const OpalSilenceDetector::ParamsGetSilenceDetectParams () const
 
virtual bool SetVideoInputDevice (const PVideoDevice::OpenArgs &deviceArgs, OpalVideoFormat::ContentRole role=OpalVideoFormat::eNoRole)
 
const PVideoDevice::OpenArgs & GetVideoInputDevice (OpalVideoFormat::ContentRole role=OpalVideoFormat::eNoRole) const
 
virtual PBoolean SetVideoPreviewDevice (const PVideoDevice::OpenArgs &deviceArgs, OpalVideoFormat::ContentRole role=OpalVideoFormat::eNoRole)
 
const PVideoDevice::OpenArgs & GetVideoPreviewDevice (OpalVideoFormat::ContentRole role=OpalVideoFormat::eNoRole) const
 
virtual PBoolean SetVideoOutputDevice (const PVideoDevice::OpenArgs &deviceArgs, OpalVideoFormat::ContentRole role=OpalVideoFormat::eNoRole)
 
const PVideoDevice::OpenArgs & GetVideoOutputDevice (OpalVideoFormat::ContentRole role=OpalVideoFormat::eNoRole) const
 
PBoolean DetectInBandDTMFDisabled () const
 
void DisableDetectInBandDTMF (PBoolean mode)
 
const PTimeInterval & GetNoMediaTimeout () const
 
void SetNoMediaTimeout (const PTimeInterval &newInterval)
 
const PTimeInterval & GetTxMediaTimeout () const
 
void SetTxMediaTimeout (const PTimeInterval &newInterval)
 
const PTimeInterval & GetSignalingTimeout () const
 
void SetSignalingTimeout (const PTimeInterval &newInterval)
 
const PTimeInterval & GetTransportIdleTime () const
 
void SetTransportIdleTime (const PTimeInterval &newInterval)
 
const PTimeInterval & GetNatKeepAliveTime () const
 
void SetNatKeepAliveTime (const PTimeInterval &newInterval)
 
const PTimeInterval & GetStaleReceiverTimeout () const
 
void SetStaleReceiverTimeout (const PTimeInterval &newInterval)
 
const PString & GetDefaultILSServer () const
 
void SetDefaultILSServer (const PString &server)
 
virtual OpalMediaFormatList GetCommonMediaFormats (bool transportable, bool pcmAudio) const
 
virtual void AdjustMediaFormats (bool local, const OpalConnection &connection, OpalMediaFormatList &mediaFormats) const
 
 P_DECLARE_TRACED_ENUM (MediaTransferMode, MediaTransferBypass, MediaTransferForward, MediaTransferTranscode)
 How to handle media between two "network" connections. More...
 
virtual MediaTransferMode GetMediaTransferMode (const OpalConnection &provider, const OpalConnection &consumer, const OpalMediaType &mediaType) const
 
virtual bool GetMediaTransportAddresses (const OpalConnection &provider, const OpalConnection &consumer, unsigned sessionId, const OpalMediaType &mediaType, OpalTransportAddressArray &transports) const
 
virtual PBoolean OnOpenMediaStream (OpalConnection &connection, OpalMediaStream &stream)
 
virtual bool OnLocalRTP (OpalConnection &connection1, OpalConnection &connection2, unsigned sessionID, bool opened) const
 
bool SetMediaPassThrough (const PString &token1, const PString &token2, bool bypass, unsigned sessionID=0, bool network=true)
 
virtual PBoolean CreateVideoInputDevice (const OpalConnection &connection, const OpalMediaFormat &mediaFormat, PVideoInputDevice *&device, PBoolean &autoDelete)
 
virtual PBoolean CreateVideoOutputDevice (const OpalConnection &connection, const OpalMediaFormat &mediaFormat, PBoolean preview, PVideoOutputDevice *&device, PBoolean &autoDelete)
 
virtual bool CreateVideoInputDevice (const OpalConnection &connection, const PVideoDevice::OpenArgs &args, PVideoInputDevice *&device, PBoolean &autoDelete)
 
virtual bool CreateVideoOutputDevice (const OpalConnection &connection, const PVideoDevice::OpenArgs &args, PVideoOutputDevice *&device, PBoolean &autoDelete)
 
virtual OpalMediaPatchCreateMediaPatch (OpalMediaStream &source, PBoolean requiresPatchThread=true)
 
virtual void OnStopMediaPatch (OpalConnection &connection, OpalMediaPatch &patch)
 
virtual bool OnMediaFailed (OpalConnection &connection, unsigned sessionId)
 
virtual void OnMWIReceived (const PString &party, 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)
 

Protected Types

typedef map< PString,
OpalMediaStatistics
StatsMap
 

Protected Member Functions

OpalConsoleEndPointGetConsoleEndPoint (const PString &prefix)
 
virtual H323ConsoleEndPointCreateH323EndPoint ()
 
virtual SIPConsoleEndPointCreateSIPEndPoint ()
 
virtual OpalConsoleLineEndPointCreateLineEndPoint ()
 
virtual OpalConsolePCSSEndPointCreatePCSSEndPoint ()
 
virtual OpalConsoleIVREndPointCreateIVREndPoint ()
 
virtual OpalConsoleMixerEndPointCreateMixerEndPoint ()
 
 PDECLARE_MUTEX (m_outputMutex, OpalConsoleOutput)
 
 PDECLARE_MUTEX (m_statsMutex, OpalConsoleStats)
 
virtual bool OutputStatistics ()
 
virtual bool OutputStatistics (ostream &strm)
 
virtual bool OutputCallStatistics (ostream &strm, OpalCall &call)
 
virtual bool OutputStreamStatistics (ostream &strm, const OpalMediaStream &stream)
 
- Protected Member Functions inherited from OpalManager
 PDECLARE_MUTEX (m_routeMutex)
 
 PDECLARE_READ_WRITE_MUTEX (m_endpointsMutex)
 
 PDECLARE_MUTEX (m_clearingAllCallsMutex)
 
void InternalClearAllCalls (OpalConnection::CallEndReason reason, bool wait, bool first)
 
 PDECLARE_NOTIFIER (PThread, OpalManager, GarbageMain)
 
friend OpalCall::OpalCall (OpalManager &mgr)
 

Protected Attributes

PStringArray m_endpointPrefixes
 
PSyncPoint m_endRun
 
unsigned m_interrupted
 
bool m_verbose
 
ostream * m_outputStream
 
PString m_lastCallToken
 
PTimeInterval m_statsPeriod
 
PFilePath m_statsFile
 
StatsMap m_statistics
 
- Protected Attributes inherited from OpalManager
OpalProductInfo m_productInfo
 
PString m_defaultUserName
 
PString m_defaultDisplayName
 
MediaQoSMap m_mediaQoS
 
OpalConnection::StringOptions m_defaultConnectionOptions
 
PINDEX m_rtpPayloadSizeMax
 
PINDEX m_rtpPacketSizeMax
 
OpalJitterBuffer::Params m_jitterParams
 
PStringArray m_mediaFormatOrder
 
PStringArray m_mediaFormatMask
 
bool m_disableDetectInBandDTMF
 
PTimeInterval m_noMediaTimeout
 
PTimeInterval m_txMediaTimeout
 
PTimeInterval m_signalingTimeout
 
PTimeInterval m_transportIdleTime
 
PTimeInterval m_natKeepAliveTime
 
PTimeInterval m_staleReceiverTimeout
 
PString m_ilsServer
 
OpalSilenceDetector::Params m_silenceDetectParams
 
PVideoDevice::OpenArgs m_videoInputDevice [OpalVideoFormat::NumContentRole]
 
PVideoDevice::OpenArgs m_videoPreviewDevice [OpalVideoFormat::NumContentRole]
 
PVideoDevice::OpenArgs m_videoOutputDevice [OpalVideoFormat::NumContentRole]
 
PIPSocket::PortRange m_tcpPorts
 
PIPSocket::PortRange m_udpPorts
 
PIPSocket::PortRange m_rtpIpPorts
 
RouteTable m_routeTable
 
PList< OpalEndPointm_endpointList
 
std::map< PString, OpalEndPoint * > m_endpointMap
 
atomic< unsigned > lastCallTokenID
 
OpalManager::CallDict m_activeCalls
 
atomic< PINDEX > m_clearingAllCallsCount
 
PSyncPoint m_allCallsCleared
 
PThread * m_garbageCollector
 
PSyncPoint m_garbageCollectExit
 
PTime m_garbageCollectChangeTime
 
PSafeThreadPool m_decoupledEventPool
 

Friends

class LockedStream
 

Additional Inherited Members

- Public Types inherited from OpalManager
typedef std::map
< OpalMediaType,
PIPSocket::QoS > 
MediaQoSMap
 
enum  MessageWaitingType {
  NoMessageWaiting, VoiceMessageWaiting, FaxMessageWaiting, PagerMessageWaiting,
  MultimediaMessageWaiting, TextMessageWaiting, NumMessageWaitingTypes
}
 Message waiting sub-types. More...
 
- Static Public Member Functions inherited from OpalManager
static bool SetMediaPassThrough (OpalConnection &connection1, OpalConnection &connection2, bool bypass, unsigned sessionID=0)
 

Detailed Description

OPAL manager class for console applications. An OpalManager derived class for use in a console application, providing a standard set of command line arguments for configuring many system parameters. Used by the sample applications such as faxopal, ovropal etc.

Member Typedef Documentation

typedef map<PString, OpalMediaStatistics> OpalManagerConsole::StatsMap
protected

Constructor & Destructor Documentation

OpalManagerConsole::OpalManagerConsole ( const char *  endpointPrefixes = OPAL_CONSOLE_PREFIXES)
OpalManagerConsole::~OpalManagerConsole ( )

Member Function Documentation

virtual void OpalManagerConsole::Broadcast ( const PString &  msg)
virtual
virtual H323ConsoleEndPoint* OpalManagerConsole::CreateH323EndPoint ( )
protectedvirtual
virtual OpalConsoleIVREndPoint* OpalManagerConsole::CreateIVREndPoint ( )
protectedvirtual
virtual OpalConsoleLineEndPoint* OpalManagerConsole::CreateLineEndPoint ( )
protectedvirtual
virtual OpalConsoleMixerEndPoint* OpalManagerConsole::CreateMixerEndPoint ( )
protectedvirtual
virtual OpalConsolePCSSEndPoint* OpalManagerConsole::CreatePCSSEndPoint ( )
protectedvirtual
virtual SIPConsoleEndPoint* OpalManagerConsole::CreateSIPEndPoint ( )
protectedvirtual
virtual void OpalManagerConsole::EndRun ( bool  interrupt = false)
virtual
virtual PString OpalManagerConsole::GetArgumentSpec ( ) const
virtual
bool OpalManagerConsole::GetCallFromArgs ( PCLI::Arguments &  args,
PSafePtr< OpalCall > &  call 
)
template<class CONTYPE >
bool OpalManagerConsole::GetConnectionFromArgs ( PCLI::Arguments &  args,
PSafePtr< CONTYPE > &  connection 
)
inline
OpalConsoleEndPoint* OpalManagerConsole::GetConsoleEndPoint ( const PString &  prefix)
protected
bool OpalManagerConsole::GetStreamFromArgs ( PCLI::Arguments &  args,
const OpalMediaType mediaType,
bool  source,
PSafePtr< OpalMediaStream > &  stream 
)
virtual bool OpalManagerConsole::Initialise ( PArgList &  args,
bool  verbose = false,
const PString &  defaultRoute = PString::Empty() 
)
virtual
__inline LockedStream OpalManagerConsole::LockedOutput ( ) const
inline
virtual bool OpalManagerConsole::OnChangedPresentationRole ( OpalConnection connection,
const PString &  newChairURI,
bool  request 
)
virtual

Indicate presentation token change. The request parameter indicates if this is an "after the fact" indication has changed, or if the connection may reject the change and retain the token it already has.

Default behaviour returns true.

Reimplemented from OpalManager.

virtual void OpalManagerConsole::OnClearedCall ( OpalCall call)
virtual

A call back function whenever a call is cleared. A call is cleared whenever there is no longer any connections attached to it. This function is called just before the call is deleted. However, it may be used to display information on the call after completion, eg the call parties and duration.

Note that there is not a one to one relationship with the OnEstablishedCall() function. This function may be called without that function being called. For example if MakeConnection() was used but the call never completed.

The default behaviour removes the call from the activeCalls dictionary.

Reimplemented from OpalManager.

virtual void OpalManagerConsole::OnClosedMediaStream ( const OpalMediaStream stream)
virtual

Call back for closed a media stream.

The default behaviour does nothing.

Reimplemented from OpalManager.

virtual void OpalManagerConsole::OnEstablishedCall ( OpalCall call)
virtual

A call back function whenever a call is completed. In telephony terminology a completed call is one where there is an established link between two parties.

This called from the OpalCall::OnEstablished() function.

The default behaviour does nothing.

Reimplemented from OpalManager.

virtual void OpalManagerConsole::OnFailedMediaStream ( OpalConnection connection,
bool  fromRemote,
const PString &  reason 
)
virtual

Call back for a media stream that failed to open.

The default behaviour does nothing.

Reimplemented from OpalManager.

virtual void OpalManagerConsole::OnHold ( OpalConnection connection,
bool  fromRemote,
bool  onHold 
)
virtual

A call back function whenever a connection is "held" or "retrieved". This indicates that a connection to an endpoint was held, or retrieved, either locally or by the remote endpoint.

The default behaviour does nothing.

Reimplemented from OpalManager.

virtual bool OpalManagerConsole::OnLocalOutgoingCall ( const OpalLocalConnection connection)
virtual

A call back function whenever a call is being initated locally. An application may use this function to indicate that a call is in progress.

This called from the OpalLocalEndPoint::OnOutgoingCall() function.

The default behaviour does nothing and returns true.

Reimplemented from OpalManager.

virtual void OpalManagerConsole::OnStartMediaPatch ( OpalConnection connection,
OpalMediaPatch patch 
)
virtual

Call back for a media patch thread starting. This function is called within the context of the thread associated with the media patch.

The default behaviour does nothing

Reimplemented from OpalManager.

virtual void OpalManagerConsole::OnUserInputString ( OpalConnection connection,
const PString &  value 
)
virtual

Call back for remote endpoint has sent user input as a string.

The default behaviour call OpalConnection::SetUserInput() which saves the value so the GetUserInput() function can return it.

Reimplemented from OpalManager.

virtual bool OpalManagerConsole::OutputCallStatistics ( ostream &  strm,
OpalCall call 
)
protectedvirtual
virtual bool OpalManagerConsole::OutputStatistics ( )
protectedvirtual
virtual bool OpalManagerConsole::OutputStatistics ( ostream &  strm)
protectedvirtual
virtual bool OpalManagerConsole::OutputStreamStatistics ( ostream &  strm,
const OpalMediaStream stream 
)
protectedvirtual
OpalManagerConsole::PDECLARE_MUTEX ( m_outputMutex  ,
OpalConsoleOutput   
)
protected
OpalManagerConsole::PDECLARE_MUTEX ( m_statsMutex  ,
OpalConsoleStats   
)
protected
bool OpalManagerConsole::PreInitialise ( PArgList &  args,
bool  verbose = false 
)
virtual void OpalManagerConsole::Run ( )
virtual
virtual void OpalManagerConsole::Usage ( ostream &  strm,
const PArgList &  args 
)
virtual

Friends And Related Function Documentation

friend class LockedStream
friend

Field Documentation

PStringArray OpalManagerConsole::m_endpointPrefixes
protected
PSyncPoint OpalManagerConsole::m_endRun
protected
unsigned OpalManagerConsole::m_interrupted
protected
PString OpalManagerConsole::m_lastCallToken
protected
ostream* OpalManagerConsole::m_outputStream
protected
StatsMap OpalManagerConsole::m_statistics
protected
PFilePath OpalManagerConsole::m_statsFile
protected
PTimeInterval OpalManagerConsole::m_statsPeriod
protected
bool OpalManagerConsole::m_verbose
protected

The documentation for this class was generated from the following file: