summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/VoIp.cpp
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-08-01 14:43:56 +0000
committerHenri Herscher <henri@oreka.org>2006-08-01 14:43:56 +0000
commit73d206c551c8af905f24336695d457ca3986c6e9 (patch)
tree054ca008c0070f0b4f864d8def77973ee6013531 /orkaudio/audiocaptureplugins/voip/VoIp.cpp
parent0182c73c34be9dea04a0274755bdba266cb0e7f9 (diff)
Applying changeset 269 from 0.5 to trunk:
Can now get local party info from the Skinny LineStatMessage. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@320 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/VoIp.cpp')
-rw-r--r--orkaudio/audiocaptureplugins/voip/VoIp.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
index 1be3b25..77a9dc6 100644
--- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp
+++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
@@ -366,6 +366,7 @@ void HandleSkinnyMessage(SkinnyHeaderStruct* skinnyHeader, IpHeaderStruct* ipHea
SkStopMediaTransmissionStruct* stopMedia;
SkCallInfoStruct* callInfo;
SkOpenReceiveChannelAckStruct* openReceiveAck;
+ SkLineStatStruct* lineStat;
char szEndpointIp[16];
struct in_addr endpointIp = ipHeader->ip_dest; // most of the interesting skinny messages are CCM -> phone
@@ -435,6 +436,24 @@ void HandleSkinnyMessage(SkinnyHeaderStruct* skinnyHeader, IpHeaderStruct* ipHea
LOG4CXX_WARN(s_skinnyPacketLog, "Invalid OpenReceiveChannelAck.");
}
break;
+ case SkLineStatMessage:
+ lineStat = (SkLineStatStruct*)skinnyHeader;
+ if(SkinnyValidateLineStat(lineStat))
+ {
+ if(s_skinnyPacketLog->isInfoEnabled())
+ {
+ logMsg.Format(" line:%u extension:%s display name:%s", lineStat->lineNumber, lineStat->lineDirNumber, lineStat->displayName);
+ }
+ endpointIp = ipHeader->ip_dest; // this skinny message is CCM -> phone
+ RtpSessionsSingleton::instance()->ReportSkinnyLineStat(lineStat, ipHeader);
+ }
+ else
+ {
+ useful = false;
+ LOG4CXX_WARN(s_skinnyPacketLog, "Invalid LineStatMessage.");
+ }
+
+ break;
default:
useful = false;
}