summaryrefslogtreecommitdiff
path: root/orkaudio/AudioTape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'orkaudio/AudioTape.cpp')
-rw-r--r--orkaudio/AudioTape.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/orkaudio/AudioTape.cpp b/orkaudio/AudioTape.cpp
index 7efce4d..60580e3 100644
--- a/orkaudio/AudioTape.cpp
+++ b/orkaudio/AudioTape.cpp
@@ -38,6 +38,8 @@ void AudioTapeDescription::Define(Serializer* s)
s->StringValue("localParty", m_localParty);
s->StringValue("remoteParty", m_remoteParty);
s->StringValue("localEntryPoint", m_localEntryPoint);
+ s->StringValue("localIp", m_localIp);
+ s->StringValue("remoteIp", m_remoteIp);
}
void AudioTapeDescription::Validate(){}
@@ -182,6 +184,8 @@ void AudioTape::SetShouldStop()
void AudioTape::AddCaptureEvent(CaptureEventRef eventRef, bool send)
{
+ CStdString logMsg;
+
// Extract useful info from well known events
switch(eventRef->m_type)
{
@@ -200,6 +204,8 @@ void AudioTape::AddCaptureEvent(CaptureEventRef eventRef, bool send)
atd.m_localEntryPoint = m_localEntryPoint;
atd.m_localParty = m_localParty;
atd.m_remoteParty = m_remoteParty;
+ atd.m_localIp = m_localIp;
+ atd.m_remoteIp = m_remoteIp;
CStdString description = atd.SerializeSingleLine();
LOG4CXX_INFO(LOG.tapelistLog, description);
}
@@ -216,6 +222,12 @@ void AudioTape::AddCaptureEvent(CaptureEventRef eventRef, bool send)
case CaptureEvent::EtLocalEntryPoint:
m_localEntryPoint = eventRef->m_value;
break;
+ case CaptureEvent::EtLocalIp:
+ m_localIp = eventRef->m_value;
+ break;
+ case CaptureEvent::EtRemoteIp:
+ m_remoteIp = eventRef->m_value;
+ break;
}
// Store the capture event locally
@@ -252,6 +264,8 @@ void AudioTape::GetMessage(MessageRef& msgRef)
pTapeMsg->m_direction = CaptureEvent::DirectionToString(m_direction);
pTapeMsg->m_duration = m_duration;
pTapeMsg->m_timestamp = m_beginDate;
+ pTapeMsg->m_localIp = m_localIp;
+ pTapeMsg->m_remoteIp = m_remoteIp;
}
else
{