OPAL  Version 3.14.3
H323Connection Class Reference

#include <h323con.h>

Inheritance diagram for H323Connection:
Collaboration diagram for H323Connection:

Public Member Functions

bool GetLocalH239Control () const
 
void SetLocalH239Control (bool on)
 
bool GetRemoteH239Control () const
 
OpalMediaFormatList GetRemoteH239Formats () const
 
H4507HandlergetH4507handler ()
 
H460_FeatureSetGetFeatureSet () const
 
virtual bool OnSendFeatureSet (H460_MessageType pduType, H225_FeatureSet &) const
 
virtual void OnReceiveFeatureSet (H460_MessageType pduType, const H225_FeatureSet &) const
 
virtual void OnReceiveOLCGenericInformation (unsigned sessionID, const H245_ArrayOf_GenericInformation &info, bool isAck) const
 
virtual bool OnSendingOLCGenericInformation (unsigned sessionID, H245_ArrayOf_GenericInformation &info, bool isAck) const
 
virtual bool OnMediaCommand (OpalMediaStream &stream, const OpalMediaCommand &command)
 
 P_DECLARE_ENUM (CompatibilityIssues, e_NoMultipleTunnelledH245, e_BadMasterSlaveConflict, e_NoUserInputCapability, e_H224MustBeSession3, e_NeedTCSAfterNonEmptyTCS, e_NeedMSDAfterNonEmptyTCS, e_ForceMaintainConnection)
 
 P_DECLARE_ENUM_NAMES (CompatibilityIssues,"No-Multiple-Tunnelled-H245","Bad-Master-Slave-Conflict","No-User-Input-Capability","H.224-Must-Be-Session-3","Need-TCS-after-Non-Empty-TCS","Need-MSD-after-Non-Empty-TCS","Force-Maintain-TCP-Connection")
 
bool HasCompatibilityIssue (CompatibilityIssues issue) const
 Determine if we must compensate for remote endpoint. More...
 
PBoolean StartHandleControlChannel ()
 
virtual PBoolean OnStartHandleControlChannel ()
 
void EndHandleControlChannel ()
 
Construction
 H323Connection (OpalCall &call, H323EndPoint &endpoint, const PString &token, const PString &alias, const H323TransportAddress &address, unsigned options=0, OpalConnection::StringOptions *stringOptions=NULL)
 
 ~H323Connection ()
 
Overrides from OpalConnection
virtual bool IsNetworkConnection () const
 
virtual PString GetPrefixName () const
 
virtual void OnApplyStringOptions ()
 Call back for connection to act on changed string options. More...
 
virtual PBoolean SetUpConnection ()
 
virtual PBoolean SetAlerting (const PString &calleeName, PBoolean withMedia)
 
virtual PBoolean SetConnected ()
 
virtual PBoolean SetProgressed ()
 
virtual void OnEstablished ()
 
virtual void OnReleased ()
 
virtual OpalTransportAddress GetRemoteAddress () const
 
virtual PString GetDestinationAddress ()
 
virtual PString GetAlertingType () const
 
virtual bool SetAlertingType (const PString &info)
 
unsigned GetProgressIndicator () const
 
void SetProgressIndicator (unsigned indicator)
 
virtual OpalMediaFormatList GetMediaFormats () const
 
virtual PStringArray GetMediaCryptoSuites () const
 
virtual unsigned GetNextSessionID (const OpalMediaType &mediaType, bool isSource)
 
virtual OpalMediaStreamPtr OpenMediaStream (const OpalMediaFormat &mediaFormat, unsigned sessionID, bool isSource)
 
virtual void OnClosedMediaStream (const OpalMediaStream &stream)
 
virtual bool GetMediaTransportAddresses (OpalConnection &otherConnection, const OpalMediaType &mediaType, OpalTransportAddressArray &transports) const
 
virtual bool RequestPresentationRole (bool release)
 
virtual bool HasPresentationRole () const
 
Signalling Channel
void AttachSignalChannel (const PString &token, H323Transport *channel, PBoolean answeringCall)
 
PBoolean WriteSignalPDU (H323SignalPDU &pdu)
 
virtual void HandleSignallingChannel ()
 
virtual PBoolean HandleSignalPDU (H323SignalPDU &pdu)
 
virtual void HandleTunnelPDU (H323SignalPDU *txPDU)
 
virtual PBoolean OnReceivedSignalSetup (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedSignalSetupAck (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedSignalInformation (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedCallProceeding (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedProgress (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedAlerting (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedSignalConnect (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedFacility (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedSignalNotify (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedSignalStatus (const H323SignalPDU &pdu)
 
virtual PBoolean OnReceivedStatusEnquiry (const H323SignalPDU &pdu)
 
virtual void OnReceivedReleaseComplete (const H323SignalPDU &pdu)
 
virtual PBoolean OnUnknownSignalPDU (const H323SignalPDU &pdu)
 
virtual void OnSendARQ (H225_AdmissionRequest &arq)
 
virtual void OnReceivedACF (const H225_AdmissionConfirm &acf)
 
virtual void OnReceivedARJ (const H225_AdmissionReject &arj)
 
virtual void OnSendIRR (H225_InfoRequestResponse &irr) const
 
virtual void OnSendDRQ (H225_DisengageRequest &drq) const
 
virtual PBoolean OnIncomingCall (const H323SignalPDU &setupPDU, H323SignalPDU &alertingPDU)
 
virtual PBoolean ForwardCall (const PString &forwardParty)
 
virtual bool TransferConnection (const PString &remoteParty)
 
virtual bool HoldRemote (bool placeOnHold)
 
virtual bool IsOnHold (bool fromRemote) const
 
bool TransferCall (const PString &remoteParty, const PString &callIdentity=PString::Empty())
 
void ConsultationTransfer (const PString &primaryCallToken)
 
virtual void HandleConsultationTransfer (const PString &callIdentity, H323Connection &incoming)
 
PBoolean IsTransferringCall () const
 
PBoolean IsTransferredCall () const
 
virtual void HandleTransferCall (const PString &token, const PString &identity)
 
int GetCallTransferInvokeId ()
 
virtual void HandleCallTransferFailure (const int returnError)
 
void SetAssociatedCallToken (const PString &token)
 
virtual void OnConsultationTransferSuccess (H323Connection &secondaryCall)
 
virtual void IntrudeCall (unsigned capabilityLevel)
 
virtual void HandleIntrudeCall (const PString &token, const PString &identity)
 
void SetCallIntrusion ()
 
PBoolean IsCallIntrusion ()
 
unsigned GetLocalCallIntrusionProtectionLevel ()
 
virtual PBoolean GetRemoteCallIntrusionProtectionLevel (const PString &callToken, unsigned callIntrusionProtectionLevel)
 
virtual void SetIntrusionImpending ()
 
virtual void SetForcedReleaseAccepted ()
 
virtual void SetIntrusionNotAuthorized ()
 
void SendCallWaitingIndication (const unsigned nbOfAddWaitingCalls=0)
 
virtual AnswerCallResponse OnAnswerCall (const PString &callerName, const H323SignalPDU &setupPDU, H323SignalPDU &connectPDU, H323SignalPDU &progressPDU)
 
virtual AnswerCallResponse OnAnswerCall (const PString &callerName)
 
void AnsweringCall (AnswerCallResponse response)
 
virtual CallEndReason SendSignalSetup (const PString &alias, const H323TransportAddress &address)
 
virtual PBoolean OnSendSignalSetup (H323SignalPDU &setupPDU)
 
virtual PBoolean OnSendCallProceeding (H323SignalPDU &callProceedingPDU)
 
virtual PBoolean OnSendReleaseComplete (H323SignalPDU &releaseCompletePDU)
 
virtual PBoolean OnAlerting (const H323SignalPDU &alertingPDU, const PString &user)
 
virtual PBoolean OnInsufficientDigits ()
 
virtual void SendMoreDigits (const PString &digits)
 
virtual PBoolean OnOutgoingCall (const H323SignalPDU &connectPDU)
 
virtual PBoolean SendFastStartAcknowledge (H225_ArrayOf_PASN_OctetString &array)
 
virtual PBoolean HandleFastStartAcknowledge (const H225_ArrayOf_PASN_OctetString &array)
 
Logical Channel Management
virtual void OnSelectLogicalChannels ()
 
virtual void SelectDefaultLogicalChannel (const OpalMediaType &mediaType, unsigned sessionID)
 
virtual void SelectFastStartChannels (unsigned sessionID, PBoolean transmitter, PBoolean receiver)
 
virtual void OpenFastStartChannel (unsigned sessionID, H323Channel::Directions direction)
 
virtual PBoolean OpenLogicalChannel (const H323Capability &capability, unsigned sessionID, H323Channel::Directions dir)
 
virtual void SendFlowControlCommand (unsigned channelNumber, unsigned newBitRate)
 
virtual PBoolean OnOpenLogicalChannel (const H245_OpenLogicalChannel &openPDU, H245_OpenLogicalChannelAck &ackPDU, unsigned &errorCode, H323Channel &channel)
 
virtual PBoolean OnConflictingLogicalChannel (H323Channel &channel)
 
virtual H323ChannelCreateLogicalChannel (const H245_OpenLogicalChannel &open, PBoolean startingFast, unsigned &errorCode)
 
virtual H323ChannelCreateRealTimeLogicalChannel (const H323Capability &capability, H323Channel::Directions dir, unsigned sessionID, const H245_H2250LogicalChannelParameters *param)
 
virtual H323_RTPChannelCreateRTPChannel (const H323Capability &capability, H323Channel::Directions direction, H323RTPSession &rtp)
 
virtual PBoolean OnCreateLogicalChannel (const H323Capability &capability, H323Channel::Directions dir, unsigned &errorCode)
 
virtual PBoolean OnStartLogicalChannel (H323Channel &channel)
 
virtual void CloseLogicalChannel (unsigned number, PBoolean fromRemote)
 
virtual void CloseLogicalChannelNumber (const H323ChannelNumber &number)
 
virtual void CloseAllLogicalChannels (PBoolean fromRemote)
 
virtual void OnClosedLogicalChannel (const H323Channel &channel)
 
virtual PBoolean OnClosingLogicalChannel (H323Channel &channel)
 
virtual void OnLogicalChannelFlowControl (H323Channel *channel, long bitRateRestriction)
 
virtual void OnLogicalChannelJitter (H323Channel *channel, DWORD jitter, int skippedFrameCount, int additionalBuffer)
 
H323ChannelGetLogicalChannel (unsigned number, PBoolean fromRemote) const
 
H323ChannelFindChannel (unsigned sessionId, PBoolean fromRemote) const
 
Bandwidth Management
virtual OpalBandwidth GetBandwidthUsed (OpalBandwidth::Direction dir) const
 
Indications
virtual SendUserInputModes GetRealSendUserInputMode () const
 
virtual PBoolean SendUserInputString (const PString &value)
 
virtual PBoolean SendUserInputTone (char tone, unsigned duration=0)
 
virtual PBoolean SendUserInputIndicationQ931 (const PString &value)
 
virtual PBoolean SendUserInputIndicationString (const PString &value)
 
virtual PBoolean SendUserInputIndicationTone (char tone, unsigned duration=0, unsigned logicalChannel=0, unsigned rtpTimestamp=0)
 
virtual PBoolean SendUserInputIndication (const H245_UserInputIndication &pdu)
 
virtual void OnUserInputIndication (const H245_UserInputIndication &pdu)
 
RTP Session Management
virtual PString GetSessionCodecNames (unsigned sessionID) const
 
virtual void DetermineRTPNAT (const OpalTransport &transport, const OpalTransportAddress &signalAddr)
 
Request Mode Changes
virtual PBoolean RequestModeChange (const PString &newModes)
 
virtual PBoolean RequestModeChange (const H245_ArrayOf_ModeDescription &newModes)
 
virtual PBoolean OnRequestModeChange (const H245_RequestMode &pdu, H245_RequestModeAck &ack, H245_RequestModeReject &reject, PINDEX &selectedMode)
 
virtual void OnModeChanged (const H245_ModeDescription &newMode)
 
virtual void OnAcceptModeChange (const H245_RequestModeAck &pdu)
 
virtual void OnRefusedModeChange (const H245_RequestModeReject *pdu)
 
Other services
virtual PBoolean RequestModeChangeT38 (const char *capabilityNames="T.38\nT38FaxUDP")
 
virtual PBoolean GetAdmissionRequestAuthentication (const H225_AdmissionRequest &arq, H235Authenticators &authenticators)
 
- Public Member Functions inherited from OpalRTPConnection
 OpalRTPConnection (OpalCall &call, OpalRTPEndPoint &endpoint, const PString &token, unsigned options=0, OpalConnection::StringOptions *stringOptions=NULL)
 
 ~OpalRTPConnection ()
 
virtual OpalMediaStreamCreateMediaStream (const OpalMediaFormat &mediaFormat, unsigned sessionID, PBoolean isSource)
 
virtual void AdjustMediaFormats (bool local, const OpalConnection *otherConnection, OpalMediaFormatList &mediaFormats) const
 
virtual void OnPatchMediaStream (PBoolean isSource, OpalMediaPatch &patch)
 
 P_DECLARE_BITWISE_ENUM (CreateMediaSessionsSecurity, 2,(e_NoMediaSessions, e_ClearMediaSession, e_SecureMediaSession))
 
vector< bool > CreateAllMediaSessions (CreateMediaSessionsSecurity security)
 
virtual OpalMediaSessionCreateMediaSession (unsigned sessionId, const OpalMediaType &mediaType, const PString &sessionType=PString::Empty())
 
virtual OpalMediaSessionGetMediaSession (unsigned sessionID) const
 
virtual OpalMediaSessionFindSessionByMediaType (const OpalMediaType &mediaType) const
 
virtual OpalMediaSessionFindSessionByLocalPort (WORD port) const
 
virtual OpalMediaSessionUseMediaSession (unsigned sessionId, const OpalMediaType &mediaType, const PString &sessionType=PString::Empty())
 
virtual void ReleaseMediaSession (unsigned sessionID)
 
virtual bool ChangeSessionID (unsigned fromSessionID, unsigned toSessionID)
 
virtual void ReplaceMediaSession (unsigned sessionId, OpalMediaSession *mediaSession)
 
virtual bool SetSessionQoS (OpalRTPSession *session)
 
- Public Member Functions inherited from OpalConnection
 P_DECLARE_TRACED_ENUM_EX (CallEndReasonCodes, NumCallEndReasons, EndedByLocalUser, 0, EndedByNoAccept, EndedByAnswerDenied, EndedByRemoteUser, EndedByRefusal, EndedByNoAnswer, EndedByCallerAbort, EndedByTransportFail, EndedByConnectFail, EndedByGatekeeper, EndedByNoUser, EndedByNoBandwidth, EndedByCapabilityExchange, EndedByCallForwarded, EndedBySecurityDenial, EndedByLocalBusy, EndedByLocalCongestion, EndedByRemoteBusy, EndedByRemoteCongestion, EndedByUnreachable, EndedByNoEndPoint, EndedByHostOffline, EndedByTemporaryFailure, EndedByQ931Cause, EndedByDurationLimit, EndedByInvalidConferenceID, EndedByNoDialTone, EndedByNoRingBackTone, EndedByOutOfService, EndedByAcceptingCallWaiting, EndedByGkAdmissionFailed, EndedByMediaFailed, EndedByCallCompletedElsewhere, EndedByCertificateAuthority, EndedByIllegalAddress, EndedByCustomCode)
 
 P_DECLARE_TRACED_ENUM (AnswerCallResponse, AnswerCallNow, AnswerCallDenied, AnswerCallPending, AnswerCallDeferred, AnswerCallAlertWithMedia, AnswerCallDeferredWithMedia, AnswerCallProgress, AnswerCallNowAndReleaseCurrent)
 
const StringOptionsGetStringOptions () const
 Get the string options associated with this connection. More...
 
StringOptionsGetStringOptions ()
 
void SetStringOptions (const StringOptions &options, bool overwrite)
 Set the string options associated with this connection. More...
 
virtual void EnableRecording ()
 
virtual void DisableRecording ()
 
 OpalConnection (OpalCall &call, OpalEndPoint &endpoint, const PString &token, unsigned options=0, OpalConnection::StringOptions *stringOptions=NULL)
 
 ~OpalConnection ()
 
void PrintOn (ostream &strm) const
 
virtual PBoolean OnIncomingConnection (unsigned int options, OpalConnection::StringOptions *stringOptions)
 
virtual PBoolean OnSetUpConnection ()
 
virtual void OnProceeding ()
 
virtual void OnAlerting ()
 
virtual void OnConnected ()
 
virtual bool OnTransferNotify (const PStringToString &info, const OpalConnection *transferringConnection)
 
virtual void Release (CallEndReason reason=EndedByLocalUser, bool synchronous=false)
 
PSafePtr< OpalConnectionGetOtherPartyConnection () const
 
template<class cls >
PSafePtr< cls > GetOtherPartyConnectionAs () const
 
virtual OpalMediaFormatList GetLocalMediaFormats ()
 
virtual bool RequireSymmetricMediaStreams () const
 
virtual
OpalMediaType::AutoStartMode 
GetAutoStart (const OpalMediaType &mediaType) const
 
virtual void AutoStartMediaStreams (bool transfer=false)
 
bool CloseMediaStream (unsigned sessionId, bool source)
 
bool CloseMediaStream (OpalMediaStreamPtr stream)
 
bool RemoveMediaStream (OpalMediaStream &strm)
 
virtual void StartMediaStreams ()
 
virtual void CloseMediaStreams ()
 
virtual void PauseMediaStreams (bool paused)
 
virtual void OnPauseMediaStream (OpalMediaStream &strm, bool paused)
 
OpalMediaStreamPtr GetMediaStream (const PString &streamID, bool source) const
 
OpalMediaStreamPtr GetMediaStream (unsigned sessionId, bool source) const
 
OpalMediaStreamPtr GetMediaStream (const OpalMediaType &mediaType, bool source, OpalMediaStreamPtr previous=NULL) const
 
virtual PBoolean OnOpenMediaStream (OpalMediaStream &stream)
 
virtual void OnFailedMediaStream (bool fromRemote, const PString &reason)
 
virtual void OnStartMediaPatch (OpalMediaPatch &patch)
 
virtual void OnStopMediaPatch (OpalMediaPatch &patch)
 
virtual bool OnMediaFailed (unsigned sessionId, bool source)
 
bool AllMediaFailed () const
 
virtual bool ExecuteMediaCommand (const OpalMediaCommand &command, unsigned sessionID=0, const OpalMediaType &mediaType=OpalMediaType()) const
 
virtual bool SendVideoUpdatePicture (unsigned sessionID=0, bool force=false) const
 
void SendVideoUpdatePictureCallback (unsigned sessionID, bool force)
 
virtual void OnRxIntraFrameRequest (const OpalMediaSession &session, bool force)
 
virtual PBoolean SetAudioVolume (PBoolean source, unsigned percentage)
 
virtual PBoolean GetAudioVolume (PBoolean source, unsigned &percentage)
 
virtual bool SetAudioMute (bool source, bool mute)
 
virtual bool GetAudioMute (bool source, bool &mute)
 
virtual unsigned GetAudioSignalLevel (PBoolean source)
 
OpalBandwidth GetBandwidthAvailable (OpalBandwidth::Direction dir) const
 
virtual bool SetBandwidthAvailable (OpalBandwidth::Direction dir, OpalBandwidth availableBandwidth)
 
virtual bool SetBandwidthAllocated (OpalBandwidth::Direction dir, OpalBandwidth newBandwidth)
 
virtual bool SetBandwidthUsed (OpalBandwidth::Direction dir, OpalBandwidth releasedBandwidth, OpalBandwidth requiredBandwidth)
 
 P_DECLARE_TRACED_ENUM (SendUserInputModes, SendUserInputAsQ931, SendUserInputAsString, SendUserInputAsTone, SendUserInputAsRFC2833, SendUserInputAsInlineRFC2833=SendUserInputAsRFC2833, SendUserInputInBand, SendUserInputAsProtocolDefault)
 
virtual void SetSendUserInputMode (SendUserInputModes mode)
 
virtual SendUserInputModes GetSendUserInputMode () const
 
virtual void OnUserInputString (const PString &value)
 
void OnUserInputStringCallback (PString value)
 
virtual void OnUserInputTone (char tone, unsigned duration)
 
void SendUserInputHookFlash (unsigned duration=500)
 
virtual PString GetUserInput (unsigned timeout=30)
 
virtual void SetUserInput (const PString &input)
 
virtual PString ReadUserInput (const char *terminators="YX#\r\n", unsigned lastDigitTimeout=4, unsigned firstDigitTimeout=30)
 
virtual PBoolean PromptUserInput (PBoolean play)
 
virtual bool GetConferenceState (OpalConferenceState *state) const
 
virtual bool OnChangedPresentationRole (const PString &newChairURI, bool request)
 
OpalEndPointGetEndPoint () const
 
OpalCallGetCall () const
 
const PString & GetToken () const
 
PBoolean IsOriginating () const
 
const PTime & GetPhaseTime (Phases phase) const
 
const PTime & GetSetupUpTime () const
 
const PTime & GetAlertingTime () const
 
const PTime & GetConnectionStartTime () const
 
const PTime & GetConnectionEndTime () const
 
const OpalProductInfoGetProductInfo () const
 
void SetProductInfo (const OpalProductInfo &info)
 
const PString & GetLocalPartyName () const
 
virtual PString GetLocalPartyURL () const
 
const PString & GetDisplayName () const
 
void SetDisplayName (const PString &name)
 
virtual bool IsPresentationBlocked () const
 
const PString & GetRemotePartyName () const
 
void SetRemotePartyName (const PString &name)
 
const PString & GetRemotePartyNumber () const
 
virtual PString GetRemotePartyURL () const
 
virtual PString GetRemoteIdentity () const
 
P_DEPRECATED PString GetRemotePartyAddress () const
 
P_DEPRECATED const PString GetRemotePartyCallbackURL () const
 
PCaselessString GetRemoteApplication () const
 
const OpalProductInfoGetRemoteProductInfo () const
 
const PString & GetRedirectingParty () const
 
void SetRedirectingParty (const PString &party)
 
const PString & GetCalledPartyName () const
 
const PString & GetCalledPartyNumber () const
 
virtual PString GetCalledPartyURL ()
 
void CopyPartyNames (const OpalConnection &other)
 
virtual PString GetCallInfo () const
 
unsigned GetMinAudioJitterDelay () const
 
unsigned GetMaxAudioJitterDelay () const
 
void SetAudioJitterDelay (unsigned minDelay, unsigned maxDelay)
 
OpalSilenceDetectorGetSilenceDetector () const
 
virtual PINDEX GetMaxRtpPayloadSize () const
 
unsigned GetVideoUpdateRequestsSent () const
 
unsigned GetVideoUpdateRequestsReceived () const
 
 P_DECLARE_TRACED_ENUM (Phases, UninitialisedPhase, SetUpPhase, ProceedingPhase, AlertingPhase, ConnectedPhase, EstablishedPhase, ForwardingPhase, ReleasingPhase, ReleasedPhase)
 
__inline Phases GetPhase () const
 
__inline bool IsEstablished () const
 Return true if connection is in the established phase. More...
 
__inline bool IsReleased () const
 Return true if connection is in the established phase. More...
 
void SetPhase (Phases phaseToSet)
 
CallEndReason GetCallEndReason () const
 
PString GetCallEndReasonText () const
 
virtual void SetCallEndReason (CallEndReason reason)
 
void ClearCall (CallEndReason reason=EndedByLocalUser, PSyncPoint *sync=NULL)
 
virtual void ClearCallSynchronous (PSyncPoint *sync, CallEndReason reason=EndedByLocalUser)
 
unsigned GetQ931Cause () const
 
void SetQ931Cause (unsigned v)
 
virtual void OnHold (bool fromRemote, bool onHold)
 

Protected Member Functions

virtual void InternalEstablishedConnectionCheck ()
 
bool InternalEndSessionCheck (PPER_Stream &strm)
 
bool SendReleaseComplete ()
 
void SetRemoteVersions (const H225_ProtocolIdentifier &id)
 
void SetOutgoingBearerCapabilities (H323SignalPDU &pdu) const
 
void SetIncomingBearerCapabilities (const H323SignalPDU &pdu)
 
void MonitorCallStatus ()
 
 PDECLARE_NOTIFIER (PThread, H323Connection, NewOutgoingControlChannel)
 
 PDECLARE_AcceptHandlerNotifier (H323Connection, NewIncomingControlChannel)
 
 P_DECLARE_TRACED_ENUM (ConnectionStates, NoConnectionActive, AwaitingGatekeeperAdmission, AwaitingTransportConnect, AwaitingSignalConnect, AwaitingLocalAnswer, HasExecutedSignalConnect, EstablishedConnection, ShuttingDownConnection)
 
template<class PDU >
void SetMaintainConnectionFlag (const PDU &pdu)
 
 P_DECLARE_TRACED_ENUM (RemoteHoldStates, eOffHoldFromRemote, eOnHoldFromRemote, eRetrieveFromRemote)
 
 P_DECLARE_TRACED_ENUM (FastStartStates, FastStartDisabled, FastStartInitiate, FastStartResponse, FastStartAcknowledged)
 
 PDECLARE_NOTIFIER (PTimer, H323Connection, UserInputIndicationTimeout)
 
- Protected Member Functions inherited from OpalRTPConnection
virtual bool GarbageCollection ()
 
 PDECLARE_NOTIFIER (OpalRFC2833Info, OpalRTPConnection, OnUserInputInlineRFC2833)
 
virtual bool NoMediaBypass (const OpalConnection &otherConnection, const OpalMediaType &mediaType) const
 
 P_REMOVE_VIRTUAL (PBoolean, IsRTPNATEnabled(const PIPSocket::Address &, const PIPSocket::Address &, const PIPSocket::Address &, PBoolean), false)
 
- Protected Member Functions inherited from OpalConnection
void OnConnectedInternal ()
 
void InternalSetAsOriginating ()
 
bool InternalRelease (CallEndReason reason)
 
void InternalOnReleased ()
 
 PDECLARE_NOTIFIER (RTP_DataFrame, OpalConnection, OnRecordAudio)
 
 PDECLARE_NOTIFIER (RTP_DataFrame, OpalConnection, OnRecordVideo)
 
void OnStartRecording (OpalMediaPatch *patch)
 
void OnStopRecording (OpalMediaPatch *patch)
 

Protected Attributes

H323EndPointendpoint
 
H323TransportAddress m_remoteConnectAddress
 
int remoteCallWaiting
 
bool gatekeeperRouted
 
unsigned distinctiveRing
 
unsigned callReference
 
unsigned m_progressIndicator
 
OpalGloballyUniqueID callIdentifier
 
OpalGloballyUniqueID conferenceIdentifier
 
PString localDestinationAddress
 
PStringList localAliasNames
 
H323Capabilities localCapabilities
 
PString destExtraCallInfo
 
H323Capabilities remoteCapabilities
 
unsigned remoteMaxAudioDelayJitter
 
PTimer roundTripDelayTimer
 
unsigned uuiesRequested
 
PString gkAccessTokenOID
 
PBYTEArray gkAccessTokenData
 
bool addAccessTokenToSetup
 
OpalTransportPtr m_signallingChannel
 
OpalTransportPtr m_controlChannel
 
OpalListenercontrolListener
 
bool h245Tunneling
 
H323SignalPDUh245TunnelRxPDU
 
H323SignalPDUh245TunnelTxPDU
 
H323SignalPDUsetupPDU
 
H323SignalPDUalertingPDU
 
H323SignalPDUconnectPDU
 
H323SignalPDUprogressPDU
 
ConnectionStates connectionState
 
unsigned h225version
 
unsigned h245version
 
bool h245versionSet
 
bool doH245inSETUP
 
bool lastPDUWasH245inSETUP
 
bool m_forceSymmetricTCS
 
bool mustSendDRQ
 
bool mediaWaitForConnect
 
bool m_holdToRemote
 
bool earlyStart
 
PString t38ModeChangeCapabilities
 
PSyncPoint digitsWaitFlag
 
bool m_releaseCompleteNeeded
 
bool m_endSessionNeeded
 
PSyncPoint endSessionReceived
 
PTimer enforcedDurationLimit
 
bool isConsultationTransfer
 
bool m_maintainConnection
 
PSafeDictionary< POrdinalKey,
OpalMediaStream
m_conflictingChannels
 
RemoteHoldStates m_holdFromRemote
 
ConferenceGoal m_conferenceGoal
 
bool isCallIntrusion
 
unsigned callIntrusionProtectionLevel
 
FastStartStates m_fastStartState
 
H323LogicalChannelList m_fastStartChannels
 
H245NegMasterSlaveDeterminationmasterSlaveDeterminationProcedure
 
H245NegTerminalCapabilitySetcapabilityExchangeProcedure
 
H245NegLogicalChannelslogicalChannels
 
H245NegRequestModerequestModeProcedure
 
H245NegRoundTripDelayroundTripDelayProcedure
 
bool m_h239Control
 
unsigned m_h239SymmetryBreaking
 
unsigned m_h239TokenChannel
 
unsigned m_h239TerminalLabel
 
bool m_h239TokenOwned
 
H450xDispatcherh450dispatcher
 
H4502Handlerh4502handler
 
H4504Handlerh4504handler
 
H4506Handlerh4506handler
 
H4507Handlerh4507handler
 
H45011Handlerh45011handler
 
H460_FeatureSetm_features
 
PSimpleTimer m_h245FastUpdatePictureTimer
 
char m_lastUserInputIndication
 
PSimpleTimer m_lastUserInputIndicationStart
 
PTimer m_UserInputIndicationTimer
 
- Protected Attributes inherited from OpalRTPConnection
SessionMap m_sessions
 
bool m_remoteBehindNAT
 
OpalRFC2833Protom_rfc2833Handler
 
- Protected Attributes inherited from OpalConnection
OpalCallownerCall
 
OpalEndPointendpoint
 
PString callToken
 
PBoolean m_originating
 
OpalProductInfo productInfo
 
PString localPartyName
 
PString displayName
 
PString remotePartyName
 
PString m_remotePartyURL
 
OpalProductInfo remoteProductInfo
 
PString remotePartyNumber
 
PString m_redirectingParty
 
CallEndReason callEndReason
 
PString m_calledPartyNumber
 
PString m_calledPartyName
 
SendUserInputModes sendUserInputMode
 
PString userInputString
 
PSyncPoint userInputAvailable
 
OpalSilenceDetectorsilenceDetector
 
OpalMediaFormat m_filterMediaFormat
 
OpalMediaFormatList m_localMediaFormats
 
PSafeList< OpalMediaStreammediaStreams
 
unsigned m_minAudioJitterDelay
 
unsigned m_maxAudioJitterDelay
 
OpalBandwidth m_rxBandwidthAvailable
 
OpalBandwidth m_txBandwidthAvailable
 
StringOptions m_stringOptions
 
PString m_recordingFilename
 
PNotifier m_recordAudioNotifier
 
PNotifier m_recordVideoNotifier
 
unsigned m_VideoUpdateRequestsSent
 
unsigned m_VideoUpdateRequestsReceived
 
OpalMediaType::AutoStartMap m_autoStartInfo
 
ZeroTime m_phaseTime [NumPhases]
 
std::set< unsigned > m_mediaSessionFailed
 

Control Channel

enum  ControlProtocolErrors {
  e_MasterSlaveDetermination, e_CapabilityExchange, e_LogicalChannel, e_ModeRequest,
  e_RoundTripDelay
}
 
virtual PBoolean CreateOutgoingControlChannel (const PASN_Sequence &enclosingPDU, const H225_TransportAddress &h245Address, unsigned h245AddressField, const H225_H245Security &h245Security, unsigned h245SecurityField)
 
virtual PBoolean CreateIncomingControlChannel (PASN_Sequence &enclosingPDU, H225_TransportAddress &h245Address, unsigned h245AddressField, H225_H245Security &h245Security, unsigned h245SecurityField)
 
virtual PBoolean WriteControlPDU (const H323ControlPDU &pdu)
 
virtual PBoolean StartControlNegotiations ()
 
virtual void HandleControlChannel ()
 
virtual PBoolean HandleControlData (PPER_Stream &strm)
 
virtual PBoolean HandleControlPDU (const H323ControlPDU &pdu)
 
virtual PBoolean HandleReceivedControlPDU (PBoolean readStatus, PPER_Stream &strm)
 
virtual PBoolean OnUnknownControlPDU (const H323ControlPDU &pdu)
 
virtual PBoolean OnH245Request (const H323ControlPDU &pdu)
 
virtual PBoolean OnH245Response (const H323ControlPDU &pdu)
 
virtual PBoolean OnH245Command (const H323ControlPDU &pdu)
 
virtual PBoolean OnH245Indication (const H323ControlPDU &pdu)
 
virtual PBoolean OnH245_SendTerminalCapabilitySet (const H245_SendTerminalCapabilitySet &pdu)
 
virtual PBoolean OnH245_FlowControlCommand (const H245_FlowControlCommand &pdu)
 
virtual PBoolean OnH245_MiscellaneousCommand (const H245_MiscellaneousCommand &pdu)
 
virtual PBoolean OnH245_MiscellaneousIndication (const H245_MiscellaneousIndication &pdu)
 
virtual PBoolean OnH245_JitterIndication (const H245_JitterIndication &pdu)
 
virtual bool OnH239Message (unsigned subMessage, const H245_ArrayOf_GenericParameter &params)
 
virtual bool OnH239FlowControlRequest (unsigned logicalChannel, unsigned bitRate)
 
virtual bool OnH239FlowControlResponse (unsigned logicalChannel, bool rejected)
 
virtual bool OnH239PresentationRequest (unsigned logicalChannel, unsigned symmetryBreaking, unsigned terminalLabel)
 
virtual bool SendH239PresentationRequest (unsigned logicalChannel, unsigned symmetryBreaking, unsigned terminalLabel)
 
virtual bool OnH239PresentationResponse (unsigned logicalChannel, unsigned terminalLabel, bool rejected)
 
virtual bool OnH239PresentationRelease (unsigned logicalChannel, unsigned terminalLabel)
 
virtual bool SendH239PresentationRelease (unsigned logicalChannel, unsigned terminalLabel)
 
virtual bool OnH239PresentationIndication (unsigned logicalChannel, unsigned terminalLabel)
 
virtual PBoolean OnControlProtocolError (ControlProtocolErrors errorSource, const void *errorData=NULL)
 
virtual void OnSendCapabilitySet (H245_TerminalCapabilitySet &pdu)
 
virtual PBoolean OnReceivedCapabilitySet (const H323Capabilities &remoteCaps, const H245_MultiplexCapability *muxCap, H245_TerminalCapabilitySetReject &reject)
 
virtual bool SendCapabilitySet (PBoolean empty)
 
virtual bool IsSendingCapabilitySet ()
 
virtual void OnSetLocalCapabilities ()
 
virtual void OnSendH245_OpenLogicalChannel (H245_OpenLogicalChannel &, PBoolean)
 
PBoolean IsH245Master () const
 
void StartRoundTripDelay ()
 
PTimeInterval GetRoundTripDelay () const
 

Member variable access

enum  ConferenceGoal { e_Create, e_Invite, e_Join }
 
H323EndPointGetEndPoint () const
 
PBoolean HadAnsweredCall () const
 
PBoolean IsGatekeeperRouted () const
 
unsigned GetDistinctiveRing () const
 
void SetDistinctiveRing (unsigned pattern)
 
const PString & GetCallToken () const
 
unsigned GetCallReference () const
 
const OpalGloballyUniqueIDGetCallIdentifier () const
 
virtual PString GetIdentifier () const
 
const OpalGloballyUniqueIDGetConferenceIdentifier () const
 
void SetLocalPartyName (const PString &name)
 
const PStringList & GetLocalAliasNames () const
 
virtual void SetRemotePartyInfo (const H323SignalPDU &pdu)
 
void SetRemoteApplication (const H225_EndpointType &pdu)
 
ConferenceGoal GetConferenceGoal ()
 
void SetConferenceGoal (ConferenceGoal goal)
 
const H323CapabilitiesGetLocalCapabilities () const
 
const H323CapabilitiesGetRemoteCapabilities () const
 
unsigned GetRemoteMaxAudioDelayJitter () const
 
OpalTransportPtr GetSignallingChannel () const
 
unsigned GetSignallingVersion () const
 
const H323TransportGetControlChannel () const
 
OpalTransportGetTransport () const
 
unsigned GetControlVersion () const
 
unsigned GetUUIEsRequested () const
 
void SetUUIEsRequested (unsigned mask)
 
const PString GetGkAccessTokenOID () const
 
void SetGkAccessTokenOID (const PString &oid)
 
const PBYTEArray & GetGkAccessTokenData () const
 
void SetDestExtraCallInfo (const PString &info)
 
void SetRemotCallWaiting (const unsigned value)
 
int GetRemoteCallWaiting () const
 
void SetEnforcedDurationLimit (unsigned seconds)
 

Additional Inherited Members

- Public Types inherited from OpalConnection
enum  Options {
  FastStartOptionDisable = 0x0001, FastStartOptionEnable = 0x0002, FastStartOptionMask = 0x0003, H245TunnelingOptionDisable = 0x0004,
  H245TunnelingOptionEnable = 0x0008, H245TunnelingOptionMask = 0x000c, H245inSetupOptionDisable = 0x0010, H245inSetupOptionEnable = 0x0020,
  H245inSetupOptionMask = 0x0030, DetectInBandDTMFOptionDisable = 0x0040, DetectInBandDTMFOptionEnable = 0x0080, DetectInBandDTMFOptionMask = 0x00c0,
  RTPAggregationDisable = 0x0100, RTPAggregationEnable = 0x0200, RTPAggregationMask = 0x0300, SendDTMFAsDefault = 0x0000,
  SendDTMFAsString = 0x0400, SendDTMFAsTone = 0x0800, SendDTMFAsRFC2833 = 0x0c00, SendDTMFMask = 0x0c00
}
 
- Static Public Member Functions inherited from OpalConnection
static PString GetCallEndReasonText (CallEndReason reason)
 
static void SetCallEndReasonText (CallEndReasonCodes reasonCode, const PString &newText)
 

Detailed Description

This class represents a particular H323 connection between two endpoints. There are at least two threads in use, this one to look after the signalling channel, an another to look after the control channel. There would then be additional threads created for each data channel created by the control channel protocol thread.

Member Enumeration Documentation

Goal supplied for this connection provided in SETUP

Enumerator
e_Create 
e_Invite 
e_Join 

Error discriminator for the OnControlProtocolError() function.

Enumerator
e_MasterSlaveDetermination 
e_CapabilityExchange 
e_LogicalChannel 
e_ModeRequest 
e_RoundTripDelay 

Constructor & Destructor Documentation

H323Connection::H323Connection ( OpalCall call,
H323EndPoint endpoint,
const PString &  token,
const PString &  alias,
const H323TransportAddress address,
unsigned  options = 0,
OpalConnection::StringOptions stringOptions = NULL 
)

Create a new connection.

Parameters
callCall object connection belongs to
endpointH323 End Point object
tokenToken for new connection
aliasAlias for outgoing call
addressAddress for outgoing call
optionsConnection option bits
stringOptionscomplex string options
H323Connection::~H323Connection ( )

Destroy the connection

Member Function Documentation

void H323Connection::AnsweringCall ( AnswerCallResponse  response)
virtual

Indicate the result of answering an incoming call. This should only be called if the OnAnswerCall() callback function has returned a AnswerCallPending or AnswerCallDeferred response.

Note sending further AnswerCallPending responses via this function will have the result of an Alerting PDU being sent to the remote endpoint. In this way multiple Alerting PDUs may be sent.

Sending a AnswerCallDeferred response would have no effect.

Parameters
responseAnswer response to incoming call

Reimplemented from OpalConnection.

void H323Connection::AttachSignalChannel ( const PString &  token,
H323Transport channel,
PBoolean  answeringCall 
)

Attach a transport to this connection as the signalling channel.

Parameters
tokenNew token to use to identify connection
channelTransport for the PDU's
answeringCallFlag for if incoming/outgoing call.
virtual void H323Connection::CloseAllLogicalChannels ( PBoolean  fromRemote)
virtual

Close a logical channel.

Parameters
fromRemoteIndicates close request of remote channel
virtual void H323Connection::CloseLogicalChannel ( unsigned  number,
PBoolean  fromRemote 
)
virtual

Close a logical channel.

Parameters
numberChannel number to close.
fromRemoteIndicates close request of remote channel
virtual void H323Connection::CloseLogicalChannelNumber ( const H323ChannelNumber number)
virtual

Close a logical channel by number.

Parameters
numberChannel number to close.
void H323Connection::ConsultationTransfer ( const PString &  primaryCallToken)

Transfer the call through consultation so the remote party in the primary call is connected to the called party in the second call using H.450.2. This sends a Call Transfer Identify Invoke message from the A-Party (transferring endpoint) to the C-Party (transferred-to endpoint).

Parameters
primaryCallTokenPrimary call
virtual PBoolean H323Connection::CreateIncomingControlChannel ( PASN_Sequence &  enclosingPDU,
H225_TransportAddress &  h245Address,
unsigned  h245AddressField,
H225_H245Security &  h245Security,
unsigned  h245SecurityField 
)
virtual

Start a separate control channel. This function is called from one of a number of functions when it needs to listen for an incoming H.245 connection.

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour checks to see if it is a known transport and creates a corresponding OpalTransport decendent for the control channel.

Parameters
enclosingPDUEnclosing PDU, e.g. H225_Connect_UUIE
h245AddressPDU transport address to set
h245AddressFieldOptional field code for address
h245SecurityOptional Security mode for H.245 channel
h245SecurityFieldOptional field code for address
virtual H323Channel* H323Connection::CreateLogicalChannel ( const H245_OpenLogicalChannel &  open,
PBoolean  startingFast,
unsigned &  errorCode 
)
virtual

Create a new logical channel object. This is in response to a request from the remote endpoint to open a logical channel.

Parameters
openParameters for opening channel
startingFastFlag for fast/slow starting.
errorCodeReason for create failure
virtual PBoolean H323Connection::CreateOutgoingControlChannel ( const PASN_Sequence &  enclosingPDU,
const H225_TransportAddress &  h245Address,
unsigned  h245AddressField,
const H225_H245Security &  h245Security,
unsigned  h245SecurityField 
)
virtual

Start a separate H245 channel. This function is called from one of a number of functions after it receives a PDU from the remote endpoint that has a h245Address field.

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour checks to see if it is a known transport and creates a corresponding H323Transport decendent for the control channel.

Parameters
enclosingPDUEnclosing PDU, e.g. H225_Connect_UUIE
h245AddressH245 address
h245AddressFieldOptional field code for address
h245SecurityOptional Security mode for H.245 channel
h245SecurityFieldOptional field code for address
virtual H323Channel* H323Connection::CreateRealTimeLogicalChannel ( const H323Capability capability,
H323Channel::Directions  dir,
unsigned  sessionID,
const H245_H2250LogicalChannelParameters *  param 
)
virtual

Create a new real time logical channel object. This creates a logical channel for handling RTP data. It is primarily used to allow an application to redirect the RTP media streams to other hosts to the local one. In that case it would create an instance of the H323_ExternalRTPChannel class with the appropriate address. eg:

H323Channel * MyConnection::CreateRealTimeLogicalChannel( const H323Capability & capability, H323Channel::Directions dir, unsigned sessionID, const H245_H2250LogicalChannelParameters * param) { return new H323_ExternalRTPChannel(*this, capability, dir, sessionID, externalIpAddress, externalPort); }

An application would typically also override the OnStartLogicalChannel() function to obtain from the H323_ExternalRTPChannel instance the address of the remote endpoints media server RTP addresses to complete the setting up of the external RTP stack. eg:

PBoolean OnStartLogicalChannel(H323Channel & channel) { H323_ExternalRTPChannel & external = (H323_ExternalRTPChannel &)channel; external.GetRemoteAddress(remoteIpAddress, remotePort); }

Note that the port in the above example is always the data port, the control port is assumed to be data+1.

The default behaviour assures there is an RTP session for the session ID, and if not creates one, then creates a H323_RTPChannel which will do RTP media to the local host.

Parameters
capabilityCapability creating channel
dirDirection of channel
sessionIDSession ID for RTP channel
paramParameters for channel
virtual H323_RTPChannel* H323Connection::CreateRTPChannel ( const H323Capability capability,
H323Channel::Directions  direction,
H323RTPSession rtp 
)
virtual

Creates a new instance of an RTP channel. Allows subclasses to return a custom instance

virtual void H323Connection::DetermineRTPNAT ( const OpalTransport transport,
const OpalTransportAddress signalAddr 
)
virtual

Determine if the RTP session needs to accommodate a NAT router. This override does a check for H.460.19, and if disabled, prevents OpalRTPConnection::DetermineRTPNAT() from being called.

Parameters
transportTransport to get physical address of connection
signalAddrRemotes signaling address as indicated by protocol of connection

Reimplemented from OpalRTPConnection.

void H323Connection::EndHandleControlChannel ( )
H323Channel* H323Connection::FindChannel ( unsigned  sessionId,
PBoolean  fromRemote 
) const

Find a logical channel. Locates a channel give a RTP session ID. Each session would usually have two logical channels associated with it, so the fromRemote flag bay be used to distinguish which channel to return.

Parameters
sessionIdSession ID to search for.
fromRemoteIndicates the direction of RTP data.
virtual PBoolean H323Connection::ForwardCall ( const PString &  forwardParty)
virtual

Forward incoming call to specified address. This would typically be called from within the OnIncomingCall() function when an application wishes to redirct an unwanted incoming call.

The return value is true if the call is to be forwarded, false otherwise. Note that if the call is forwarded the current connection is cleared with the ended call code of EndedByCallForwarded.

Parameters
forwardPartyParty to forward call to.

Reimplemented from OpalConnection.

virtual PBoolean H323Connection::GetAdmissionRequestAuthentication ( const H225_AdmissionRequest &  arq,
H235Authenticators &  authenticators 
)
virtual

Get separate H.235 authentication for the connection. This allows an individual ARQ to override the authentical credentials used in H.235 based RAS for this particular connection.

A return value of false indicates to use the default credentials of the endpoint, while true indicates that new credentials are to be used.

The default behavour does nothing and returns false.

Parameters
arqARQ being constructed
authenticatorsNew authenticators for ARQ
virtual PString H323Connection::GetAlertingType ( ) const
virtual

Get alerting type information of an incoming call. The type of "distinctive ringing" for the call. The string is protocol dependent, so the caller would need to be aware of the type of call being made. Some protocols may ignore the field completely.

For SIP this corresponds to the string contained in the "Alert-Info" header field of the INVITE. This is typically a URI for the ring file.

For H.323 this must be a string representation of an integer from 0 to 7 which will be contained in the Q.931 SIGNAL (0x34) Information Element.

Default behaviour returns an empty string.

Reimplemented from OpalConnection.

virtual OpalBandwidth H323Connection::GetBandwidthUsed ( OpalBandwidth::Direction  dir) const
virtual

Get the rx and/or tx bandwidth currently used. This totals the bandwidth used by open logical channels and returns that bandwidth used in bits/sec

Parameters
dirBandwidth direction

Reimplemented from OpalConnection.

const OpalGloballyUniqueID& H323Connection::GetCallIdentifier ( ) const
inline

Get the call identifier for this connection.

References callIdentifier.

unsigned H323Connection::GetCallReference ( ) const
inline

Get the call reference for this connection.

References callReference.

const PString& H323Connection::GetCallToken ( ) const
inline

Get the internal OpenH323 call token for this connection. Deprecated, only used for backward compatibility.

References OpalConnection::GetToken().

int H323Connection::GetCallTransferInvokeId ( )

Get transfer invoke ID dureing trasfer. This is an internal function and it is not expected the user will call it directly.

ConferenceGoal H323Connection::GetConferenceGoal ( )
inline

Get the conference goal for this connection.

References m_conferenceGoal.

const OpalGloballyUniqueID& H323Connection::GetConferenceIdentifier ( ) const
inline

Get the conference identifier for this connection.

References conferenceIdentifier.

const H323Transport& H323Connection::GetControlChannel ( ) const

Get the control channel being used (may return signalling channel).

unsigned H323Connection::GetControlVersion ( ) const
inline

Get the control channel protocol version number.

References h245version.

virtual PString H323Connection::GetDestinationAddress ( )
virtual

Get the destination address of an incoming connection. This will, for example, collect a phone number from a POTS line, or get the fields from the H.225 SETUP pdu in a H.323 connection.

Reimplemented from OpalConnection.

unsigned H323Connection::GetDistinctiveRing ( ) const
inline

Get the distinctive ring code for incoming call. This returns an integer from 0 to 7 that may indicate to an application that different ring cadences are to be used.

References distinctiveRing.

H323EndPoint& H323Connection::GetEndPoint ( ) const
inline

Get the owner endpoint for this connection.

References endpoint.

H460_FeatureSet* H323Connection::GetFeatureSet ( ) const
inline

Get the connection FeatureSet

References m_features.

const PBYTEArray& H323Connection::GetGkAccessTokenData ( ) const
inline

Get the iNow Gatekeeper Access Token data.

References gkAccessTokenData.

const PString H323Connection::GetGkAccessTokenOID ( ) const
inline

Get the iNow Gatekeeper Access Token OID.

References gkAccessTokenOID.

H4507Handler& H323Connection::getH4507handler ( )
inline

get the H4507 handler

Returns
a reference to the H4507 handler

References h4507handler.

virtual PString H323Connection::GetIdentifier ( ) const
virtual

Get the protocol-specific unique identifier for this connection.

Reimplemented from OpalConnection.

const PStringList& H323Connection::GetLocalAliasNames ( ) const
inline

Get the list of all alias names this connection is using.

References localAliasNames.

unsigned H323Connection::GetLocalCallIntrusionProtectionLevel ( )
inline

Get Call Intrusion Protection Level of the local endpoint.

References callIntrusionProtectionLevel.

const H323Capabilities& H323Connection::GetLocalCapabilities ( ) const
inline

Get the remotes capability table for this connection.

References localCapabilities.

bool H323Connection::GetLocalH239Control ( ) const
inline

Get the local H.239 control capability.

References m_h239Control.

H323Channel* H323Connection::GetLogicalChannel ( unsigned  number,
PBoolean  fromRemote 
) const

Get a logical channel. Locates the specified channel number and returns a pointer to it.

Parameters
numberChannel number to get.
fromRemoteIndicates get a remote channel
virtual PStringArray H323Connection::GetMediaCryptoSuites ( ) const
virtual

Get media security methods in priority order. Returns an array of names for security methods, e.g. { "Clear", "AES_CM_128_HMAC_SHA1_80", "AES_CM_128_HMAC_SHA1_32" }.

Reimplemented from OpalConnection.

virtual OpalMediaFormatList H323Connection::GetMediaFormats ( ) const
virtual

Get the data formats this connection is capable of operating. This provides a list of media data format names that an OpalMediaStream may be created in within this connection.

The default behaviour returns media data format names contained in the remote capability table.

Reimplemented from OpalConnection.

virtual bool H323Connection::GetMediaTransportAddresses ( OpalConnection otherConnection,
const OpalMediaType mediaType,
OpalTransportAddressArray transports 
) const
virtual

Get transports for the media session on the connection. This is primarily used by the media bypass feature controlled by the OpalManager::GetMediaTransferMode() function. It allows one side of the call to get the transport address of the media on the other side, so it can pass it on, bypassing the local host.

Returns
true if a transport address is available and may be used to pass on to a remote system for direct access.
Parameters
otherConnectionOther half of call needing media transport addresses
mediaTypeMedia type for session to return information
transportsInformation on media session

Reimplemented from OpalRTPConnection.

virtual unsigned H323Connection::GetNextSessionID ( const OpalMediaType mediaType,
bool  isSource 
)
virtual

Get next available session ID for the media type.

Parameters
mediaTypeMedia type of stream being opened
isSourceStream is a source/sink

Reimplemented from OpalRTPConnection.

virtual PString H323Connection::GetPrefixName ( ) const
virtual

Get this connections protocol prefix for URLs.

Reimplemented from OpalConnection.

unsigned H323Connection::GetProgressIndicator ( ) const
inline

Get Q.931 Progress Indicator IE description from received PROGRESS or ALERTING pdus.

References m_progressIndicator.

virtual SendUserInputModes H323Connection::GetRealSendUserInputMode ( ) const
virtual

Get the real user input indication transmission mode. This will return the user input mode that will actually be used for transmissions. It will be the value of GetSendUserInputMode() provided the remote endpoint is capable of that mode.

Reimplemented from OpalConnection.

virtual OpalTransportAddress H323Connection::GetRemoteAddress ( ) const
inlinevirtual

Get the remote transport address

Reimplemented from OpalConnection.

References OpalTransport::GetRemoteAddress(), and GetTransport().

virtual PBoolean H323Connection::GetRemoteCallIntrusionProtectionLevel ( const PString &  callToken,
unsigned  callIntrusionProtectionLevel 
)
virtual

Get Call Intrusion Protection Level of other endpoints that we are in connection with.

int H323Connection::GetRemoteCallWaiting ( ) const
inline

How many caller's are waiting on the remote endpoint? -1 - None 0 - Just this connection n - n plus this connection

References remoteCallWaiting.

const H323Capabilities& H323Connection::GetRemoteCapabilities ( ) const
inline

Get the remotes capability table for this connection.

References remoteCapabilities.

bool H323Connection::GetRemoteH239Control ( ) const

Get the remote H.239 control capability.

OpalMediaFormatList H323Connection::GetRemoteH239Formats ( ) const

Get the remote H.239 options.

unsigned H323Connection::GetRemoteMaxAudioDelayJitter ( ) const
inline

Get the maximum audio jitter delay.

References remoteMaxAudioDelayJitter.

PTimeInterval H323Connection::GetRoundTripDelay ( ) const

Get the round trip delay over the control channel.

virtual PString H323Connection::GetSessionCodecNames ( unsigned  sessionID) const
virtual

Get the names of the codecs in use for the RTP session. If there is no session of the specified ID, an empty string is returned.

OpalTransportPtr H323Connection::GetSignallingChannel ( ) const
inline

Get the signalling channel being used.

References m_signallingChannel.

unsigned H323Connection::GetSignallingVersion ( ) const
inline

Get the signalling channel protocol version number.

References h225version.

OpalTransport& H323Connection::GetTransport ( ) const

Get the control channel being used (may return signalling channel).

Referenced by GetRemoteAddress().

unsigned H323Connection::GetUUIEsRequested ( ) const
inline

Get the UUIE PDU monitor bit mask.

References uuiesRequested.

PBoolean H323Connection::HadAnsweredCall ( ) const
inline

Get the call direction for this connection.

References OpalConnection::IsOriginating().

virtual void H323Connection::HandleCallTransferFailure ( const int  returnError)
virtual

Handle the failure of a call transfer operation at the Transferred Endpoint. This method is used to handle the following transfer failure cases that can occur at the Transferred Endpoint. The cases are: Reception of an Admission Reject Reception of a callTransferSetup return error APDU. Expiry of Call Transfer timer CT-T4.

Parameters
returnErrorFailure reason code
virtual void H323Connection::HandleConsultationTransfer ( const PString &  callIdentity,
H323Connection incoming 
)
virtual

Handle the reception of a callTransferSetupInvoke APDU whilst a secondary call exists. This method checks whether the secondary call is still waiting for a callTransferSetupInvoke APDU and proceeds to clear the call if the call identies match. This is an internal function and it is not expected the user will call it directly.

Parameters
incomingCall Identity of secondary call received in SETUP Message. Connection upon which SETUP PDU was received.
virtual void H323Connection::HandleControlChannel ( )
virtual

Handle reading data on the control channel.

virtual PBoolean H323Connection::HandleControlData ( PPER_Stream &  strm)
virtual

Handle incoming data on the control channel. This decodes the data stream into a PDU and calls HandleControlPDU().

If false is returned the connection is aborted. The default behaviour returns true.

virtual PBoolean H323Connection::HandleControlPDU ( const H323ControlPDU pdu)
virtual

Handle incoming PDU's on the control channel. Dispatches them to the various virtuals off this class.

If false is returned the connection is aborted. The default behaviour returns true.

virtual PBoolean H323Connection::HandleFastStartAcknowledge ( const H225_ArrayOf_PASN_OctetString &  array)
virtual

Handle the acknowldege of a fast start. This function is called from one of a number of functions after it receives a PDU from the remote endpoint that has a fastStart field. It is in response to a request for a fast strart from the local endpoint.

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour parses the provided array and starts the channels acknowledged in it.

Parameters
arrayArray of H245_OpenLogicalChannel
virtual void H323Connection::HandleIntrudeCall ( const PString &  token,
const PString &  identity 
)
virtual

Handle an incoming call instrusion request. Calls h45011handler->AwaitSetupResponse where we set Handler state to CI-Wait-Ack

virtual PBoolean H323Connection::HandleReceivedControlPDU ( PBoolean  readStatus,
PPER_Stream &  strm 
)
virtual

Handle a single received PDU from the control channel. This is an internal function and is unlikely to be used by applications.

virtual void H323Connection::HandleSignallingChannel ( )
virtual

Handle reading PDU's from the signalling channel. This is an internal function and is unlikely to be used by applications.

virtual PBoolean H323Connection::HandleSignalPDU ( H323SignalPDU pdu)
virtual

Handle PDU from the signalling channel. This is an internal function and is unlikely to be used by applications.

Parameters
pduPDU to handle.
virtual void H323Connection::HandleTransferCall ( const PString &  token,
const PString &  identity 
)
virtual

Handle the transfer of an existing connection to a new remote. This is an internal function and it is not expected the user will call it directly.

virtual void H323Connection::HandleTunnelPDU ( H323SignalPDU txPDU)
virtual

Handle Control PDU tunnelled in the signalling channel. This is an internal function and is unlikely to be used by applications.

Parameters
txPDUPDU tunnel response into.
bool H323Connection::HasCompatibilityIssue ( CompatibilityIssues  issue) const

Determine if we must compensate for remote endpoint.

virtual bool H323Connection::HasPresentationRole ( ) const
virtual

Indicate current presentation token ownership.

Default behaviour returns m_h239TokenOwned.

Reimplemented from OpalConnection.

virtual bool H323Connection::HoldRemote ( bool  placeOnHold)
virtual

Put the current connection on hold, suspending media streams. The streams from the remote are always paused. The streams from the local to the remote are conditionally paused depending on underlying logic for "music on hold" functionality.

The fromRemote parameter indicates if we a putting the remote on hold (false) or it is a request for the remote to put us on hold (true).

The /p placeOnHold parameter indicates of the command/request is for going on hold or retrieving from hold.

Returns
true if hold request successfully initiated. The OnHold() call back must be monitored for final confirmation of hold state.
Parameters
placeOnHoldFlag for setting on or off hold

Reimplemented from OpalConnection.

bool H323Connection::InternalEndSessionCheck ( PPER_Stream &  strm)
protected
virtual void H323Connection::InternalEstablishedConnectionCheck ( )
protectedvirtual

Internal function to check if call established. This checks all the criteria for establishing a call an initiating the starting of media channels, if they have not already been started via the fast start algorithm.

virtual void H323Connection::IntrudeCall ( unsigned  capabilityLevel)
virtual

Begin a call intrusion request. Calls h45011handler->IntrudeCall where SS pdu is added to Call Setup message.

PBoolean H323Connection::IsCallIntrusion ( )
inline

References isCallIntrusion.

PBoolean H323Connection::IsGatekeeperRouted ( ) const
inline

Determined if connection is gatekeeper routed.

References gatekeeperRouted.

PBoolean H323Connection::IsH245Master ( ) const

Return if this H245 connection is a master or slave

virtual bool H323Connection::IsNetworkConnection ( ) const
inlinevirtual

Get indication of connection being to a "network". This indicates the if the connection may be regarded as a "network" connection. The distinction is about if there is a concept of a "remote" party being connected to and is best described by example: sip, h323, iax and pstn are all "network" connections as they connect to something "remote". While pc, pots and ivr are not as the entity being connected to is intrinsically local.

Implements OpalConnection.

virtual bool H323Connection::IsOnHold ( bool  fromRemote) const
virtual

Return true if the current connection is on hold. The fromRemote parameter indicates if we are testing if the remote system has us on hold, or we have them on hold.

Parameters
fromRemoteFlag for if remote has us on hold, or we have them

Reimplemented from OpalConnection.

virtual bool H323Connection::IsSendingCapabilitySet ( )
virtual

check if TCS procedure in progress states.

PBoolean H323Connection::IsTransferredCall ( ) const

Determine whether this connection is the result of a transferred call.

PBoolean H323Connection::IsTransferringCall ( ) const

Determine whether this connection is being transferred.

void H323Connection::MonitorCallStatus ( )
protected
virtual void H323Connection::OnAcceptModeChange ( const H245_RequestModeAck &  pdu)
virtual

Received acceptance of last mode change request. This callback indicates that the RequestModeChange() was accepted by the remote endpoint.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnAlerting ( const H323SignalPDU alertingPDU,
const PString &  user 
)
virtual

Call back for remote party being alerted. This function is called from the SendSignalSetup() function after it receives the optional Alerting PDU from the remote endpoint. That is when the remote "phone" is "ringing".

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour calls the endpoint function of the same name.

Parameters
alertingPDUReceived Alerting PDU
userUsername of remote endpoint
virtual AnswerCallResponse H323Connection::OnAnswerCall ( const PString &  callerName,
const H323SignalPDU setupPDU,
H323SignalPDU connectPDU,
H323SignalPDU progressPDU 
)
virtual

Call back for answering an incoming call. This function is used for an application to control the answering of incoming calls. It is usually used to indicate the immediate action to be taken in answering the call.

It is called from the OnReceivedSignalSetup() function before it sends the Alerting or Connect PDUs. It also gives an opportunity for an application to alter the Connect PDU reply before transmission to the remote endpoint.

If AnswerCallNow is returned then the H.323 protocol proceeds with the connection. If AnswerCallDenied is returned the connection is aborted and a Release Complete PDU is sent. If AnswerCallPending is returned then the Alerting PDU is sent and the protocol negotiations are paused until the AnsweringCall() function is called. Finally, if AnswerCallDeferred is returned then no Alerting PDU is sent, but the system still waits as in the AnswerCallPending response.

Note this function should not block for any length of time. If the decision to answer the call may take some time eg waiting for a user to pick up the phone, then AnswerCallPending or AnswerCallDeferred should be returned.

The default behaviour calls the endpoint function of the same name which in turn will return AnswerCallNow.

Parameters
callerNameName of caller
setupPDUReceived setup PDU
connectPDUConnect PDU to send.
progressPDUProgress PDU to send.
virtual AnswerCallResponse H323Connection::OnAnswerCall ( const PString &  callerName)
virtual

Call back for answering an incoming call. This function is called after the connection has been acknowledged but before the connection is established

This gives the application time to wait for some event before signalling to the endpoint that the connection is to proceed. For example the user pressing an "Answer call" button.

If AnswerCallDenied is returned the connection is aborted and the connetion specific end call PDU is sent. If AnswerCallNow is returned then the connection proceeding, Finally if AnswerCallPending is returned then the protocol negotiations are paused until the AnsweringCall() function is called.

The default behaviour calls the endpoint function of the same name.

Parameters
callerNameName of caller

Reimplemented from OpalConnection.

virtual void H323Connection::OnApplyStringOptions ( )
virtual

Call back for connection to act on changed string options.

Reimplemented from OpalConnection.

virtual void H323Connection::OnClosedLogicalChannel ( const H323Channel channel)
virtual

This function is called when the remote endpoint has closed down a logical channel.

The default behaviour does nothing.

Parameters
channelChannel that was closed
virtual void H323Connection::OnClosedMediaStream ( const OpalMediaStream stream)
virtual

Call back for closed a media stream.

The default behaviour calls the OpalEndPoint function of the same name.

Parameters
streamMedia stream being closed

Reimplemented from OpalConnection.

virtual PBoolean H323Connection::OnClosingLogicalChannel ( H323Channel channel)
virtual

This function is called when the remote endpoint request the close of a logical channel.

The application may get an opportunity to refuse to close the channel by returning false from this function.

The default behaviour returns true.

Parameters
channelChannel that is to be closed
virtual PBoolean H323Connection::OnConflictingLogicalChannel ( H323Channel channel)
virtual

Callback for when a logical channel conflict has occurred. This is called when the remote endpoint, which is a master, rejects our transmitter channel due to a resource conflict. Typically an inability to do asymmetric codecs. The local (slave) endpoint must then try and open a new transmitter channel using the same codec as the receiver that is being opened.

Parameters
channelChannel that conflicted
virtual void H323Connection::OnConsultationTransferSuccess ( H323Connection secondaryCall)
virtual

Callback to indicate a successful transfer through consultation. The paramter passed is a reference to the existing connection between the Transferring endpoint and Transferred-to endpoint.

Parameters
secondaryCallSecondary call for consultation
virtual PBoolean H323Connection::OnControlProtocolError ( ControlProtocolErrors  errorSource,
const void *  errorData = NULL 
)
virtual

This function is called from the HandleControlPDU() function or any of its sub-functions for protocol errors, eg unhandled PDU types.

The errorData field may be a string or PDU or some other data depending on the value of the errorSource parameter. These are: e_UnhandledPDU &H323ControlPDU e_MasterSlaveDetermination const char *

If false is returned the connection is aborted. The default behaviour returns true.

Parameters
errorSourceSource of the proptoerror
errorDataData associated with error
virtual PBoolean H323Connection::OnCreateLogicalChannel ( const H323Capability capability,
H323Channel::Directions  dir,
unsigned &  errorCode 
)
virtual

This function is called when the remote endpoint want's to create a new channel.

If the return value is false then the open is rejected using the errorCode as the cause, this would be a value from the enum H245_OpenLogicalChannelReject_cause::Choices.

The default behaviour checks the capability set for if this capability is allowed to be opened with other channels that may already be open.

Parameters
capabilityCapability for the channel open
dirDirection of channel
errorCodeError to return if refused
virtual void H323Connection::OnEstablished ( )
virtual

Called when a connection is established. This indicates that a connection to an endpoint was established. This usually occurs after OnConnected() and indicates that the connection is both connected and has media flowing.

Default behaviour is to call H323EndPoint::OnConnectionEstablished

Reimplemented from OpalConnection.

virtual bool H323Connection::OnH239FlowControlRequest ( unsigned  logicalChannel,
unsigned  bitRate 
)
virtual

Handle a H.239 flow control request. Default behaviour simply sends an acknowedge response.

virtual bool H323Connection::OnH239FlowControlResponse ( unsigned  logicalChannel,
bool  rejected 
)
virtual

Handle a H.239 flow control ack/reject response. Default behaviour does nothing

virtual bool H323Connection::OnH239Message ( unsigned  subMessage,
const H245_ArrayOf_GenericParameter &  params 
)
virtual

Handle a H.239 message from remote.

virtual bool H323Connection::OnH239PresentationIndication ( unsigned  logicalChannel,
unsigned  terminalLabel 
)
virtual

Handle a H.239 presentation token owner indication. Default behaviour does nothing.

virtual bool H323Connection::OnH239PresentationRelease ( unsigned  logicalChannel,
unsigned  terminalLabel 
)
virtual

Handle a H.239 presentation token release command. Default behaviour does nothing.

virtual bool H323Connection::OnH239PresentationRequest ( unsigned  logicalChannel,
unsigned  symmetryBreaking,
unsigned  terminalLabel 
)
virtual

Handle a H.239 presentation token request. Default behaviour simply sends an acknowedge response.

virtual bool H323Connection::OnH239PresentationResponse ( unsigned  logicalChannel,
unsigned  terminalLabel,
bool  rejected 
)
virtual

Handle a H.239 presentation token ack/reject response. Default behaviour simply sends a release command.

virtual PBoolean H323Connection::OnH245_FlowControlCommand ( const H245_FlowControlCommand &  pdu)
virtual

Handle H245 command to control flow control. This function calls OnLogicalChannelFlowControl() with the channel and bit rate restriction.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245_JitterIndication ( const H245_JitterIndication &  pdu)
virtual

Handle H245 indication of received jitter. This function calls OnLogicalChannelJitter() with the channel and estimated jitter.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245_MiscellaneousCommand ( const H245_MiscellaneousCommand &  pdu)
virtual

Handle H245 miscellaneous command. This function passes the miscellaneous command on to the channel defined by the pdu.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245_MiscellaneousIndication ( const H245_MiscellaneousIndication &  pdu)
virtual

Handle H245 miscellaneous indication. This function passes the miscellaneous indication on to the channel defined by the pdu.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245_SendTerminalCapabilitySet ( const H245_SendTerminalCapabilitySet &  pdu)
virtual

Handle H245 command to send terminal capability set.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245Command ( const H323ControlPDU pdu)
virtual

Handle incoming command PDU's on the control channel. Dispatches them to the various virtuals off this class.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245Indication ( const H323ControlPDU pdu)
virtual

Handle incoming indication PDU's on the control channel. Dispatches them to the various virtuals off this class.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245Request ( const H323ControlPDU pdu)
virtual

Handle incoming request PDU's on the control channel. Dispatches them to the various virtuals off this class.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnH245Response ( const H323ControlPDU pdu)
virtual

Handle incoming response PDU's on the control channel. Dispatches them to the various virtuals off this class.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnIncomingCall ( const H323SignalPDU setupPDU,
H323SignalPDU alertingPDU 
)
virtual

Call back for incoming call. This function is called from the OnReceivedSignalSetup() function before it sends the Alerting PDU. It gives an opportunity for an application to alter the reply before transmission to the other endpoint.

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour calls the endpoint function of the same name.

Parameters
setupPDUReceived setup PDU
alertingPDUAlerting PDU to send
virtual PBoolean H323Connection::OnInsufficientDigits ( )
virtual

This function is called when insufficient digits have been entered. This supports overlapped dialling so that a call can begin when it is not known how many more digits are to be entered in a phone number.

It is expected that the application will override this function. It should be noted that the application should not block in the function but only indicate to whatever other thread is gathering digits that more are required and that thread should call SendMoreDigits().

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour simply returns false.

virtual void H323Connection::OnLogicalChannelFlowControl ( H323Channel channel,
long  bitRateRestriction 
)
virtual

This function is called when the remote endpoint wishes to limit the bit rate being sent on a channel.

If channel is NULL, then the bit rate limit applies to all channels.

The default behaviour does nothing if channel is NULL, otherwise calls H323Channel::OnFlowControl() on the specific channel.

Parameters
channelChannel that is to be limited
bitRateRestrictionLimit for channel
virtual void H323Connection::OnLogicalChannelJitter ( H323Channel channel,
DWORD  jitter,
int  skippedFrameCount,
int  additionalBuffer 
)
virtual

This function is called when the remote endpoint indicates the level of jitter estimated by the receiver.

If channel is NULL, then the jitter applies to all channels.

The default behaviour does nothing if channel is NULL, otherwise calls H323Channel::OnJitter() on the specific channel.

Parameters
channelChannel that is to be limited
jitterEstimated received jitter in microseconds
skippedFrameCountFrames skipped by decodec
additionalBufferAdditional size of video decoder buffer
virtual bool H323Connection::OnMediaCommand ( OpalMediaStream stream,
const OpalMediaCommand command 
)
virtual

Callback for media commands. Calls the SendIntraFrameRequest on the rtp session

Returns
true if command is handled.
Parameters
streamStream command executed on
commandMedia command being executed

Reimplemented from OpalRTPConnection.

virtual void H323Connection::OnModeChanged ( const H245_ModeDescription &  newMode)
virtual

Completed request for mode change from remote. This is a call back that accurs after the ack has been sent to the remote as indicated by the OnRequestModeChange() return result. This function is intended to actually implement the mode change after it had been accepted.

virtual PBoolean H323Connection::OnOpenLogicalChannel ( const H245_OpenLogicalChannel &  openPDU,
H245_OpenLogicalChannelAck &  ackPDU,
unsigned &  errorCode,
H323Channel channel 
)
virtual

This function is called when the remote endpoint want's to open a new channel.

If the return value is false then the open is rejected using the errorCode as the cause, this would be a value from the enum H245_OpenLogicalChannelReject_cause::Choices.

The default behaviour simply returns true.

Parameters
openPDUReceived PDU for the channel open
ackPDUPDU to send for acknowledgement
errorCodeError to return if refused
channelChannel being opened
virtual PBoolean H323Connection::OnOutgoingCall ( const H323SignalPDU connectPDU)
virtual

This function is called from the SendSignalSetup() function after it receives the Connect PDU from the remote endpoint, but before it attempts to open the control channel.

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour calls H323EndPoint::OnOutgoingCall

Parameters
connectPDUReceived Connect PDU
virtual void H323Connection::OnReceivedACF ( const H225_AdmissionConfirm &  acf)
virtual

called when an ACF is received from a gatekeeper.

By default, this calls the matching function on the endpoint

virtual PBoolean H323Connection::OnReceivedAlerting ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 alerting PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour obtains the display name and calls OnAlerting().

Parameters
pduReceived connect PDU
virtual void H323Connection::OnReceivedARJ ( const H225_AdmissionReject &  arj)
virtual

called when an ARJ is received from a gatekeeper.

By default, this calls the matching function on the endpoint

virtual PBoolean H323Connection::OnReceivedCallProceeding ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 call proceeding PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour checks for hH245Address field and if present starts the separate H245 channel, if successful or not present it returns true.

Parameters
pduReceived call proceeding PDU
virtual PBoolean H323Connection::OnReceivedCapabilitySet ( const H323Capabilities remoteCaps,
const H245_MultiplexCapability *  muxCap,
H245_TerminalCapabilitySetReject &  reject 
)
virtual

This function is called when the remote endpoint sends its capability set. This gives the application an opportunity to determine what codecs are available and if it supports any of the combinations of codecs.

Note any codec types that are the remote system supports that are not in the codecs list member variable for the endpoint are ignored and not included in the remoteCodecs list.

The default behaviour assigns the table and set to member variables and returns true if the remoteCodecs list is not empty.

Parameters
remoteCapsCapability combinations remote supports
muxCapTransport capability, if present
rejectRejection PDU (if return false)
virtual PBoolean H323Connection::OnReceivedFacility ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 facility PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour checks for hH245Address field and if present starts the separate H245 channel, if successful or not present it returns true.

Parameters
pduReceived connect PDU
virtual PBoolean H323Connection::OnReceivedProgress ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 progress PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour checks for hH245Address field and if present starts the separate H245 channel, if successful or not present it returns true.

Parameters
pduReceived call proceeding PDU
virtual void H323Connection::OnReceivedReleaseComplete ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 Release Complete PDU. The default behaviour calls Clear() using reason code based on the Release Complete Cause field and the current connection state.

Parameters
pduReceived connect PDU
virtual PBoolean H323Connection::OnReceivedSignalConnect ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 connect PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour checks for hH245Address field and if present starts the separate H245 channel, if successful it returns true. If not present and there is no H245Tunneling then it returns false.

Parameters
pduReceived connect PDU
virtual PBoolean H323Connection::OnReceivedSignalInformation ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 information PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour does nothing.

Parameters
pduReceived setup PDU
virtual PBoolean H323Connection::OnReceivedSignalNotify ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 Notify PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour simply returns true.

Parameters
pduReceived connect PDU
virtual PBoolean H323Connection::OnReceivedSignalSetup ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 setup PDU. The default behaviour is to do the handshaking operation calling a few virtuals at certain moments in the sequence.

If false is returned the connection is aborted and a Release Complete PDU is sent.

Parameters
pduReceived setup PDU
virtual PBoolean H323Connection::OnReceivedSignalSetupAck ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 setup acknowledge PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour does nothing.

Parameters
pduReceived setup PDU
virtual PBoolean H323Connection::OnReceivedSignalStatus ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 Status PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour simply returns true.

Parameters
pduReceived connect PDU
virtual PBoolean H323Connection::OnReceivedStatusEnquiry ( const H323SignalPDU pdu)
virtual

Handle an incoming Q931 Status Enquiry PDU. If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour sends a Q931 Status PDU back.

Parameters
pduReceived connect PDU
virtual void H323Connection::OnReceiveFeatureSet ( H460_MessageType  pduType,
const H225_FeatureSet &   
) const
virtual
virtual void H323Connection::OnReceiveOLCGenericInformation ( unsigned  sessionID,
const H245_ArrayOf_GenericInformation &  info,
bool  isAck 
) const
virtual

Received OLC Generic Information. This is used to supply alternate RTP destination information in the generic information field in the OLC for the purpose of probing for an alternate route to the remote party.

virtual void H323Connection::OnRefusedModeChange ( const H245_RequestModeReject *  pdu)
virtual

Received reject of last mode change request. This callback indicates that the RequestModeChange() was accepted by the remote endpoint.

Parameters
pduReceived PDU, if NULL is a timeout
virtual void H323Connection::OnReleased ( )
virtual

Clean up the termination of the connection. This function can do any internal cleaning up and waiting on background threads that may be using the connection object.

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

Classes that override this function should make sure they call the ancestor version for correct operation.

An application will not typically call this function as it is used by the OpalManager during a release of the connection.

The default behaviour calls OnRelease() then calls the ancestor.

Reimplemented from OpalRTPConnection.

virtual PBoolean H323Connection::OnRequestModeChange ( const H245_RequestMode &  pdu,
H245_RequestModeAck &  ack,
H245_RequestModeReject &  reject,
PINDEX &  selectedMode 
)
virtual

Received request for mode change from remote.

Parameters
pduReceived PDU
ackAck PDU to send
rejectReject PDU to send
selectedModeWhich mode was selected
virtual void H323Connection::OnSelectLogicalChannels ( )
virtual

Call back to select logical channels to start.

This function must be defined by the descendent class. It is used to select the logical channels to be opened between the two endpoints. There are three ways in which this may be called: when a "fast start" has been initiated by the local endpoint (via SendSignalSetup() function), when a "fast start" has been requested from the remote endpoint (via the OnReceivedSignalSetup() function) or when the H245 capability set (and master/slave) negotiations have completed (via the OnControlChannelOpen() function.

The function would typically examine several member variable to decide which mode it is being called in and what to do. If fastStartState is FastStartDisabled then non-fast start semantics should be used. The H245 capabilities in the remoteCapabilities members should be examined, and appropriate transmit channels started using OpenLogicalChannel().

If fastStartState is FastStartInitiate, then the local endpoint has initiated a call and is asking the application if fast start semantics are to be used. If so it is expected that the function call OpenLogicalChannel() for all the channels that it wishes to be able to be use. A subset (possibly none!) of these would actually be started when the remote endpoint replies.

If fastStartState is FastStartResponse, then this indicates the remote endpoint is attempting a fast start. The fastStartChannels member contains a list of possible channels from the remote that the local endpoint is to select which to accept. For each accepted channel it simply necessary to call the Start() function on that channel eg fastStartChannels[0].Start();

The default behaviour selects the first codec of each session number that is available. This is according to the order of the capabilities in the remoteCapabilities, the local capability table or of the fastStartChannels list respectively for each of the above scenarios.

virtual void H323Connection::OnSendARQ ( H225_AdmissionRequest &  arq)
virtual

called when an ARQ needs to be sent to a gatekeeper. This allows the connection to change or check fields in the ARQ before it is sent.

By default, this calls the matching function on the endpoint

virtual PBoolean H323Connection::OnSendCallProceeding ( H323SignalPDU callProceedingPDU)
virtual

Adjust call proceeding PDU being sent. This function is called from the OnReceivedSignalSetup() function before it sends the Call Proceeding PDU. It gives an opportunity for an application to alter the request before transmission to the other endpoint. If this function returns false then the Call Proceeding PDU is not sent at all.

The default behaviour simply returns true.

Parameters
callProceedingPDUCall Proceeding PDU to send
virtual void H323Connection::OnSendCapabilitySet ( H245_TerminalCapabilitySet &  pdu)
virtual

This function is called from the HandleControlPDU() function when it is about to send the Capabilities Set to the remote endpoint. This gives the application an oppurtunity to alter the PDU to be sent.

The default behaviour will make "adjustments" for compatibility with some broken remote endpoints.

Parameters
pduPDU to send
virtual void H323Connection::OnSendDRQ ( H225_DisengageRequest &  drq) const
virtual

called when an DRQ needs to be sent to a gatekeeper. This allows the connection to change or check fields in the DRQ before it is sent.

By default, this does nothing

virtual bool H323Connection::OnSendFeatureSet ( H460_MessageType  pduType,
H225_FeatureSet &   
) const
virtual
virtual void H323Connection::OnSendH245_OpenLogicalChannel ( H245_OpenLogicalChannel &  ,
PBoolean   
)
inlinevirtual

Callback to modify the outgoing H245_OpenLogicalChannel. The default behaviour does nothing.

virtual bool H323Connection::OnSendingOLCGenericInformation ( unsigned  sessionID,
H245_ArrayOf_GenericInformation &  info,
bool  isAck 
) const
virtual

Send Generic Information in the OLC. This is used to include generic information in the openlogicalchannel

Parameters
sessionIDSession Information
infoGeneric OLC/OLCack message
virtual void H323Connection::OnSendIRR ( H225_InfoRequestResponse &  irr) const
virtual

called when an IRR needs to be sent to a gatekeeper. This allows the connection to change or check fields in the IRR before it is sent.

By default, this does nothing

virtual PBoolean H323Connection::OnSendReleaseComplete ( H323SignalPDU releaseCompletePDU)
virtual

Call back for Release Complete being sent. This allows an application to add things to the release complete before it is sent to the remote endpoint.

Returning false will prevent the release complete from being sent. Note that this would be very unusual as this is called when the connection is being cleaned up. There will be no second chance to send the PDU and it must be sent.

The default behaviour simply returns true.

Parameters
releaseCompletePDURelease Complete PDU to send
virtual PBoolean H323Connection::OnSendSignalSetup ( H323SignalPDU setupPDU)
virtual

Adjust setup PDU being sent on initialisation of signal channel. This function is called from the SendSignalSetup() function before it sends the Setup PDU. It gives an opportunity for an application to alter the request before transmission to the other endpoint.

The default behaviour simply returns true. Note that this is usually overridden by the transport dependent descendent class, eg the H323ConnectionTCP descendent fills in the destCallSignalAddress field with the TCP/IP data. Therefore if you override this in your application make sure you call the ancestor function.

Parameters
setupPDUSetup PDU to send
virtual void H323Connection::OnSetLocalCapabilities ( )
virtual

Call back to set the local capabilities. This is called just before the capabilties are required when a call is begun. It is called when a SETUP PDU is received or when one is about to be sent, so that the capabilities may be adjusted for correct fast start operation.

The default behaviour adds all media formats.

virtual PBoolean H323Connection::OnStartHandleControlChannel ( )
virtual
virtual PBoolean H323Connection::OnStartLogicalChannel ( H323Channel channel)
virtual

Call back function when a logical channel thread begins.

The default behaviour does nothing and returns true.

Parameters
channelChannel that has been started.
virtual PBoolean H323Connection::OnUnknownControlPDU ( const H323ControlPDU pdu)
virtual

This function is called from the HandleControlPDU() function for unhandled PDU types.

If false is returned the connection is aborted and a Release Complete PDU is sent. The default behaviour returns true.

The default behaviour send a FunctioNotUnderstood indication back to the sender, and returns true to continue operation.

Parameters
pduReceived PDU
virtual PBoolean H323Connection::OnUnknownSignalPDU ( const H323SignalPDU pdu)
virtual

This function is called from the HandleSignallingChannel() function for unhandled PDU types.

If false is returned the connection is aborted and a Release Complete PDU is sent. The default behaviour returns true.

Parameters
pduReceived PDU
virtual void H323Connection::OnUserInputIndication ( const H245_UserInputIndication &  pdu)
virtual

Call back for remote enpoint has sent user input. The default behaviour calls OnUserInputString() if the PDU is of the alphanumeric type, or OnUserInputTone() if of a tone type.

Parameters
pduFull user indication PDU
virtual void H323Connection::OpenFastStartChannel ( unsigned  sessionID,
H323Channel::Directions  direction 
)
virtual

Start a logical channel for fast start. Internal function, not for normal use.

Parameters
sessionIDSession ID to find logical channel.
directionDirection of channel to start
virtual PBoolean H323Connection::OpenLogicalChannel ( const H323Capability capability,
unsigned  sessionID,
H323Channel::Directions  dir 
)
virtual

Open a new logical channel. This function will open a channel between the endpoints for the specified capability.

If this function is called while there is not yet a conenction established, eg from the OnFastStartLogicalChannels() function, then a "trial" receiver/transmitter channel is created. This channel is not started until the remote enpoint has confirmed that they are to start. Any channels not confirmed are deleted.

If this function is called later in the call sequence, eg from OnSelectLogicalChannels(), then it may only establish a transmit channel, ie fromRemote must be false.

Parameters
capabilityCapability to open channel with
sessionIDSession for the channel
dirDirection of channel
virtual OpalMediaStreamPtr H323Connection::OpenMediaStream ( const OpalMediaFormat mediaFormat,
unsigned  sessionID,
bool  isSource 
)
virtual

Open source or sink media stream for session.

Parameters
mediaFormatMedia format to open
sessionIDSession to start stream on
isSourceStream is a source/sink

Reimplemented from OpalConnection.

H323Connection::P_DECLARE_ENUM ( CompatibilityIssues  ,
e_NoMultipleTunnelledH245  ,
e_BadMasterSlaveConflict  ,
e_NoUserInputCapability  ,
e_H224MustBeSession3  ,
e_NeedTCSAfterNonEmptyTCS  ,
e_NeedMSDAfterNonEmptyTCS  ,
e_ForceMaintainConnection   
)

Compatibility workarounds.

H323Connection::P_DECLARE_ENUM_NAMES ( CompatibilityIssues  ,
"No-Multiple-Tunnelled-H245"  ,
"Bad-Master-Slave-Conflict"  ,
"No-User-Input-Capability"  ,
"H.224-Must-Be-Session-3"  ,
"Need-TCS-after-Non-Empty-TCS"  ,
"Need-MSD-after-Non-Empty-TCS"  ,
"Force-Maintain-TCP-Connection"   
)
H323Connection::P_DECLARE_TRACED_ENUM ( ConnectionStates  ,
NoConnectionActive  ,
AwaitingGatekeeperAdmission  ,
AwaitingTransportConnect  ,
AwaitingSignalConnect  ,
AwaitingLocalAnswer  ,
HasExecutedSignalConnect  ,
EstablishedConnection  ,
ShuttingDownConnection   
)
protected
H323Connection::P_DECLARE_TRACED_ENUM ( RemoteHoldStates  ,
eOffHoldFromRemote  ,
eOnHoldFromRemote  ,
eRetrieveFromRemote   
)
protected
H323Connection::P_DECLARE_TRACED_ENUM ( FastStartStates  ,
FastStartDisabled  ,
FastStartInitiate  ,
FastStartResponse  ,
FastStartAcknowledged   
)
protected
H323Connection::PDECLARE_AcceptHandlerNotifier ( H323Connection  ,
NewIncomingControlChannel   
)
protected
H323Connection::PDECLARE_NOTIFIER ( PThread  ,
H323Connection  ,
NewOutgoingControlChannel   
)
protected
H323Connection::PDECLARE_NOTIFIER ( PTimer  ,
H323Connection  ,
UserInputIndicationTimeout   
)
protected
virtual PBoolean H323Connection::RequestModeChange ( const PString &  newModes)
virtual

Make a request to mode change to remote. This asks the remote system to stop it transmitters and start sending one of the combinations specifed.

The modes are separated in the string by
characters, and all of the channels (capabilities) are strings separated by characters. Thus a very simple mode change would be "T.38" which requests that the remote start sending T.38 data and nothing else. A more complicated example would be "G.723\tH.261\nG.729\tH.261\nG.728" which indicates that the remote should either start sending G.723 and H.261, G.729 and H.261 or just G.728 on its own.

Returns false if a mode change is currently in progress, only one mode change may be done at a time.

Parameters
newModesNew modes to select
virtual PBoolean H323Connection::RequestModeChange ( const H245_ArrayOf_ModeDescription &  newModes)
virtual

Make a request to mode change to remote. This asks the remote system to stop it transmitters and start sending one of the combinations specifed.

Returns false if a mode change is currently in progress, only one mode change may be done at a time.

Parameters
newModesNew modes to select
virtual PBoolean H323Connection::RequestModeChangeT38 ( const char *  capabilityNames = "T.38\nT38FaxUDP")
virtual

Request a mode change to T.38 data. Note this function is strictly H.323 and does operate correctly in the OPAL media stream model. It is maintained for backward compatibility with older applications only.

virtual bool H323Connection::RequestPresentationRole ( bool  release)
virtual

Send request for ability to send presentation video. This requests the "presentation token" in H.239 terminology. It gives permission to start secondary video channels with "presentation" role. This is done via OpalCall::OpenSourceMediaStreams().

If called, and returns true, the OnChangedPresentationRole() should be monitored for being this connections GetLocalPartyURL() value, indicating success. Any other value indicates failure.

Default behaviour uses H.239 if available, otherwise returns false.

Parameters
releaseIndicate we are acquiring or releasing the token

Reimplemented from OpalConnection.

virtual void H323Connection::SelectDefaultLogicalChannel ( const OpalMediaType mediaType,
unsigned  sessionID 
)
virtual

Select default logical channel for normal start.

Parameters
mediaTypemedia type of channel
sessionIDSession ID to find default logical channel.
virtual void H323Connection::SelectFastStartChannels ( unsigned  sessionID,
PBoolean  transmitter,
PBoolean  receiver 
)
virtual

Select default logical channel for fast start. Internal function, not for normal use.

Parameters
sessionIDSession ID to find default logical channel.
transmitterWhether to open transmitters
receiverWhether to open receivers
void H323Connection::SendCallWaitingIndication ( const unsigned  nbOfAddWaitingCalls = 0)

Send a Call Waiting indication message to the remote endpoint using H.450.6. The second paramter is used to indicate to the calling user how many additional users are "camped on" the called user. A value of zero indicates to the calling user that he/she is the only user attempting to reach the busy called user.

Parameters
nbOfAddWaitingCallsnumber of additional waiting calls at the served user
virtual bool H323Connection::SendCapabilitySet ( PBoolean  empty)
virtual

Send a new capability set.

Parameters
emptySend an empty set.
virtual PBoolean H323Connection::SendFastStartAcknowledge ( H225_ArrayOf_PASN_OctetString &  array)
virtual

Send an the acknowldege of a fast start. This function is called when the fast start channels provided to this connection by the original SETUP PDU have been selected and opened and need to be sent back to the remote endpoint.

If false is returned then no fast start has been acknowledged, possibly due to no common codec in fast start request.

The default behaviour uses OnSelectLogicalChannels() to find a pair of channels and adds then to the provided PDU.

Parameters
arrayArray of H245_OpenLogicalChannel
virtual void H323Connection::SendFlowControlCommand ( unsigned  channelNumber,
unsigned  newBitRate 
)
virtual
virtual bool H323Connection::SendH239PresentationRelease ( unsigned  logicalChannel,
unsigned  terminalLabel 
)
virtual

Send a H.239 presentation token release. Tell the remote we no longer require the "token" allowing the local system to own the presentation video channel.

virtual bool H323Connection::SendH239PresentationRequest ( unsigned  logicalChannel,
unsigned  symmetryBreaking,
unsigned  terminalLabel 
)
virtual

Send a H.239 presentation token request. Asks the remote for the "token" allow local system to own the presentation video channel. A OnH239PresentationResponse() callback should occur when the remote responds to the request.

virtual void H323Connection::SendMoreDigits ( const PString &  digits)
virtual

This function is called when sufficient digits have been entered. This supports overlapped dialling so that a call can begin when it is not known how many more digits are to be entered in a phone number.

The digits parameter is appended to the existing remoteNumber member variable and the call is retried.

If false is returned the connection is aborted and a Release Complete PDU is sent.

The default behaviour simply returns true.

Parameters
digitsExtra digits
bool H323Connection::SendReleaseComplete ( )
protected
virtual CallEndReason H323Connection::SendSignalSetup ( const PString &  alias,
const H323TransportAddress address 
)
virtual

Send first PDU in signalling channel. This function does the signalling handshaking for establishing a connection to a remote endpoint. The transport (TCP/IP) for the signalling channel is assumed to be already created. This function will then do the SetRemoteAddress() and Connect() calls o establish the transport.

Returns the error code for the call failure reason or NumCallEndReasons if the call was successful to that point in the protocol.

Parameters
aliasName of remote party
addressAddress of destination
virtual PBoolean H323Connection::SendUserInputIndication ( const H245_UserInputIndication &  pdu)
virtual

Send a user input indication to the remote endpoint. The two forms are for basic user input of a simple string using the SendUserInput() function or a full DTMF emulation user input using the SendUserInputTone() function.

An application could do more sophisticated usage by filling in the H245_UserInputIndication structure directly ans using this function.

Parameters
pduFull user indication PDU
virtual PBoolean H323Connection::SendUserInputIndicationQ931 ( const PString &  value)
virtual

Send a user input indication to the remote endpoint. This is for sending arbitrary strings as user indications.

This always uses a Q.931 Keypad Information Element in a Information pdu sending the entire string in one go.

Parameters
valueString value of indication
virtual PBoolean H323Connection::SendUserInputIndicationString ( const PString &  value)
virtual

Send a user input indication to the remote endpoint. This is for sending arbitrary strings as user indications.

This always uses an H.245 "string" UserInputIndication pdu sending the entire string in one go.

Parameters
valueString value of indication
virtual PBoolean H323Connection::SendUserInputIndicationTone ( char  tone,
unsigned  duration = 0,
unsigned  logicalChannel = 0,
unsigned  rtpTimestamp = 0 
)
virtual

Send a user input indication to the remote endpoint. This sends DTMF emulation user input.This uses an H.245 "signal" UserInputIndication pdu.

Parameters
toneDTMF tone code
durationDuration of tone in milliseconds
logicalChannelLogical channel number for RTP sync.
rtpTimestampRTP timestamp in logical channel sync.
virtual PBoolean H323Connection::SendUserInputString ( const PString &  value)
virtual

Send a user input indication to the remote endpoint. This is for sending arbitrary strings as user indications.

The user indication is sent according to the sendUserInputMode member variable. If SendUserInputAsString then this uses an H.245 "string" UserInputIndication pdu sending the entire string in one go. If SendUserInputAsTone then a separate H.245 "signal" UserInputIndication pdu is sent for each character. If SendUserInputAsInlineRFC2833 then the indication is inserted into the outgoing audio stream as an RFC2833 RTP data pdu.

SendUserInputAsSeparateRFC2833 is not yet supported.

Parameters
valueString value of indication

Reimplemented from OpalConnection.

virtual PBoolean H323Connection::SendUserInputTone ( char  tone,
unsigned  duration = 0 
)
virtual

Send a user input indication to the remote endpoint. This sends DTMF emulation user input. If something more sophisticated than the simple tones that can be sent using the SendUserInput() function.

A duration of zero indicates that no duration is to be indicated. A non-zero logical channel indicates that the tone is to be syncronised with the logical channel at the rtpTimestamp value specified.

The tone parameter must be one of "0123456789#*ABCD!" where '!' indicates a hook flash. If tone is a ' ' character then a signalUpdate PDU is sent that updates the last tone indication sent. See the H.245 specifcation for more details on this.

The user indication is sent according to the sendUserInputMode member variable. If SendUserInputAsString then this uses an H.245 "string" UserInputIndication pdu sending the entire string in one go. If SendUserInputAsTone then a separate H.245 "signal" UserInputIndication pdu is sent for each character. If SendUserInputAsInlineRFC2833 then the indication is inserted into the outgoing audio stream as an RFC2833 RTP data pdu.

SendUserInputAsSeparateRFC2833 is not yet supported.

Parameters
toneDTMF tone code
durationDuration of tone in milliseconds

Reimplemented from OpalRTPConnection.

virtual PBoolean H323Connection::SetAlerting ( const PString &  calleeName,
PBoolean  withMedia 
)
virtual

Indicate to remote endpoint an alert is in progress. If this is an incoming connection and it is in the Alerting phase, then this function is used to indicate to that endpoint that an alert is in progress. This is usually due to another connection which is in the call (the B party) has received an OnAlerting() indicating that its remote endpoint is "ringing".

The default behaviour sends an ALERTING pdu.

Parameters
calleeNameName of endpoint being alerted.
withMediaOpen media with alerting

Reimplemented from OpalConnection.

virtual bool H323Connection::SetAlertingType ( const PString &  info)
virtual

Set alerting type information for outgoing call. The type of "distinctive ringing" for the call. The string is protocol dependent, so the caller would need to be aware of the type of call being made. Some protocols may ignore the field completely.

For SIP this corresponds to the string contained in the "Alert-Info" header field of the INVITE. This is typically a URI for the ring file.

For H.323 this must be a string representation of an integer from 0 to 7 which will be contained in the Q.931 SIGNAL (0x34) Information Element.

Default behaviour returns false.

Reimplemented from OpalConnection.

void H323Connection::SetAssociatedCallToken ( const PString &  token)

Store the passed token on the current connection's H4502Handler. This is an internal function and it is not expected the user will call it directly.

Parameters
tokenAssociated token
void H323Connection::SetCallIntrusion ( )
inline

Set flag indicating call intrusion. Used to set a flag when intrusion occurs and to determine if connection is created for Call Intrusion. This flag is used when we should decide whether to Answer the call or to Close it.

References isCallIntrusion.

void H323Connection::SetConferenceGoal ( ConferenceGoal  goal)
inline

Set the conference goal for this connection.

References m_conferenceGoal.

virtual PBoolean H323Connection::SetConnected ( )
virtual

Indicate to remote endpoint we are connected.

The default behaviour sends a CONNECT pdu.

Reimplemented from OpalConnection.

void H323Connection::SetDestExtraCallInfo ( const PString &  info)
inline

Set the Destionation Extra Call Info memeber.

References destExtraCallInfo.

void H323Connection::SetDistinctiveRing ( unsigned  pattern)
inline

Set the distinctive ring code for outgoing call. This sets the integer from 0 to 7 that will be used in the outgoing Setup PDU. Note this must be called either immediately after construction or during the OnSendSignalSetup() callback function so the member variable is set befor ethe PDU is sent.

References distinctiveRing.

void H323Connection::SetEnforcedDurationLimit ( unsigned  seconds)

Set the enforced duration limit for the call. This starts a timer that will automatically shut down the call when it expires.

Parameters
secondsmax duration of call in seconds
virtual void H323Connection::SetForcedReleaseAccepted ( )
virtual
void H323Connection::SetGkAccessTokenOID ( const PString &  oid)
inline

Set the iNow Gatekeeper Access Token OID.

References gkAccessTokenOID.

void H323Connection::SetIncomingBearerCapabilities ( const H323SignalPDU pdu)
protected
virtual void H323Connection::SetIntrusionImpending ( )
virtual
virtual void H323Connection::SetIntrusionNotAuthorized ( )
virtual
void H323Connection::SetLocalH239Control ( bool  on)
inline

Set the local H.239 control capability.

Parameters
onH.239 control capability is to be sent to remote

References m_h239Control.

void H323Connection::SetLocalPartyName ( const PString &  name)
virtual

Set the local name/alias from information in the PDU.

Reimplemented from OpalConnection.

template<class PDU >
void H323Connection::SetMaintainConnectionFlag ( const PDU &  pdu)
inlineprotected

References m_maintainConnection.

void H323Connection::SetOutgoingBearerCapabilities ( H323SignalPDU pdu) const
protected
virtual PBoolean H323Connection::SetProgressed ( )
virtual

Indicate to remote endpoint we are sending a progress.

The default behaviour sends a PROGRESS pdu.

void H323Connection::SetProgressIndicator ( unsigned  indicator)
inline

Set Q.931 Progress Indicator IE description to send in PROGRESS or ALERTING pdus.

References m_progressIndicator.

void H323Connection::SetRemotCallWaiting ( const unsigned  value)
inline

Set the remote call waiting flag

References remoteCallWaiting.

void H323Connection::SetRemoteApplication ( const H225_EndpointType &  pdu)

Set the name/alias of remote end from information in the PDU.

Parameters
pduPDU from which to extract application info.
virtual void H323Connection::SetRemotePartyInfo ( const H323SignalPDU pdu)
virtual

Set the name/alias of remote end from information in the PDU.

Parameters
pduPDU from which to extract party info.
void H323Connection::SetRemoteVersions ( const H225_ProtocolIdentifier &  id)
protected
virtual PBoolean H323Connection::SetUpConnection ( )
virtual

Start an outgoing connection. This function will initiate the connection to the remote entity, for example in H.323 it sends a SETUP, in SIP it sends an INVITE etc.

The default behaviour is to send SETUP packet.

Reimplemented from OpalConnection.

void H323Connection::SetUUIEsRequested ( unsigned  mask)
inline

Set the UUIE PDU monitor bit mask.

References uuiesRequested.

virtual PBoolean H323Connection::StartControlNegotiations ( )
virtual

Start control channel negotiations.

PBoolean H323Connection::StartHandleControlChannel ( )
void H323Connection::StartRoundTripDelay ( )

Start the round trip delay calculation over the control channel.

bool H323Connection::TransferCall ( const PString &  remoteParty,
const PString &  callIdentity = PString::Empty() 
)

Initiate the transfer of an existing call (connection) to a new remote party using H.450.2. This sends a Call Transfer Initiate Invoke message from the A-Party (transferring endpoint) to the B-Party (transferred endpoint).

Parameters
remotePartyRemote party to transfer the existing call to
callIdentityCall Identity of secondary call if present
virtual bool H323Connection::TransferConnection ( const PString &  remoteParty)
virtual

Initiate the transfer of an existing call (connection) to a new remote party.

If remoteParty is a valid call token, then the remote party is transferred to that party (consultation transfer) and both calls are cleared.

Parameters
remotePartyRemote party to transfer the existing call to

Reimplemented from OpalConnection.

virtual PBoolean H323Connection::WriteControlPDU ( const H323ControlPDU pdu)
virtual

Write a PDU to the control channel. If there is no control channel open then this will tunnel the PDU into the signalling channel.

PBoolean H323Connection::WriteSignalPDU ( H323SignalPDU pdu)

Write a PDU to the signalling channel.

Parameters
pduPDU to write.

Field Documentation

bool H323Connection::addAccessTokenToSetup
protected
H323SignalPDU* H323Connection::alertingPDU
protected
OpalGloballyUniqueID H323Connection::callIdentifier
protected

Referenced by GetCallIdentifier().

unsigned H323Connection::callIntrusionProtectionLevel
protected
unsigned H323Connection::callReference
protected

Referenced by GetCallReference().

H245NegTerminalCapabilitySet* H323Connection::capabilityExchangeProcedure
protected
OpalGloballyUniqueID H323Connection::conferenceIdentifier
protected

Referenced by GetConferenceIdentifier().

ConnectionStates H323Connection::connectionState
protected
H323SignalPDU* H323Connection::connectPDU
protected
OpalListener* H323Connection::controlListener
protected
PString H323Connection::destExtraCallInfo
protected

Referenced by SetDestExtraCallInfo().

PSyncPoint H323Connection::digitsWaitFlag
protected
unsigned H323Connection::distinctiveRing
protected
bool H323Connection::doH245inSETUP
protected
bool H323Connection::earlyStart
protected
H323EndPoint& H323Connection::endpoint
protected

Referenced by GetEndPoint().

PSyncPoint H323Connection::endSessionReceived
protected
PTimer H323Connection::enforcedDurationLimit
protected
bool H323Connection::gatekeeperRouted
protected

Referenced by IsGatekeeperRouted().

PBYTEArray H323Connection::gkAccessTokenData
protected

Referenced by GetGkAccessTokenData().

PString H323Connection::gkAccessTokenOID
protected
unsigned H323Connection::h225version
protected

Referenced by GetSignallingVersion().

bool H323Connection::h245Tunneling
protected
H323SignalPDU* H323Connection::h245TunnelRxPDU
protected
H323SignalPDU* H323Connection::h245TunnelTxPDU
protected
unsigned H323Connection::h245version
protected

Referenced by GetControlVersion().

bool H323Connection::h245versionSet
protected
H45011Handler* H323Connection::h45011handler
protected
H4502Handler* H323Connection::h4502handler
protected
H4504Handler* H323Connection::h4504handler
protected
H4506Handler* H323Connection::h4506handler
protected
H4507Handler* H323Connection::h4507handler
protected

Referenced by getH4507handler().

H450xDispatcher* H323Connection::h450dispatcher
protected
bool H323Connection::isCallIntrusion
protected

Call Intrusion flag and parameters

Referenced by IsCallIntrusion(), and SetCallIntrusion().

bool H323Connection::isConsultationTransfer
protected
bool H323Connection::lastPDUWasH245inSETUP
protected
PStringList H323Connection::localAliasNames
protected

Referenced by GetLocalAliasNames().

H323Capabilities H323Connection::localCapabilities
protected

Referenced by GetLocalCapabilities().

PString H323Connection::localDestinationAddress
protected
H245NegLogicalChannels* H323Connection::logicalChannels
protected
ConferenceGoal H323Connection::m_conferenceGoal
protected
PSafeDictionary<POrdinalKey, OpalMediaStream> H323Connection::m_conflictingChannels
protected
OpalTransportPtr H323Connection::m_controlChannel
protected
bool H323Connection::m_endSessionNeeded
protected
H323LogicalChannelList H323Connection::m_fastStartChannels
protected
FastStartStates H323Connection::m_fastStartState
protected
H460_FeatureSet* H323Connection::m_features
protected

Referenced by GetFeatureSet().

bool H323Connection::m_forceSymmetricTCS
protected
bool H323Connection::m_h239Control
protected
unsigned H323Connection::m_h239SymmetryBreaking
protected
unsigned H323Connection::m_h239TerminalLabel
protected
unsigned H323Connection::m_h239TokenChannel
protected
bool H323Connection::m_h239TokenOwned
protected
PSimpleTimer H323Connection::m_h245FastUpdatePictureTimer
protected
RemoteHoldStates H323Connection::m_holdFromRemote
protected
bool H323Connection::m_holdToRemote
protected
char H323Connection::m_lastUserInputIndication
protected
PSimpleTimer H323Connection::m_lastUserInputIndicationStart
protected
bool H323Connection::m_maintainConnection
protected
unsigned H323Connection::m_progressIndicator
protected
bool H323Connection::m_releaseCompleteNeeded
protected
H323TransportAddress H323Connection::m_remoteConnectAddress
protected
OpalTransportPtr H323Connection::m_signallingChannel
protected

Referenced by GetSignallingChannel().

PTimer H323Connection::m_UserInputIndicationTimer
protected
H245NegMasterSlaveDetermination* H323Connection::masterSlaveDeterminationProcedure
protected
bool H323Connection::mediaWaitForConnect
protected
bool H323Connection::mustSendDRQ
protected
H323SignalPDU* H323Connection::progressPDU
protected
int H323Connection::remoteCallWaiting
protected
H323Capabilities H323Connection::remoteCapabilities
protected

Referenced by GetRemoteCapabilities().

unsigned H323Connection::remoteMaxAudioDelayJitter
protected
H245NegRequestMode* H323Connection::requestModeProcedure
protected
H245NegRoundTripDelay* H323Connection::roundTripDelayProcedure
protected
PTimer H323Connection::roundTripDelayTimer
protected
H323SignalPDU* H323Connection::setupPDU
protected
PString H323Connection::t38ModeChangeCapabilities
protected
unsigned H323Connection::uuiesRequested
protected

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