OPAL  Version 3.14.3
h460_std23.h
Go to the documentation of this file.
1 /*
2  * h460_std23.h
3  *
4  * Copyright (c) 2009 ISVO (Asia) Pte Ltd. All Rights Reserved.
5  *
6  * The contents of this file are subject to the Mozilla Public License
7  * Version 1.1 (the "License"); you may not use this file except in
8  * compliance with the License. You may obtain a copy of the License at
9  * http://www.mozilla.org/MPL/
10  *
11  * Alternatively, the contents of this file may be used under the terms
12  * of the General Public License (the "GNU License"), in which case the
13  * provisions of GNU License are applicable instead of those
14  * above. If you wish to allow use of your version of this file only
15  * under the terms of the GNU License and not to allow others to use
16  * your version of this file under the MPL, indicate your decision by
17  * deleting the provisions above and replace them with the notice and
18  * other provisions required by the GNU License. If you do not delete
19  * the provisions above, a recipient may use your version of this file
20  * under either the MPL or the GNU License."
21  *
22  * Software distributed under the License is distributed on an "AS IS"
23  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
24  * the License for the specific language governing rights and limitations
25  * under the License.
26  *
27  * The Original Code is derived from and used in conjunction with the
28  * H323Plus Project (www.h323plus.org/)
29  *
30  * The Initial Developer of the Original Code is ISVO (Asia) Pte Ltd.
31  *
32  * Contributor(s): Many thanks to Simon Horne.
33  * Robert Jongbloed (robertj@voxlucida.com.au).
34  *
35  * $Revision: 31399 $
36  * $Author: rjongbloed $
37  * $Date: 2014-02-07 16:34:04 +1100 (Fri, 07 Feb 2014) $
38  */
39 
40 #ifndef OPAL_H460_STD23_H
41 #define OPAL_H460_STD23_H
42 
43 #include <opal_config.h>
44 
45 #if OPAL_H460_NAT
46 
47 #include <h460/h4601.h>
48 
49 #if _MSC_VER
50 #pragma once
51 #endif
52 
53 
54 class PNatMethod_H46024;
55 
56 
57 class H460_FeatureStd23 : public H460_Feature
58 {
59  PCLASSINFO_WITH_CLONE(H460_FeatureStd23, H460_Feature);
60  public:
61  H460_FeatureStd23();
62 
63  static const H460_FeatureID & ID();
64  virtual bool Initialise(H323EndPoint & ep, H323Connection * con);
65 
66  // H.225.0 Messages
68  virtual bool OnSendRegistrationRequest(H460_FeatureDescriptor & pdu, bool lightweight);
69  virtual void OnReceiveRegistrationConfirm(const H460_FeatureDescriptor & pdu);
70 
71  #ifdef H323_UPnP
72  void InitialiseUPnP();
73  bool UsePnP();
74  #endif
75 
76  protected:
77 #if OPAL_H460_24
78  PNatMethod_H46024 * m_natMethod;
79 #endif
80  bool m_applicationLevelGateway;
81 };
82 
83 
84 #endif // OPAL_H460_NAT
85 
86 #endif // OPAL_H460_STD23_H