summaryrefslogtreecommitdiff
path: root/orkbasecxx
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-08-21 14:58:19 +0000
committerHenri Herscher <henri@oreka.org>2007-08-21 14:58:19 +0000
commit413b033ca287e6327b16ede2dc60479a3544f7f5 (patch)
treec3f44328f9c889aea183dff6c666f1e305c5226a /orkbasecxx
parent23842e0a148920ed0ad624e81de8d73e00980140 (diff)
Start message response can now initiate capture in non-lookback recording mode. Moved non-lookback configuration switch from VoIpPlugin node to the top node.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@469 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx')
-rw-r--r--orkbasecxx/Config.cpp2
-rw-r--r--orkbasecxx/Config.h3
-rw-r--r--orkbasecxx/Reporting.cpp10
3 files changed, 15 insertions, 0 deletions
diff --git a/orkbasecxx/Config.cpp b/orkbasecxx/Config.cpp
index d57716d..24d4391 100644
--- a/orkbasecxx/Config.cpp
+++ b/orkbasecxx/Config.cpp
@@ -67,6 +67,7 @@ Config::Config()
m_commandLineServerPort = COMMAND_LINE_SERVER_PORT_DEFAULT;
m_httpServerPort = HTTP_SERVER_PORT_DEFAULT;
+ m_lookBackRecording = LOOKBACK_RECORDING_DEFAULT;
}
void Config::Define(Serializer* s)
@@ -134,6 +135,7 @@ void Config::Define(Serializer* s)
s->StringValue(REMOTE_PROCESSING_SERVICE_NAME_PARAM, m_remoteProcessingServiceName);
s->IntValue(COMMAND_LINE_SERVER_PORT_PARAM, m_commandLineServerPort);
s->IntValue(HTTP_SERVER_PORT_PARAM, m_httpServerPort);
+ s->BoolValue(LOOKBACK_RECORDING_PARAM, m_lookBackRecording);
}
void Config::Validate()
diff --git a/orkbasecxx/Config.h b/orkbasecxx/Config.h
index 9290815..ed9deb9 100644
--- a/orkbasecxx/Config.h
+++ b/orkbasecxx/Config.h
@@ -96,6 +96,8 @@
#define COMMAND_LINE_SERVER_PORT_DEFAULT 59130
#define HTTP_SERVER_PORT_PARAM "HttpServerPort"
#define HTTP_SERVER_PORT_DEFAULT 59140
+#define LOOKBACK_RECORDING_PARAM "LookBackRecording"
+#define LOOKBACK_RECORDING_DEFAULT true
class DLL_IMPORT_EXPORT_ORKBASE Config : public Object
{
@@ -151,6 +153,7 @@ public:
CStdString m_remoteProcessingServiceName;
int m_commandLineServerPort;
int m_httpServerPort;
+ bool m_lookBackRecording;
private:
log4cxx::LoggerPtr m_log;
diff --git a/orkbasecxx/Reporting.cpp b/orkbasecxx/Reporting.cpp
index 9aa053d..91ca42a 100644
--- a/orkbasecxx/Reporting.cpp
+++ b/orkbasecxx/Reporting.cpp
@@ -21,6 +21,7 @@
#include "messages/TapeMsg.h"
#include "OrkClient.h"
#include "Daemon.h"
+#include "CapturePluginProxy.h"
TapeProcessorRef Reporting::m_singleton;
@@ -174,6 +175,15 @@ void Reporting::ThreadHandler(void *args)
}
}
+ else
+ {
+ // Tape is wanted
+ if(CONFIG.m_lookBackRecording == false && ptapeMsg->m_stage.Equals("start"))
+ {
+ CapturePluginProxy::Singleton()->StartCapture(ptapeMsg->m_localParty);
+ CapturePluginProxy::Singleton()->StartCapture(ptapeMsg->m_remoteParty);
+ }
+ }
//else
//{
// if(!startMsg)