OPAL  Version 3.12.9
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: 27636 $
27  * $Author: rjongbloed $
28  * $Date: 2012-05-15 16:36:17 +1000 (Tue, 15 May 2012) $
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/buildopts.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 PCaselessString GetSDPTransportType() const;
57  virtual SDPMediaFormat * CreateSDPMediaFormat(const PString & portString);
58  virtual PString GetSDPMediaType() const;
59  virtual PString GetSDPPortList() const;
60  virtual void OutputAttributes(ostream & str) const;
61  virtual void SetAttribute(const PString & attr, const PString & value);
62  virtual void ProcessMediaOptions(SDPMediaFormat & sdpFormat, const OpalMediaFormat & mediaFormat);
63  virtual bool PostDecode(const OpalMediaFormatList & mediaFormats);
64 
65  protected:
66  PStringToString t38Attributes;
67 };
68 
69 #endif // OPAL_T38_CAPABILITY
70 
71 #endif // OPAL_SIP
72 
73 #endif // OPAL_T38_SIPT38_H
74