OPAL  Version 3.18.8
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 
36 #ifndef OPAL_H460_STD23_H
37 #define OPAL_H460_STD23_H
38 
39 #include <opal_config.h>
40 
41 #if OPAL_H460_NAT
42 
43 #include <h460/h4601.h>
44 
45 #if _MSC_VER
46 #pragma once
47 #endif
48 
49 
50 class PNatMethod_H46024;
51 
52 
53 class H460_FeatureStd23 : public H460_Feature
54 {
55  PCLASSINFO_WITH_CLONE(H460_FeatureStd23, H460_Feature);
56  public:
57  H460_FeatureStd23();
58 
59  static const H460_FeatureID & ID();
60  virtual bool Initialise(H323EndPoint & ep, H323Connection * con);
61 
62  // H.225.0 Messages
64  virtual bool OnSendRegistrationRequest(H460_FeatureDescriptor & pdu, bool lightweight);
65  virtual void OnReceiveRegistrationConfirm(const H460_FeatureDescriptor & pdu);
66 
67  #ifdef H323_UPnP
68  void InitialiseUPnP();
69  bool UsePnP();
70  #endif
71 
72  protected:
73 #if OPAL_H460_24
74  PNatMethod_H46024 * m_natMethod;
75 #endif
76  bool m_applicationLevelGateway;
77 };
78 
79 
80 #endif // OPAL_H460_NAT
81 
82 #endif // OPAL_H460_STD23_H
virtual bool OnSendRegistrationRequest(H460_FeatureDescriptor &, bool)
Definition: h4601.h:515
Definition: h4601.h:267
virtual bool Initialise(H323EndPoint &ep, H323Connection *con)
Definition: h323con.h:137
virtual void OnReceiveRegistrationConfirm(const H460_FeatureDescriptor &)
Definition: h4601.h:520
Definition: h4601.h:75
virtual bool OnSendGatekeeperRequest(H460_FeatureDescriptor &)
Definition: h4601.h:507
Definition: h323ep.h:82
Definition: h4601.h:369