20#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
39 const std::shared_ptr<Data>& audioBuffer)
42 mAudioBuffer(audioBuffer),
50 InfoLog(<<
"MediaResourceParticipant created, handle=" <<
mHandle <<
" url=" << mMediaUrl);
64 mResourceType =
Cache;
72 mResourceType =
Https;
89 WarningLog(<<
"MediaResourceParticipant::MediaResourceParticipant exception for url=" << mMediaUrl <<
": " << e);
93 WarningLog(<<
"MediaResourceParticipant::MediaResourceParticipant unknown exception for url=" << mMediaUrl);
99 InfoLog(<<
"MediaResourceParticipant destroyed, handle=" <<
mHandle <<
" url=" << mMediaUrl);
105 return mResourceType ==
Record ||
112 return mResourceType ==
Tone ||
113 mResourceType ==
File ||
114 mResourceType ==
Cache ||
115 mResourceType ==
Http ||
116 mResourceType ==
Https ||
126 InfoLog(<<
"MediaResourceParticipant::startResource, handle=" <<
mHandle <<
" url=" << mMediaUrl);
129 if(mMediaUrl.
exists(p_duration))
131 mDurationMs = mMediaUrl.
param(p_duration);
132 mMediaUrl.
remove(p_duration);
154 WarningLog(<<
"MediaResourceParticipant::startResource exception for url=" << mMediaUrl <<
": " << e);
158 WarningLog(<<
"MediaResourceParticipant::startResource unknown exception for url=" << mMediaUrl);
186 bool deleteNow =
true;
193 if (deleteNow)
delete this;
#define WarningLog(args_)
#define resip_assert(x)
This file needs to work for both C and C++ code.
This class is one of two main classes of concern to an application using the UserAgent library.
void post(resip::Message *message)
This is the base class for a RemoteParticipant, LocalParticipant and a MediaResourceParticipant.
ParticipantHandle mHandle
ConversationManager & mConversationManager
The abstract base-class for all exceptions thrown by resip code.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
unsigned long convertUnsignedLong() const
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
bool exists(const Param< Uri > ¶mType) const
void remove(const Param< Uri > ¶mType)
const Data & param(const ExtensionParameter ¶m) const
Const accessor for non-natively-supported parameter types.
unsigned int ParticipantHandle
dcm! – add UnusedChecking(_enum) below;
bool isEqualNoCase(const Data &left, const Data &right)