38#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
43 std::shared_ptr<ConversationProfile> conversationProfile) :
45 mLibWebRTCMediaStackAdapter(libwebrtcMediaStackAdapter),
47 mAllocateLocalRTPPortFailed(false),
48 mPeerExpectsSAVPF(false),
50 mMediaConnectionId(0),
51 mConnectionPortOnBridge(-1)
54 InfoLog(<<
"LibWebRTCRemoteParticipantDialogSet created.");
67 InfoLog( <<
"processMediaStreamReadyEvent: streamParams: " << *
params);
68 mRtpTuple =
params->getRtpTuple();
69 mRtcpTuple =
params->getRtcpTuple();
75LibWebRTCRemoteParticipantDialogSet::onMediaStreamReady(
const StunTuple& rtpTuple,
const StunTuple& rtcpTuple)
83LibWebRTCRemoteParticipantDialogSet::onMediaStreamError(
unsigned int errorCode)
115 if(mConnectionPortOnBridge==-1)
119 return mConnectionPortOnBridge;
177 if (mMediaConnectionId > 0)
186 if(event_name ==
"IceGatheringDone")
#define WarningLog(args_)
This class is one of two main classes of concern to an application using the UserAgent library.
ParticipantForkSelectMode
virtual ~LibWebRTCRemoteParticipantDialogSet()
void setRemoteSDPFingerprint(const resip::Data &hashFunction, const resip::Data &fingerprint)
void startDtlsClient(const char *address, unsigned short rtpPort, unsigned short rtcpPort)
virtual bool isAsyncMediaSetup()
virtual void processMediaStreamReadyEvent(std::shared_ptr< MediaStreamReadyEvent::StreamParams > streamParams)
virtual void freeMediaResources()
void setActiveDestination(const char *address, unsigned short rtpPort, unsigned short rtcpPort)
LibWebRTCRemoteParticipantDialogSet(ConversationManager &conversationManager, LibWebRTCMediaStackAdapter &libwebrtcMediaStackAdapter, ConversationManager::ParticipantForkSelectMode forkSelectMode=ConversationManager::ForkSelectAutomatic, std::shared_ptr< ConversationProfile > conversationProfile=nullptr)
virtual resip::AppDialog * createAppDialog(const resip::SipMessage &msg)
void onLibWebRTCEvent(const std::string &event_name, const json::Object &message)
virtual int getConnectionPortOnBridge()
bool createSRTPSession(resip::MediaConstants::SrtpCryptoSuite cryptoSuite, const char *remoteKey, size_t remoteKeyLen)
virtual void fixUpSdp(resip::SdpContents *sdp)
virtual void setActiveRemoteParticipantHandle(ParticipantHandle handle)
This class represent a remote participant.
This class is used by Invite DialogSets.
ParticipantHandle mActiveRemoteParticipantHandle
virtual void setActiveRemoteParticipantHandle(ParticipantHandle handle)
virtual resip::AppDialog * createAppDialog(const resip::SipMessage &msg)
ConversationManager & mConversationManager
virtual ParticipantHandle getActiveRemoteParticipantHandle()
std::map< resip::DialogId, RemoteParticipant * > mDialogs
virtual void processMediaStreamReadyEvent(std::shared_ptr< MediaStreamReadyEvent::StreamParams > streamParams)
DialogUsageManager & mDum
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
const Data & user() const
returns the user string for the session
const Origin & origin() const
return session Origin line
Provides an interface to process and generate SDP bodies (MIME content-type application/sdp).
Session & session()
get the parsed SDP
Represents a SIP message.
void post(Message *msg)
Posts a Message to this TransactionUser's fifo.
unsigned int ParticipantHandle
dcm! – add UnusedChecking(_enum) below;