1 #ifndef _SYNCRTPCOMMAND_H
2 #define _SYNCRTPCOMMAND_H
3 #include <boost/archive/text_oarchive.hpp>
4 #include <boost/archive/text_iarchive.hpp>
6 #include "threadUtils.hpp"
7 #include "rtpSessionTable.h"
12 SyncRtpCommand(const std::string
& );
14 std::string
getCallId() const;
17 SyncRtpCommand(const SyncRtpCommand
&);
19 friend class boost::serialization::access
;
20 template<class Archive
>
21 void serialize(Archive
& ar
, const unsigned int version
)
23 Lock
lock(gRtpSessionTable
.getMutex());
25 ar
& gRtpSessionTable
.getOrNewSessionUnlocked(callid_
);
30 #endif // _SYNCCOMMAND_H