diff options
author | Henri Herscher <henri@oreka.org> | 2006-08-01 14:43:56 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-08-01 14:43:56 +0000 |
commit | 73d206c551c8af905f24336695d457ca3986c6e9 (patch) | |
tree | 054ca008c0070f0b4f864d8def77973ee6013531 /orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp | |
parent | 0182c73c34be9dea04a0274755bdba266cb0e7f9 (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/PacketHeaderDefs.cpp')
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
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; +} + |