blob: a36f1d58729b6474d44fcbdce7d7940fd33ac7a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include "syncCommand.h"
SyncCommand::SyncCommand(ConnectionList & cl )
{
scc_ = new SyncConnectionCommand(cl);
src_ = new SyncRouteCommand();
srtpc_ = new SyncRtpCommand();
}
SyncCommand::SyncCommand(ConnectionList & cl, u_int16_t mux )
{
scc_ = new SyncConnectionCommand(cl,mux);
src_=NULL;
srtpc_=NULL;
}
SyncCommand::SyncCommand(NetworkPrefix np )
{
scc_ = NULL;
src_ = new SyncRouteCommand(np);
srtpc_=NULL;
}
SyncCommand::SyncCommand(const std::string & callid )
{
scc_ = NULL;
src_ = NULL;
srtpc_= new SyncRtpCommand(callid);
}
SyncCommand::~SyncCommand()
{
if (scc_)
delete scc_;
if (src_)
delete src_;
if (srtpc_)
delete srtpc_;
}
|