From 73d206c551c8af905f24336695d457ca3986c6e9 Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Tue, 1 Aug 2006 14:43:56 +0000 Subject: 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 --- .../audiocaptureplugins/voip/PacketHeaderDefs.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp') diff --git a/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp b/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp index 2d3cfe3..d0fa8a4 100644 --- a/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp +++ b/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp @@ -23,6 +23,10 @@ int SkinnyMessageToEnum(CStdString& msg) { msgEnum = SkCloseReceiveChannel; } + else if (msg.CompareNoCase(SKINNY_MSG_LINE_STAT_MESSAGE) == 0) + { + msgEnum = SkLineStatMessage; + } return msgEnum; } @@ -46,6 +50,9 @@ CStdString SkinnyMessageToString(int msgEnum) case SkCloseReceiveChannel: msgString = SKINNY_MSG_CLOSE_RECEIVE_CHANNEL; break; + case SkLineStatMessage: + msgString = SKINNY_MSG_LINE_STAT_MESSAGE; + break; default: msgString = SKINNY_MSG_UNKN; } @@ -121,3 +128,18 @@ bool SkinnyValidateOpenReceiveChannelAck(SkOpenReceiveChannelAckStruct* orca) } return valid; } + +bool SkinnyValidateLineStat(SkLineStatStruct* lineStat) +{ + bool valid = true; + if(valid) + { + valid = checkPartyString(lineStat->displayName, SKINNY_DISPLAY_NAME_SIZE); + } + if(valid) + { + valid = checkPartyString(lineStat->lineDirNumber, SKINNY_LINE_DIR_NUMBER_SIZE); + } + return valid; +} + -- cgit v1.2.3