sipXtapi home page


SdpHelperResip.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007 Plantronics
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2007 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 // Author: Scott Godin (sgodin AT SipSpectrum DOT com)
11 
12 #ifndef _SdpHelperResip_h_
13 #define _SdpHelperResip_h_
14 
15 // SYSTEM INCLUDES
16 //#include <...>
17 
18 // APPLICATION INCLUDES
19 #ifdef BUILD_RESIP_SDP_HELPER
20 #include <resip/stack/SdpContents.hxx>
21 #include <sdp/Sdp.h>
22 #include <sdp/SdpMediaLine.h>
23 
24 // DEFINES
25 // MACROS
26 // EXTERNAL FUNCTIONS
27 // EXTERNAL VARIABLES
28 // CONSTANTS
29 // STRUCTS
30 // TYPEDEFS
31 // FORWARD DECLARATIONS
32 
33 //: Container for SdpHelperResip specification
34 // This class holds the information related to an SdpHelperResip.
35 // Included in this information is: TODO
36 //
37 namespace resip
38 {
39  class ParseBuffer;
40  class Data;
41 }
42 
43 class SdpHelperResip
44 {
45 /* //////////////////////////// PUBLIC //////////////////////////////////// */
46 public:
47 
48 /* ============================ CREATORS ================================== */
49 
50 /* ============================ MANIPULATORS ============================== */
51  static Sdp::SdpAddressType convertResipAddressType(resip::SdpContents::AddrType resipAddrType);
52  static SdpMediaLine::SdpEncryptionMethod convertResipEncryptionMethod(resip::SdpContents::Session::Encryption::KeyType resipMethod);
53  static Sdp* createSdpFromResipSdp(const resip::SdpContents& resipSdp);
54 
55 /* ============================ ACCESSORS ================================= */
56 
57 /* ============================ INQUIRY =================================== */
58 
59 
60 /* //////////////////////////// PROTECTED ///////////////////////////////// */
61 protected:
62 
63 /* //////////////////////////// PRIVATE /////////////////////////////////// */
64 private:
65  static void parseCryptoParams(resip::ParseBuffer& pb,
67  resip::Data& keyValue,
68  unsigned int& srtpLifetime,
69  unsigned int& srtpMkiValue,
70  unsigned int& srtpMkiLength);
71 };
72 
73 /* ============================ INLINE METHODS ============================ */
74 #endif // BUILD_RESIP_SDP_HELPER
75 #endif // _SdpHelperResip_h_
SdpCryptoKeyMethod
Definition: SdpMediaLine.h:184
SdpAddressType
Definition: Sdp.h:60
Definition: Sdp.h:47
SdpEncryptionMethod
Definition: SdpMediaLine.h:128