38#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
43 std::shared_ptr<ConversationProfile> conversationProfile) :
45 mKurentoMediaStackAdapter(kurentoMediaStackAdapter),
47 mAllocateLocalRTPPortFailed(false),
48 mPeerExpectsSAVPF(false),
50 mMediaConnectionId(0),
51 mConnectionPortOnBridge(-1)
54 InfoLog(<<
"KurentoRemoteParticipantDialogSet created.");
67 InfoLog( <<
"processMediaStreamReadyEvent: streamParams: " << *
params);
68 mRtpTuple =
params->getRtpTuple();
69 mRtcpTuple =
params->getRtcpTuple();
75KurentoRemoteParticipantDialogSet::onMediaStreamReady(
const StunTuple& rtpTuple,
const StunTuple& rtcpTuple)
83KurentoRemoteParticipantDialogSet::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 int getConnectionPortOnBridge()
virtual void setActiveRemoteParticipantHandle(ParticipantHandle handle)
void setActiveDestination(const char *address, unsigned short rtpPort, unsigned short rtcpPort)
virtual void processMediaStreamReadyEvent(std::shared_ptr< MediaStreamReadyEvent::StreamParams > streamParams)
virtual ~KurentoRemoteParticipantDialogSet()
void setRemoteSDPFingerprint(const resip::Data &hashFunction, const resip::Data &fingerprint)
KurentoRemoteParticipantDialogSet(ConversationManager &conversationManager, KurentoMediaStackAdapter &kurentoMediaStackAdapter, ConversationManager::ParticipantForkSelectMode forkSelectMode=ConversationManager::ForkSelectAutomatic, std::shared_ptr< ConversationProfile > conversationProfile=nullptr)
bool createSRTPSession(resip::MediaConstants::SrtpCryptoSuite cryptoSuite, const char *remoteKey, size_t remoteKeyLen)
virtual resip::AppDialog * createAppDialog(const resip::SipMessage &msg)
void startDtlsClient(const char *address, unsigned short rtpPort, unsigned short rtcpPort)
void onKurentoEvent(const std::string &event_name, const json::Object &message)
virtual void freeMediaResources()
virtual bool isAsyncMediaSetup()
virtual void fixUpSdp(resip::SdpContents *sdp)
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;