OPAL  Version 3.14.3
sipt38.h
Go to the documentation of this file.
1 /*
2  * t38proto.h
3  *
4  * T.38 protocol handler
5  *
6  * Open Phone Abstraction Library
7  *
8  * Copyright (c) 2001 Equivalence Pty. Ltd.
9  *
10  * The contents of this file are subject to the Mozilla Public License
11  * Version 1.0 (the "License"); you may not use this file except in
12  * compliance with the License. You may obtain a copy of the License at
13  * http://www.mozilla.org/MPL/
14  *
15  * Software distributed under the License is distributed on an "AS IS"
16  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17  * the License for the specific language governing rights and limitations
18  * under the License.
19  *
20  * The Original Code is Open H323 Library.
21  *
22  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
23  *
24  * Contributor(s): ______________________________________.
25  *
26  * $Revision: 31952 $
27  * $Author: rjongbloed $
28  * $Date: 2014-05-23 17:29:05 +1000 (Fri, 23 May 2014) $
29  */
30 
31 #ifndef OPAL_T38_SIPT38_H
32 #define OPAL_T38_SIPT38_H
33 
34 #ifdef P_USE_PRAGMA
35 #pragma interface
36 #endif
37 
38 #include <opal_config.h>
39 
40 #if OPAL_SIP
41 
42 #include <sip/sdp.h>
43 
44 #if OPAL_T38_CAPABILITY
45 
47 //
48 // SDP media description for fax media
49 //
50 
51 class SDPFaxMediaDescription : public SDPMediaDescription
52 {
53  PCLASSINFO(SDPFaxMediaDescription, SDPMediaDescription);
54  public:
55  SDPFaxMediaDescription(const OpalTransportAddress & address);
56  virtual SDPMediaFormat * CreateSDPMediaFormat();
57  virtual PString GetSDPPortList() const;
58  virtual void OutputAttributes(ostream & str) const;
59  virtual void SetAttribute(const PString & attr, const PString & value);
60  virtual void ProcessMediaOptions(SDPMediaFormat & sdpFormat, const OpalMediaFormat & mediaFormat);
61  virtual bool PostDecode(const OpalMediaFormatList & mediaFormats);
62 
63  protected:
64  class Format : public SDPMediaFormat
65  {
66  public:
67  Format(SDPFaxMediaDescription & parent) : SDPMediaFormat(parent) { }
68  virtual bool FromSDP(const PString & portString);
69  };
70 
71  PStringToString t38Attributes;
72 };
73 
74 #endif // OPAL_T38_CAPABILITY
75 
76 #endif // OPAL_SIP
77 
78 #endif // OPAL_T38_SIPT38_H
79