OPAL  Version 3.18.8
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 
27 #ifndef OPAL_T38_SIPT38_H
28 #define OPAL_T38_SIPT38_H
29 
30 #ifdef P_USE_PRAGMA
31 #pragma interface
32 #endif
33 
34 #include <opal_config.h>
35 
36 #if OPAL_SDP
37 
38 #include <sdp/sdp.h>
39 
40 #if OPAL_T38_CAPABILITY
41 
43 //
44 // SDP media description for fax media
45 //
46 
47 class SDPFaxMediaDescription : public SDPMediaDescription
48 {
49  PCLASSINFO(SDPFaxMediaDescription, SDPMediaDescription);
50  public:
51  SDPFaxMediaDescription(const OpalTransportAddress & address);
52  virtual SDPMediaFormat * CreateSDPMediaFormat();
53  virtual PString GetSDPPortList() const;
54  virtual void OutputAttributes(ostream & str) const;
55  virtual void SetAttribute(const PString & attr, const PString & value);
56  virtual void ProcessMediaOptions(SDPMediaFormat & sdpFormat, const OpalMediaFormat & mediaFormat);
57  virtual bool PostDecode(const OpalMediaFormatList & mediaFormats);
58 
59  protected:
60  class Format : public SDPMediaFormat
61  {
62  public:
63  Format(SDPFaxMediaDescription & parent) : SDPMediaFormat(parent) { }
64  virtual bool FromSDP(const PString & portString);
65  };
66 
67  PStringToString t38Attributes;
68 };
69 
70 #endif // OPAL_T38_CAPABILITY
71 
72 #endif // OPAL_SDP
73 
74 #endif // OPAL_T38_SIPT38_H
75 
Definition: mediafmt.h:112
Definition: mediafmt.h:806
Definition: transports.h:151