reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
recon::SipXRemoteParticipantDialogSet Class Reference

This class is used by Invite DialogSets. More...

#include <SipXRemoteParticipantDialogSet.hxx>

Inheritance diagram for recon::SipXRemoteParticipantDialogSet:
[legend]

Public Member Functions

 SipXRemoteParticipantDialogSet (ConversationManager &conversationManager, SipXMediaStackAdapter &sipXMediaStackAdapter, ConversationManager::ParticipantForkSelectMode forkSelectMode=ConversationManager::ForkSelectAutomatic, std::shared_ptr< ConversationProfile > conversationProfile=nullptr)
 
virtual ~SipXRemoteParticipantDialogSet ()
 
virtual resip::AppDialog * createAppDialog (const resip::SipMessage &msg)
 
virtual unsigned int getLocalRTPPort ()
 
virtual void setActiveRemoteParticipantHandle (ParticipantHandle handle)
 
virtual void setPeerExpectsSAVPF (bool value)
 
virtual bool peerExpectsSAVPF ()
 
virtual int getMediaConnectionId ()
 
virtual int getConnectionPortOnBridge ()
 
virtual void freeMediaResources ()
 
void setActiveDestination (const char *address, unsigned short rtpPort, unsigned short rtcpPort)
 
void startDtlsClient (const char *address, unsigned short rtpPort, unsigned short rtcpPort)
 
void setRemoteSDPFingerprint (const resip::Data &hashFunction, const resip::Data &fingerprint)
 
bool createSRTPSession (resip::MediaConstants::SrtpCryptoSuite cryptoSuite, const char *remoteKey, size_t remoteKeyLen)
 
virtual void processMediaStreamReadyEvent (std::shared_ptr< MediaStreamReadyEvent::StreamParams > streamParams)
 
resip::MediaConstants::SrtpCryptoSuite getSrtpCryptoSuite ()
 
const resip::Data & getLocalSrtpSessionKey ()
 
- Public Member Functions inherited from recon::RemoteParticipantDialogSet
 RemoteParticipantDialogSet (ConversationManager &conversationManager, ConversationManager::ParticipantForkSelectMode forkSelectMode=ConversationManager::ForkSelectAutomatic, std::shared_ptr< ConversationProfile > conversationProfile=nullptr)
 
virtual ~RemoteParticipantDialogSet ()
 
virtual RemoteParticipant * createUACOriginalRemoteParticipant (ParticipantHandle handle)
 
std::shared_ptr< ConversationProfile > getConversationProfile ()
 
virtual void endIncludeRelated (ParticipantHandle requestingParticipant)
 
virtual void setProposedSdp (ParticipantHandle handle, const resip::SdpContents &sdp)
 
virtual std::shared_ptr< resip::SdpContents > getProposedSdp ()
 
virtual void setUACConnected (const resip::DialogId &dialogId, ParticipantHandle partHandle)
 
virtual bool isUACConnected ()
 
virtual bool isStaleFork (const resip::DialogId &dialogId)
 
virtual void removeDialog (const resip::DialogId &dialogId)
 
virtual ConversationManager::ParticipantForkSelectMode getForkSelectMode ()
 
virtual ParticipantHandle getActiveRemoteParticipantHandle ()
 
virtual void onTrying (resip::AppDialogSetHandle, const resip::SipMessage &msg)
 
virtual void onNonDialogCreatingProvisional (resip::AppDialogSetHandle, const resip::SipMessage &msg)
 
virtual void processMediaStreamErrorEvent (unsigned int errorCode)
 
void sendInvite (std::shared_ptr< resip::SipMessage > invite)
 
void provideOffer (std::unique_ptr< resip::SdpContents > offer, resip::InviteSessionHandle &inviteSessionHandle, bool postOfferAccept)
 
void provideAnswer (std::unique_ptr< resip::SdpContents > answer, resip::InviteSessionHandle &inviteSessionHandle, bool postAnswerAccept, bool postAnswerAlert)
 
void accept (resip::InviteSessionHandle &inviteSessionHandle)
 
ConversationProfile::SecureMediaMode getSecureMediaMode ()
 
void setSecureMediaMode (ConversationProfile::SecureMediaMode m)
 
bool getSecureMediaRequired ()
 
void setSecureMediaRequired (bool r)
 
- Public Member Functions inherited from resip::AppDialogSet
virtual void destroy ()
 
virtual void end ()
 
virtual void end (const Data &endReason)
 
virtual void end (const ParserContainer< Token > &endReasons)
 
virtual void endCommand ()
 
virtual void endCommand (const Data &reason)
 
virtual void endCommand (const ParserContainer< Token > &endReasons)
 
virtual std::shared_ptr< UserProfile > getUserProfile ()
 
AppDialogSetHandle getHandle ()
 
DialogSetId getDialogSetId ()
 
virtual const Data getClassName ()
 
virtual EncodeStream & dump (EncodeStream &strm) const
 
- Public Member Functions inherited from resip::Handled
 Handled (HandleManager &ham)
 
virtual ~Handled ()
 

Protected Member Functions

virtual bool isAsyncMediaSetup ()
 
virtual void fixUpSdp (resip::SdpContents *sdp)
 
- Protected Member Functions inherited from recon::RemoteParticipantDialogSet
RemoteParticipant * getUACOriginalRemoteParticipant ()
 
virtual std::shared_ptr< resip::UserProfile > selectUASUserProfile (const resip::SipMessage &)
 
- Protected Member Functions inherited from resip::AppDialogSet
 AppDialogSet (DialogUsageManager &dum)
 
virtual ~AppDialogSet ()
 

Additional Inherited Members

- Public Types inherited from resip::Handled
enum  { npos = 0 }
 
typedef unsigned long Id
 
- Protected Attributes inherited from recon::RemoteParticipantDialogSet
std::map< resip::DialogId, RemoteParticipant * > mDialogs
 
ConversationManager & mConversationManager
 
ParticipantHandle mActiveRemoteParticipantHandle
 
- Protected Attributes inherited from resip::AppDialogSet
DialogUsageManager & mDum
 
- Protected Attributes inherited from resip::Handled
HandleManager & mHam
 
Handled::Id mId
 

Detailed Description

This class is used by Invite DialogSets.

Non-Invite DialogSets are managed by DefaultDialogSet. This class contains logic to handle forking and RTP connections.

Author: Scott Godin (sgodin AT SipSpectrum DOT com)

Definition at line 38 of file SipXRemoteParticipantDialogSet.hxx.

Constructor & Destructor Documentation

◆ SipXRemoteParticipantDialogSet()

SipXRemoteParticipantDialogSet::SipXRemoteParticipantDialogSet ( ConversationManager &  conversationManager,
SipXMediaStackAdapter &  sipXMediaStackAdapter,
ConversationManager::ParticipantForkSelectMode  forkSelectMode = ConversationManager::ForkSelectAutomatic,
std::shared_ptr< ConversationProfile >  conversationProfile = nullptr 
)

Definition at line 48 of file SipXRemoteParticipantDialogSet.cxx.

◆ ~SipXRemoteParticipantDialogSet()

SipXRemoteParticipantDialogSet::~SipXRemoteParticipantDialogSet ( )
virtual

Definition at line 69 of file SipXRemoteParticipantDialogSet.cxx.

Member Function Documentation

◆ createAppDialog()

AppDialog * SipXRemoteParticipantDialogSet::createAppDialog ( const resip::SipMessage &  msg)
virtual

Reimplemented from recon::RemoteParticipantDialogSet.

Definition at line 429 of file SipXRemoteParticipantDialogSet.cxx.

◆ createSRTPSession()

bool SipXRemoteParticipantDialogSet::createSRTPSession ( resip::MediaConstants::SrtpCryptoSuite  cryptoSuite,
const char *  remoteKey,
size_t  remoteKeyLen 
)

Definition at line 416 of file SipXRemoteParticipantDialogSet.cxx.

◆ fixUpSdp()

void SipXRemoteParticipantDialogSet::fixUpSdp ( resip::SdpContents *  sdp)
protectedvirtual

◆ freeMediaResources()

void SipXRemoteParticipantDialogSet::freeMediaResources ( )
virtual

Definition at line 320 of file SipXRemoteParticipantDialogSet.cxx.

◆ getConnectionPortOnBridge()

int SipXRemoteParticipantDialogSet::getConnectionPortOnBridge ( )
virtual

Definition at line 310 of file SipXRemoteParticipantDialogSet.cxx.

◆ getLocalRTPPort()

unsigned int SipXRemoteParticipantDialogSet::getLocalRTPPort ( )
virtual

Definition at line 94 of file SipXRemoteParticipantDialogSet.cxx.

◆ getLocalSrtpSessionKey()

const resip::Data & recon::SipXRemoteParticipantDialogSet::getLocalSrtpSessionKey ( )
inline

Definition at line 71 of file SipXRemoteParticipantDialogSet.hxx.

◆ getMediaConnectionId()

virtual int recon::SipXRemoteParticipantDialogSet::getMediaConnectionId ( )
inlinevirtual

Definition at line 57 of file SipXRemoteParticipantDialogSet.hxx.

◆ getSrtpCryptoSuite()

resip::MediaConstants::SrtpCryptoSuite recon::SipXRemoteParticipantDialogSet::getSrtpCryptoSuite ( )
inline

Definition at line 69 of file SipXRemoteParticipantDialogSet.hxx.

◆ isAsyncMediaSetup()

bool SipXRemoteParticipantDialogSet::isAsyncMediaSetup ( )
protectedvirtual

◆ peerExpectsSAVPF()

virtual bool recon::SipXRemoteParticipantDialogSet::peerExpectsSAVPF ( )
inlinevirtual

Definition at line 54 of file SipXRemoteParticipantDialogSet.hxx.

◆ processMediaStreamReadyEvent()

void SipXRemoteParticipantDialogSet::processMediaStreamReadyEvent ( std::shared_ptr< MediaStreamReadyEvent::StreamParams >  streamParams)
virtual

Reimplemented from recon::RemoteParticipantDialogSet.

Definition at line 261 of file SipXRemoteParticipantDialogSet.cxx.

◆ setActiveDestination()

void SipXRemoteParticipantDialogSet::setActiveDestination ( const char *  address,
unsigned short  rtpPort,
unsigned short  rtcpPort 
)

Definition at line 356 of file SipXRemoteParticipantDialogSet.cxx.

◆ setActiveRemoteParticipantHandle()

void SipXRemoteParticipantDialogSet::setActiveRemoteParticipantHandle ( ParticipantHandle  handle)
virtual

Reimplemented from recon::RemoteParticipantDialogSet.

Definition at line 440 of file SipXRemoteParticipantDialogSet.cxx.

◆ setPeerExpectsSAVPF()

virtual void recon::SipXRemoteParticipantDialogSet::setPeerExpectsSAVPF ( bool  value)
inlinevirtual

Definition at line 53 of file SipXRemoteParticipantDialogSet.hxx.

◆ setRemoteSDPFingerprint()

void SipXRemoteParticipantDialogSet::setRemoteSDPFingerprint ( const resip::Data &  hashFunction,
const resip::Data &  fingerprint 
)

Definition at line 403 of file SipXRemoteParticipantDialogSet.cxx.

◆ startDtlsClient()

void SipXRemoteParticipantDialogSet::startDtlsClient ( const char *  address,
unsigned short  rtpPort,
unsigned short  rtcpPort 
)

Definition at line 388 of file SipXRemoteParticipantDialogSet.cxx.


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