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

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

#include <LibWebRTCRemoteParticipantDialogSet.hxx>

Inheritance diagram for recon::LibWebRTCRemoteParticipantDialogSet:
[legend]

Public Member Functions

 LibWebRTCRemoteParticipantDialogSet (ConversationManager &conversationManager, LibWebRTCMediaStackAdapter &libwebrtcMediaStackAdapter, ConversationManager::ParticipantForkSelectMode forkSelectMode=ConversationManager::ForkSelectAutomatic, std::shared_ptr< ConversationProfile > conversationProfile=nullptr)
 
virtual ~LibWebRTCRemoteParticipantDialogSet ()
 
virtual resip::AppDialog * createAppDialog (const resip::SipMessage &msg)
 
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 ()
 
void onLibWebRTCEvent (const std::string &event_name, const json::Object &message)
 
- 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.

Definition at line 39 of file LibWebRTCRemoteParticipantDialogSet.hxx.

Constructor & Destructor Documentation

◆ LibWebRTCRemoteParticipantDialogSet()

LibWebRTCRemoteParticipantDialogSet::LibWebRTCRemoteParticipantDialogSet ( ConversationManager &  conversationManager,
LibWebRTCMediaStackAdapter &  libwebrtcMediaStackAdapter,
ConversationManager::ParticipantForkSelectMode  forkSelectMode = ConversationManager::ForkSelectAutomatic,
std::shared_ptr< ConversationProfile >  conversationProfile = nullptr 
)

Definition at line 40 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ ~LibWebRTCRemoteParticipantDialogSet()

LibWebRTCRemoteParticipantDialogSet::~LibWebRTCRemoteParticipantDialogSet ( )
virtual

Definition at line 57 of file LibWebRTCRemoteParticipantDialogSet.cxx.

Member Function Documentation

◆ createAppDialog()

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

Reimplemented from recon::RemoteParticipantDialogSet.

Definition at line 162 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ createSRTPSession()

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

Definition at line 154 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ fixUpSdp()

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

◆ freeMediaResources()

void LibWebRTCRemoteParticipantDialogSet::freeMediaResources ( )
virtual

Definition at line 123 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ getConnectionPortOnBridge()

int LibWebRTCRemoteParticipantDialogSet::getConnectionPortOnBridge ( )
virtual

Definition at line 113 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ getLocalSrtpSessionKey()

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

Definition at line 71 of file LibWebRTCRemoteParticipantDialogSet.hxx.

◆ getMediaConnectionId()

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

Definition at line 57 of file LibWebRTCRemoteParticipantDialogSet.hxx.

◆ getSrtpCryptoSuite()

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

Definition at line 69 of file LibWebRTCRemoteParticipantDialogSet.hxx.

◆ isAsyncMediaSetup()

bool LibWebRTCRemoteParticipantDialogSet::isAsyncMediaSetup ( )
protectedvirtual

◆ onLibWebRTCEvent()

void LibWebRTCRemoteParticipantDialogSet::onLibWebRTCEvent ( const std::string &  event_name,
const json::Object &  message 
)

Definition at line 184 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ peerExpectsSAVPF()

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

Definition at line 54 of file LibWebRTCRemoteParticipantDialogSet.hxx.

◆ processMediaStreamReadyEvent()

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

Reimplemented from recon::RemoteParticipantDialogSet.

Definition at line 64 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ setActiveDestination()

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

Definition at line 136 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ setActiveRemoteParticipantHandle()

void LibWebRTCRemoteParticipantDialogSet::setActiveRemoteParticipantHandle ( ParticipantHandle  handle)
virtual

Reimplemented from recon::RemoteParticipantDialogSet.

Definition at line 173 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ setPeerExpectsSAVPF()

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

Definition at line 53 of file LibWebRTCRemoteParticipantDialogSet.hxx.

◆ setRemoteSDPFingerprint()

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

Definition at line 148 of file LibWebRTCRemoteParticipantDialogSet.cxx.

◆ startDtlsClient()

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

Definition at line 142 of file LibWebRTCRemoteParticipantDialogSet.cxx.


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